summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorXuanqiang Luo <luoxuanqiang@kylinos.cn>2026-07-08 14:05:37 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-07-21 11:45:53 +0200
commit7804eaa057fe19da09fa109484a3081d7bba2b76 (patch)
treed843f52482dd47216a7b4c654a86dfa1212882ee /tools/perf/scripts/python/bin
parent1469773b246a2b99fddc7331378e270e611f04bc (diff)
ipv4: snapshot dst.dev in ip_rt_send_redirect() and ip_rt_get_source()
rt_flush_dev() can replace rt->dst.dev with blackhole_netdev while RCU readers are running. ip_rt_send_redirect() and ip_rt_get_source() both read rt->dst.dev more than once and use the results in one operation. If rt->dst.dev changes between those reads, the operation can use values from two devices. For example, ip_rt_send_redirect() can use in_dev from the old device and the L3 master ifindex from blackhole_netdev. Read rt->dst.dev once in these two functions and use the snapshot for the later device accesses. Signed-off-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260708060537.17188-3-xuanqiang.luo@linux.dev Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions