[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10534.1245193824@redhat.com>
Date: Wed, 17 Jun 2009 00:10:24 +0100
From: David Howells <dhowells@...hat.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: dhowells@...hat.com,
Linus Torvalds <torvalds@...ux-foundation.org>,
Eugene Teo <eugene@...hat.com>,
James Morris <jmorris@...ei.org>,
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
Oleg Nesterov <oleg@...hat.com> 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>
Acked-by: David Howells <dhowells@...hat.com>
--
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