summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-02-12 03:13:00 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-02-12 05:35:48 +0300
commit7eb391299419a03cbe0fa5ab0e6b0932e42c7a36 (patch)
treee531c88307514653e1fa5de03ec37fdf81bf3a6c /mm
parent62eb320ab077890dbbcc28343fa6432a82a10c35 (diff)
downloadlinux-7eb391299419a03cbe0fa5ab0e6b0932e42c7a36.tar.xz
vsprintf: kptr_restrict is okay in IRQ when 2
The kptr_restrict flag, when set to 1, only prints the kernel address when the user has CAP_SYSLOG. When it is set to 2, the kernel address is always printed as zero. When set to 1, this needs to check whether or not we're in IRQ. However, when set to 2, this check is unneccessary, and produces confusing results in dmesg. Thus, only make sure we're not in IRQ when mode 1 is used, but not mode 2. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions