aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2023-07-04 13:58:34 +0000
committerVlastimil Babka <[email protected]>2023-07-11 09:53:50 +0200
commit44f6a42d4935028ffd788e7cf9114e4a1f8d6d3a (patch)
tree5ab28b869abe47c8151140d255c185d10402e612 /lib/test_fortify/write_overflow-strncpy-src.c
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
mm/slub: refactor freelist to use custom type
Currently the SLUB code represents encoded freelist entries as "void*". That's misleading, those things are encoded under CONFIG_SLAB_FREELIST_HARDENED so that they're not actually dereferencable. Give them their own type, and split freelist_ptr() into one function per direction (one for encoding, one for decoding). Signed-off-by: Jann Horn <[email protected]> Co-developed-by: Matteo Rizzo <[email protected]> Signed-off-by: Matteo Rizzo <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions