[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LRH.2.00.0906170859530.3185@tundra.namei.org>
Date: Wed, 17 Jun 2009 09:00:13 +1000 (EST)
From: James Morris <jmorris@...ei.org>
To: Oleg Nesterov <oleg@...hat.com>
cc: Linus Torvalds <torvalds@...ux-foundation.org>,
David Howells <dhowells@...hat.com>,
Eugene Teo <eugene@...hat.com>,
Roland McGrath <roland@...hat.com>, solar@...nwall.com,
linux-kernel@...r.kernel.org
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@...hat.com>
Reviewed-by: James Morris <jmorris@...ei.org>
--
James Morris
<jmorris@...ei.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists