linux/drivers/misc/lkdtm
Christophe Leroy 4c411157a4 lkdtm: Print real addresses
Today, when doing a lkdtm test before the readiness of the
random generator, (ptrval) is printed instead of the address
at which it perform the fault:

[ 1597.337030] lkdtm: Performing direct entry EXEC_USERSPACE
[ 1597.337142] lkdtm: attempting ok execution at (ptrval)
[ 1597.337398] lkdtm: attempting bad execution at (ptrval)
[ 1597.337460] kernel tried to execute user page (77858000) -exploit attempt? (uid: 0)
[ 1597.344769] Unable to handle kernel paging request for instruction fetch
[ 1597.351392] Faulting instruction address: 0x77858000
[ 1597.356312] Oops: Kernel access of bad area, sig: 11 [#1]

If the lkdtm test is done later on, it prints an hashed address.

In both cases this is pointless. The purpose of the test is to
ensure the kernel generates an Oops at the expected address,
so real addresses needs to be printed. This patch fixes that.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Kees Cook <keescook@chromium.org>
2019-01-09 11:58:51 -08:00
..
bugs.c
core.c lkdtm: Do not depend on BLOCK and clean up headers 2019-01-09 11:58:51 -08:00
heap.c
lkdtm.h New gcc plugin: stackleak 2018-11-01 11:46:27 -07:00
Makefile lkdtm: Add a test for STACKLEAK 2018-09-04 10:35:47 -07:00
perms.c lkdtm: Print real addresses 2019-01-09 11:58:51 -08:00
refcount.c
rodata.c
stackleak.c lkdtm: Add a test for STACKLEAK 2018-09-04 10:35:47 -07:00
usercopy.c Char/Misc driver patches for 4.20-rc1 2018-10-26 09:11:43 -07:00