diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-05-12 20:45:35 +0000 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-07-17 18:31:11 +0200 |
commit | d693bd7d3bddcfe3f3ac6499e38d6df208050299 (patch) | |
tree | 6bf442b66fb2117830e1707903f1423e575fec07 /scripts/kconfig/nconf.c | |
parent | 9be9c06e0b0b5e53c07f20eb78bfcae1f21971d6 (diff) | |
download | kernel_goldelico_gta04-d693bd7d3bddcfe3f3ac6499e38d6df208050299.zip kernel_goldelico_gta04-d693bd7d3bddcfe3f3ac6499e38d6df208050299.tar.gz kernel_goldelico_gta04-d693bd7d3bddcfe3f3ac6499e38d6df208050299.tar.bz2 |
futex: Prevent attaching to kernel threads
commit f0d71b3dcb8332f7971b5f2363632573e6d9486a upstream.
We happily allow userspace to declare a random kernel thread to be the
owner of a user space PI futex.
Found while analysing the fallout of Dave Jones syscall fuzzer.
We also should validate the thread group for private futexes and find
some fast way to validate whether the "alleged" owner has RW access on
the file which backs the SHM, but that's a separate issue.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Dave Jones <davej@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Darren Hart <darren@dvhart.com>
Cc: Davidlohr Bueso <davidlohr@hp.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Clark Williams <williams@redhat.com>
Cc: Paul McKenney <paulmck@linux.vnet.ibm.com>
Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Roland McGrath <roland@hack.frob.com>
Cc: Carlos ODonell <carlos@redhat.com>
Cc: Jakub Jelinek <jakub@redhat.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: http://lkml.kernel.org/r/20140512201701.194824402@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'scripts/kconfig/nconf.c')
0 files changed, 0 insertions, 0 deletions