Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
355e371a
Commit
355e371a
authored
Dec 17, 2013
by
Andy Whitcroft
Committed by
Tim Gardner
Feb 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBUNTU: SAUCE: suspicious unlocked ->status reading and writing in ipc/sem.c
Signed-off-by:
Andy Whitcroft
<
apw@canonical.com
>
parent
b15b441d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ipc/sem.c
ipc/sem.c
+8
-0
No files found.
ipc/sem.c
View file @
355e371a
...
...
@@ -1983,6 +1983,14 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops,
*/
error
=
get_queue_result
(
&
queue
);
/*
* wake_up_sem_queue_do operates on queue without locking, so we
* need a barrier here to order our read of queue.status and the
* subsequent reuse of queue (queue is on the stack so will be
* most likely reused in the next function call).
*/
smp_mb
();
/*
* Array removed? If yes, leave without sem_unlock().
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment