]> git.baikalelectronics.ru Git - kernel.git/commit
x86/uaccess, sched/preempt: Verify access_ok() context
authorPeter Zijlstra <peterz@infradead.org>
Tue, 22 Nov 2016 09:57:15 +0000 (10:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 6 Dec 2016 09:32:40 +0000 (10:32 +0100)
commit80156c91845ac2ec0ff0f6f0cc1b1b9df5bb9566
tree71f081928406571e40f14f8fa2f5a54788933083
parent861c1e6874f92cc9526b2c03194dc7680f12a6d7
x86/uaccess, sched/preempt: Verify access_ok() context

I recently encountered wreckage because access_ok() was used where it
should not be, add an explicit WARN when access_ok() is used wrongly.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/uaccess.h
include/linux/preempt.h