commit | 8eeee4e2f04fc551f50c9d9847da2d73d7d33728 | [log] [tgz] |
---|---|---|
author | Oleg Nesterov <oleg@redhat.com> | Wed Jun 17 00:27:10 2009 +0200 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Jun 16 15:36:17 2009 -0700 |
tree | c5b7a2c9b912369c82506f8363b8eb10538f5d8e | |
parent | f83b1e616f2f68b56b09b2f5116591981fee0c1c [diff] |
send_sigio_to_task: sanitize the usage of fown->signum 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>