Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1527879

Re: [RFC][PATCH] x86: Verify access_ok() context

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH] x86: Verify access_ok() context
Date 2016-11-22 20:50 +0100
Message-ID <sGpeN-365-23@gated-at.bofh.it> (permalink)
References <sGg1Q-5rf-29@gated-at.bofh.it> <sGn3j-1LJ-11@gated-at.bofh.it> <sGp58-32O-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Nov 22, 2016 at 11:37 AM, Peter Zijlstra <peterz@infradead.org> 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).

               Linus

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC][PATCH] x86: Verify access_ok() context Peter Zijlstra <peterz@infradead.org> - 2016-11-22 11:00 +0100
  Re: [RFC][PATCH] x86: Verify access_ok() context Andy Lutomirski <luto@amacapital.net> - 2016-11-22 18:30 +0100
    Re: [RFC][PATCH] x86: Verify access_ok() context Peter Zijlstra <peterz@infradead.org> - 2016-11-22 20:40 +0100
      Re: [RFC][PATCH] x86: Verify access_ok() context Linus Torvalds <torvalds@linux-foundation.org> - 2016-11-22 20:50 +0100

csiph-web