summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSang-Hoon Choi <csh0052@gmail.com>2026-09-22 03:15:59 +0900
committerJakub Kicinski <kuba@kernel.org>2026-09-24 09:59:32 -0700
commit1a983a4e14c635c40354be110cd9a1a5c94e01e6 (patch)
tree34bab83130682d046ee59f149ea21b3e6ffcde0d /tools/perf/scripts/python/stackcollapse.py
parent5b49efa1e16228921ceeae68d34defc8a4548dcb (diff)
downloadlinux-next-1a983a4e14c635c40354be110cd9a1a5c94e01e6.tar.gz
linux-next-1a983a4e14c635c40354be110cd9a1a5c94e01e6.zip
nfp: hold IPsec RX state under the XArray lock
nfp_net_ipsec_rx() drops the XArray lock before taking a reference to the xfrm_state it found. The delete path can erase the entry and drop the last state reference in that interval. RX can then try to increment a zero refcount after the state has been queued for destruction. The driver queues firmware invalidation asynchronously; the delete path does not wait for the command to complete or drain pending RX processing. The XFRM garbage collector waits for an RCU grace period before freeing the state. That delays reclamation but does not make acquiring a reference from zero valid. Take the xfrm_state reference before releasing the XArray lock so xa_erase() cannot run between lookup and reference acquisition. Fixes: 57f273adbcd4 ("nfp: add framework to support ipsec offloading") Reported-by: Changyul Lee <lcy8047@gmail.com> Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com> Link: https://patch.msgid.link/179001455912.44752.17153022439349797877.idr-bug-92@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions