Merge branch 'bpf-fix-objects-stuck-in-free_by_rcu_ttrace'

Alexei Starovoitov says:

====================
bpf: Fix objects stuck in free_by_rcu_ttrace

From: Alexei Starovoitov <ast@kernel.org>

The objects that bpf_mem_alloc frees while RCU tasks trace GP is in flight
stay in free_by_rcu_ttrace list until the same bpf_mem_cache frees or
allocates in bulk again.

Patch 1 - refactoring. No functional change.
Patch 2 - the fix.
Patch 3 - selftest.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
====================

Link: https://patch.msgid.link/20260930095920.601738-1-alexei.starovoitov@gmail.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
Kumar Kartikeya Dwivedi 2026-10-01 18:40:06 +02:00
commit 7b12c53869
No known key found for this signature in database
GPG key ID: 472D377B63542F83
3 changed files with 157 additions and 10 deletions