google / kernel-sanitizers

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

Minor fixes for v2 #147

Closed melver closed 4 years ago

melver commented 4 years ago

There were 2 smaller fixes in the other PR. Specifically the tweak to allow changing sample_interval for all builds at runtime, and calling prandom_u32() only if needed.

I am somewhat worried that changing sample_interval at runtime can be abused (e.g. by curious sysadmins), but I suppose if you're root, you already own the system anyway.

Thanks, -- Marco