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

Fix kfence+memcg #165

Closed melver closed 4 years ago

melver commented 4 years ago

Fixes https://github.com/google/kasan/issues/164

One thing I don't like is that we are adding an include to the *def.h headers. These seem to want no headers? Although technically they should include their required headers... hopefully nobody will complain about us adding the kfence header (the only major include in kfence.h is mm.h).