OSDN Git Service

lkdtm/heap: Avoid edge and middle of slabs
authorKees Cook <keescook@chromium.org>
Thu, 25 Jun 2020 20:37:02 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Jun 2020 16:41:39 +0000 (18:41 +0200)
commite12145cf1c3a8077e6d9f575711e38dd7d8a3ebc
tree76020d7c0b5da911be0fa25896002c89579325b7
parent464e86b4abadfc490f426954b431e2ec6a9d7bd2
lkdtm/heap: Avoid edge and middle of slabs

Har har, after I moved the slab freelist pointer into the middle of the
slab, now it looks like the contents are getting poisoned. Adjust the
test to avoid the freelist pointer again.

Fixes: 3202fa62fb43 ("slub: relocate freelist pointer to middle of object")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200625203704.317097-3-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/heap.c