[RTEMS Project] #2725: Classic binary semaphores without a locking protocol can be released by everyone

RTEMS trac trac at rtems.org
Mon Jun 6 11:17:00 UTC 2016


#2725: Classic binary semaphores without a locking protocol can be released by
everyone
-----------------------------+------------------------------
 Reporter:  sebastian.huber  |       Owner:  sebastian.huber
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.12
Component:  cpukit           |     Version:  4.10
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by Sebastian Huber <sebastian.huber@…>):

 In [changeset:"3ad5f86cf6803204b98760cdce0c56ef6d79bccd/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="3ad5f86cf6803204b98760cdce0c56ef6d79bccd"
 rtems: Fix no protocol mutex release

 The Classic binary semaphores without a locking protocol
 (RTEMS_BINARY_SEMAPHORE) could be released by everyone, e.g. in contrast
 to the POSIX mutexes (all variants) or the Classic binary semphores with
 priority inheritance or ceiling, there was no owner check in the release
 path.

 This behaviour was a bit unexpected and not documented.   Add an owner
 check to the release path.  Update sptests/sp42 accordingly.

 This change has nothing to do with the simple binary semaphores
 (RTEMS_SIMPLE_BINARY_SEMAPHORE) which have no owner at all.

 Update #2725
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2725#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list