]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mpls: Protect net->mpls.platform_label with a per-netns mutex.
authorKuniyuki Iwashima <kuniyu@google.com>
Wed, 29 Oct 2025 17:33:04 +0000 (17:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:40:53 +0000 (17:40 -0800)
commite833eb25161aae6cd0caf14782f405d0ed5765ed
tree42ab8ae6e1b2bbfe964787f93f23b07726768a95
parentfb2b77b9b1dbd90cf7db5580b15df40a20b42bd8
mpls: Protect net->mpls.platform_label with a per-netns mutex.

MPLS (re)uses RTNL to protect net->mpls.platform_label,
but the lock does not need to be RTNL at all.

Let's protect net->mpls.platform_label with a dedicated
per-netns mutex.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20251029173344.2934622-13-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netns/mpls.h
net/mpls/af_mpls.c
net/mpls/internal.h