summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2022-11-29 19:48:09 +0300
committerJakub Kicinski <kuba@kernel.org>2022-12-02 07:26:21 +0300
commit5aa2820177af650293b2f9f1873c1f6f8e4ad7a4 (patch)
tree41d0ba065d1e740895121a095a1811a42bb565c1 /tools/perf/scripts/python/export-to-postgresql.py
parente012764cebf6e33097f6833ff15a936fbe7b846c (diff)
downloadlinux-5aa2820177af650293b2f9f1873c1f6f8e4ad7a4.tar.xz
hsr: Add a rcu-read lock to hsr_forward_skb().
hsr_forward_skb() a skb and keeps information in an on-stack hsr_frame_info. hsr_get_node() assigns hsr_frame_info::node_src which is from a RCU list. This pointer is used later in hsr_forward_do(). I don't see a reason why this pointer can't vanish midway since there is no guarantee that hsr_forward_skb() is invoked from an RCU read section. Use rcu_read_lock() to protect hsr_frame_info::node_src from its assignment until it is no longer used. Fixes: f266a683a4804 ("net/hsr: Better frame dispatch") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions