x86/uaccess: Introduce user_access_{save,restore}()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 3 Apr 2019 07:39:48 +0000 (09:39 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 09:02:19 +0000 (11:02 +0200)
commite74deb11931ff682b59d5b9d387f7115f689698e
tree6d9698ce16b48c95ecff5ca40f8b2701941b9583
parent88e4718275c1bddca6f61f300688b4553dc8584b
x86/uaccess: Introduce user_access_{save,restore}()

Introduce common helpers for when we need to safely suspend a
uaccess section; for instance to generate a {KA,UB}SAN report.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/smap.h
arch/x86/include/asm/uaccess.h
include/linux/uaccess.h