Messages in this thread | | | Date | Wed, 17 Jun 2009 09:00:13 +1000 (EST) | From | James Morris <> | Subject | Re: [PATCH] send_sigio_to_task: sanitize the usage of fown->signum |
| |
On Wed, 17 Jun 2009, Oleg Nesterov wrote:
> 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>
Reviewed-by: James Morris <jmorris@namei.org>
-- James Morris <jmorris@namei.org>
| |