]> git.ipfire.org Git - thirdparty/linux.git/commit
net: no longer assume RTNL is held in flush_all_backlogs()
authorEric Dumazet <edumazet@google.com>
Tue, 14 Jan 2025 20:55:28 +0000 (20:55 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jan 2025 03:17:04 +0000 (19:17 -0800)
commit8a2b61e9e87936649073e287242ccdcbfb636906
treee73c82a41f6667a16c4994c55ba55604827c9caf
parent0734d7c3d93cdcb8a56ce914d3c661300f24434d
net: no longer assume RTNL is held in flush_all_backlogs()

flush_all_backlogs() uses per-cpu and static data to hold its
temporary data, on the assumption it is called under RTNL
protection.

Following patch in the series will break this assumption.

Use instead a dynamically allocated piece of memory.

In the unlikely case the allocation fails,
use a boot-time allocated memory.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jesse Brandeburg <jbrandeburg@cloudflare.com>
Link: https://patch.msgid.link/20250114205531.967841-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c