google / kernel-sanitizers

Linux Kernel Sanitizers, fast bug-detectors for the Linux kernel
https://google.github.io/kernel-sanitizers/
442 stars 87 forks source link

kfence: get rid of per-cpu variables #49

Closed ramosian-glider closed 4 years ago

ramosian-glider commented 4 years ago

Those didn't make sense in the first place: if we stole a freelist on CPU0 and switched to CPU1 before reinstating it, the freelist contents would've been stuck on CPU0.

Signed-off-by: Alexander Potapenko glider@google.com

ramosian-glider commented 4 years ago

Added use-after-free detection.

ramosian-glider commented 4 years ago

Fixed the comments.