aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/netns.py
diff options
context:
space:
mode:
authorOliver Hartkopp <[email protected]>2025-05-19 12:50:27 +0000
committerMarc Kleine-Budde <[email protected]>2025-05-19 14:58:19 +0000
commitdac5e6249159ac255dad9781793dbe5908ac9ddb (patch)
tree6fb3fc8ab8b768b22493a8c760cebc732cc812ed /tools/testing/selftests/net/lib/py/netns.py
parentcan: bcm: add locking for bcm_op runtime updates (diff)
downloadkernel-dac5e6249159ac255dad9781793dbe5908ac9ddb.tar.gz
kernel-dac5e6249159ac255dad9781793dbe5908ac9ddb.zip
can: bcm: add missing rcu read protection for procfs content
When the procfs content is generated for a bcm_op which is in the process to be removed the procfs output might show unreliable data (UAF). As the removal of bcm_op's is already implemented with rcu handling this patch adds the missing rcu_read_lock() and makes sure the list entries are properly removed under rcu protection. Fixes: f1b4e32aca08 ("can: bcm: use call_rcu() instead of costly synchronize_rcu()") Reported-by: Anderson Nascimento <[email protected]> Suggested-by: Anderson Nascimento <[email protected]> Tested-by: Anderson Nascimento <[email protected]> Signed-off-by: Oliver Hartkopp <[email protected]> Link: https://patch.msgid.link/[email protected] Cc: [email protected] # >= 5.4 Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/netns.py')
0 files changed, 0 insertions, 0 deletions