aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_cpp.cpp
diff options
context:
space:
mode:
authorJonathan Lemon <[email protected]>2019-12-03 22:01:14 +0000
committerDavid S. Miller <[email protected]>2019-12-05 00:35:18 +0000
commit86c76c09898332143be365c702cf8d586ed4ed21 (patch)
tree934806f44fc30fbc7412522e016c09b639bd805f /tools/testing/selftests/bpf/test_cpp.cpp
parentact_ct: support asymmetric conntrack (diff)
downloadkernel-86c76c09898332143be365c702cf8d586ed4ed21.tar.gz
kernel-86c76c09898332143be365c702cf8d586ed4ed21.zip
xdp: obtain the mem_id mutex before trying to remove an entry.
A lockdep splat was observed when trying to remove an xdp memory model from the table since the mutex was obtained when trying to remove the entry, but not before the table walk started: Fix the splat by obtaining the lock before starting the table walk. Fixes: c3f812cea0d7 ("page_pool: do not release pool until inflight == 0.") Reported-by: Grygorii Strashko <[email protected]> Signed-off-by: Jonathan Lemon <[email protected]> Tested-by: Grygorii Strashko <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Acked-by: Ilias Apalodimas <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions