From: Alexei Starovoitov Date: Sat, 22 Nov 2025 02:35:00 +0000 (-0800) Subject: Merge branch 'bpf-nested-rcu-critical-sections' X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c42732087341e3c1ae34b25cc318609cacd866ac;p=thirdparty%2Flinux.git Merge branch 'bpf-nested-rcu-critical-sections' Puranjay Mohan says: ==================== bpf: Nested rcu critical sections v1: https://lore.kernel.org/bpf/20250916113622.19540-1-puranjay@kernel.org/ Changes in v1->v2: - Move the addition of new tests to a separate patch (Alexei) - Avoid incrementing active_rcu_locks at two places (Eduard) Support nested rcu critical sections by making the boolean flag active_rcu_lock a counter and use it to manage rcu critical section state. bpf_rcu_read_lock() increments this counter and bpf_rcu_read_unlock() decrements it, MEM_RCU -> PTR_UNTRUSTED transition happens when active_rcu_locks drops to 0. ==================== Link: https://patch.msgid.link/20251117200411.25563-1-puranjay@kernel.org Signed-off-by: Alexei Starovoitov --- c42732087341e3c1ae34b25cc318609cacd866ac