On Sat, 5 Mar 2022 at 07:06, Tianchen Ding <dtcccc@xxxxxxxxxxxxxxxxx> wrote: [...] > Hmm... > I found KFENCE_WARN_ON() may be called when sample_interval==0. (e.g., > kfence_guarded_free()) > So it's better to add a bool. Yes, that's probably safer and easier. Thanks, -- Marco