The problem started appearing as soon as our systems picked up the linux-aws-5.15 branch for Focal. (That was 5.15.0-1015-aws, if memory serves). Could you please cherry pick this fix and pull it back to the the linux and linux-aws kernels for Focal? There's test here: https://<email address hidden>/ that reproduces the problem very reliably for me. With the patch applied, I no longer get the WARNs.
I have systems that are regularly hitting a WARN in trace_event_ dyn_put_ ref.
The exact message is:
WARNING: CPU: 1 PID: 30309 at kernel/ trace/trace_ dynevent. c:46 event_dyn_ put_ref+ 0x15/0x20
+trace_
With the following stacktrace:
perf_trace_ init+0x8f/ 0xd0 event_init+ 0x1f/0x40 init_event+ 0x4a/0x130 alloc+0x497/ 0xf40 perf_event_ open+0x1d4/ 0xf70 sys_perf_ event_open+ 0x20/0x30 64+0x5c/ 0xc0 SYSCALL_ 64_after_ hwframe+ 0x44/0xae
perf_tp_
perf_try_
perf_event_
__do_sys_
__x64_
do_syscall_
entry_
I've debugged this and worked with upstream to get a fix into Linux. It was recently merged in 6.0-rc2. See here: https:/ /git.kernel. org/pub/ scm/linux/ kernel/ git/torvalds/ linux.git/ commit/ ?h=v6.0- rc2&id= 7249921d94ff64f 67b733eca0b6885 3a62032b3d
The problem started appearing as soon as our systems picked up the linux-aws-5.15 branch for Focal. (That was 5.15.0-1015-aws, if memory serves). Could you please cherry pick this fix and pull it back to the the linux and linux-aws kernels for Focal? There's test here: https://<email address hidden>/ that reproduces the problem very reliably for me. With the patch applied, I no longer get the WARNs.