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] Support bulk allocations #98

Closed ramosian-glider closed 4 years ago

ramosian-glider commented 4 years ago

Bulk allocations are performed via kmem_cache_alloc_bulk(), which doesn't call slab_alloc_node(). Need to intercept this path as well.

ramosian-glider commented 4 years ago

I think bulk allocations work now.

ramosian-glider commented 4 years ago

Actually, no, they do not. Taking a look.

ramosian-glider commented 4 years ago

Fixed now.