Re: [RFC][PATCH] x86: Verify access_ok() context
From: Linus Torvalds
Date: Tue Nov 22 2016 - 14:42:25 EST
On Tue, Nov 22, 2016 at 11:37 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> CONFIG_DEBUG_VM seems somehow inappropriate.
The usual might_fault() logic? That uses
defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_DEBUG_ATOMIC_SLEEP)
(and "might_sleep()" uses just CONFIG_DEBUG_ATOMIC_SLEEP, maybe that's fine).