On Wed, Jan 08, 2025 at 12:26:07PM +0100, Jiri Olsa wrote: > On Sat, Jan 04, 2025 at 01:39:46AM +0000, Pu Lehui wrote: > > From: Pu Lehui <pulehui@xxxxxxxxxx> > > > > Commit ef1b808e3b7c ("bpf: Fix UAF via mismatching bpf_prog/attachment > > RCU flavors") resolved a possible UAF issue in uprobes that attach > > non-sleepable bpf prog by explicitly waiting for a tasks-trace-RCU grace > > period. But, in the current implementation, synchronize_rcu_tasks_trace > > is included within the mutex critical section, which increases the > > length of the critical section and may affect performance. So let's move > > out synchronize_rcu_tasks_trace from mutex CS. > > lgtm, adding peter Yeah, I don't immediately see anything funny there either. Carry on.