Re: [PATCH] tracing: Delay module ref count for "enable_event" trigger

From: Ali Ahmet Memiş

Date: Fri Sep 11 2026 - 12:33:34 EST


On Fri, Aug 28, 2026 at 03:43:40PM +0200, Alexander Gordeev wrote:
> This patch increasingly looks as a regression on s390.
> We are hitting this once in a while when running the ftrace selftests:
[...]
> I did not manage to come up with a reproducer - if you have any idea,
> please let me know.

Sent a fix:

https://lore.kernel.org/all/20260911155650.354844-1-aliamemis@xxxxxxxxxxx/

It's the deferred trace_event_put_ref() reading file->event_call after the
instance rmdir already freed the trace_event_file. Could you give it a run?