From: Oleg Nesterov Date: Tue, 16 Jun 2009 22:27:10 +0000 (+0200) Subject: send_sigio_to_task: sanitize the usage of fown->signum X-Git-Tag: v2.6.31-rc1~300 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eeee4e2f04fc551f50c9d9847da2d73d7d33728;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed