lkdtm: Update WRITE_AFTER_FREE test
authorLaura Abbott <labbott@fedoraproject.org>
Fri, 26 Feb 2016 00:36:43 +0000 (16:36 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 1 Mar 2016 22:29:13 +0000 (14:29 -0800)
commit250a8988ef4071d8b7cdbb27388f09f33402293a
tree44943637efcbf5405da8308fd5effe77a4e740de
parentbc0b8cc6cb26a209fa1679d5c063b47bc0afe964
lkdtm: Update WRITE_AFTER_FREE test

The SLUB allocator may use the first word of a freed block to store the
freelist information. This may make it harder to test poisoning
features. Change the WRITE_AFTER_FREE test to better match what
the READ_AFTER_FREE test does and also print out a big more information.

Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm.c