]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/vsprintf.c: kptr_restrict: fix pK-error in SysRq show-all-timers(Q)
authorDan Rosenberg <drosenberg@vsecurity.com>
Sat, 21 Jul 2012 00:54:46 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:15 +0000 (13:53 +1000)
commit6470083fe6216c356921fab72fdcc25effb29e1e
treeecb09d535b08d2816eb62a0dfd275dd57b2e607a
parent170320180e48bd03c3f559749291e115ada31d13
lib/vsprintf.c: kptr_restrict: fix pK-error in SysRq show-all-timers(Q)

When using ALT+SysRq+Q all the pointers are replaced with "pK-error" like
this:

[23153.208033]   .base:               pK-error

with echo h > /proc/sysrq-trigger it works:

[23107.776363]   .base:       ffff88023e60d540

The intent behind this behavior was to return "pK-error" in cases where
the %pK format specifier was used in interrupt context, because the
CAP_SYSLOG check wouldn't be meaningful.  Clearly this should only apply
when kptr_restrict is actually enabled though.

Reported-by: Stevie Trujillo <stevie.trujillo@gmail.com>
Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/vsprintf.c