summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2026-02-14 16:58:50 +0200
committerFlorian Westphal <fw@strlen.de>2026-02-17 15:04:20 +0100
commit8fde939b0206afc1d5846217a01a16b9bc8c7896 (patch)
tree0ed9d2b8e61142858b3bd084b7c8fb022b2eef4c /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent05cfe9863ef049d98141dc2969eefde72fb07625 (diff)
ipvs: do not keep dest_dst if dev is going down
There is race between the netdev notifier ip_vs_dst_event() and the code that caches dst with dev that is going down. As the FIB can be notified for the closed device after our handler finishes, it is possible valid route to be returned and cached resuling in a leaked dev reference until the dest is not removed. To prevent new dest_dst to be attached to dest just after the handler dropped the old one, add a netif_running() check to make sure the notifier handler is not currently running for device that is closing. Fixes: 7a4f0761fce3 ("IPVS: init and cleanup restructuring") Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions