git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f83b1e6
)
send_sigio_to_task: sanitize the usage of fown->signum
author
Oleg Nesterov
<oleg@redhat.com>
Tue, 16 Jun 2009 22:27:10 +0000
(
00:27
+0200)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 16 Jun 2009 22:36:17 +0000
(15:36 -0700)
send_sigio_to_task() reads fown->signum several times, we can race with
F_SETSIG which changes ->signum lockless. In theory, this can fool
security checks or we can call group_send_sig_info() with the wrong
->si_signo which does not match "int sig".
Change the code to cache ->signum.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fcntl.c
patch
|
blob
|
history
diff --cc
fs/fcntl.c
Simple merge