Re: [PATCH] selftests/ftrace: Correctly enable event in instance-event.tc

From: Steven Rostedt
Date: Tue Sep 05 2023 - 18:36:26 EST


On Tue, 5 Sep 2023 20:54:40 +0800
Zheng Yejian <zhengyejian1@xxxxxxxxxx> wrote:

> Hi, Steve, Ajay,
>
> After this patch and run this testcase, I got an use-after-free report
> by KASAN. Short log see [1], full logs see attach "panic.log".
>
> And by simple bisect, I found it may be introduced by:
>
> 27152bceea1d ("eventfs: Move tracing/events to eventfs")
>
> Link:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=27152bceea1df27ffebb12ac9cd9adbf2c4c3f35

Hi Zheng,

Can you test:

https://lore.kernel.org/all/20230905183332.628d7cc0@xxxxxxxxxxxxxxxxxx/

and see if it fixes the KASAN issue for you?

Thanks!

-- Steve