Re: [PATCH] tracing/user_events: Clear copied tracing state before fork duplication
From: Jérémy Jean
Date: Wed Aug 26 2026 - 17:48:49 EST
On 2026-08-26 21:23, Steven Rostedt wrote:
diff --git a/include/linux/user_events.h b/include/linux/user_events.h
index 57d1ff0..2c9ac7b 100644
--- a/include/linux/user_events.h
+++ b/include/linux/user_events.h
@@ -48,6 +48,7 @@ static inline void user_events_fork(struct task_struct *t,
return;
}
+ t->user_event_mm = NULL;
Honestly, that line should be in user_event_mm_dup() and not here.
Thanks for the feedback. I have just sent a v2 implementing this.
Regards,
Jérémy