Re: [PATCH v2 2/2] slab: Add naive detection of double free

2020-08-04 Thread Vlastimil Babka
On 6/25/20 11:55 PM, Kees Cook wrote: > Similar to commit ce6fa91b9363 ("mm/slub.c: add a naive detection > of double free or corruption"), add a very cheap double-free check > for SLAB under CONFIG_SLAB_FREELIST_HARDENED. With this added, the > "SLAB_FREE_DOUBLE" LKDTM test passes under SLAB: >

[PATCH v2 2/2] slab: Add naive detection of double free

2020-06-25 Thread Kees Cook
Similar to commit ce6fa91b9363 ("mm/slub.c: add a naive detection of double free or corruption"), add a very cheap double-free check for SLAB under CONFIG_SLAB_FREELIST_HARDENED. With this added, the "SLAB_FREE_DOUBLE" LKDTM test passes under SLAB: lkdtm: Performing direct entry