• Andrew Morton's avatar
    [PATCH] more informative slab poisoning · 4f781c84
    Andrew Morton authored
    slab poisons objects with 0x5a both when they are constructed and when
    they are freed.  So it is not possible to tell whether a deref of
    0x5a5a5a5a was a use-before-initialisation bug or a use-after-free bug.
    
    The patch changes it so that
    
    1) A deref of 0x5a5a5a5a means use-of-uninitialised-memory
    
    2) A deref of 0x6b6b6b6b means use-of-freed-memory.
    4f781c84
slab.c 58.7 KB