linux/net/mpls
Jérémy Jean c71d33e31b mpls: unregister sysctls before network device teardown
On network namespace exit, loopback is freed before MPLS unregisters its
sysctls. A task can keep platform_labels open and write to it during exit.
The handler can then use the freed loopback device.

Unregister the sysctls in pre_exit.

Cc: stable+noautosel@kernel.org # LLM report + LLM fix, not seen in real life
Fixes: 7720c01f3f ("mpls: Add a sysctl to control the size of the mpls label table")
Signed-off-by: Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
Link: https://patch.msgid.link/20261007201237.171863-2-Jeremy.Jean@oss.cyber.gouv.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-10-15 18:01:01 -07:00
..
af_mpls.c mpls: unregister sysctls before network device teardown 2026-10-15 18:01:01 -07:00
internal.h mpls: Protect net->mpls.platform_label with a per-netns mutex. 2025-11-03 17:40:53 -08:00
Kconfig sysctl: remove CONFIG_PROC_SYSCTL, it just mirrors CONFIG_SYSCTL 2026-08-05 15:28:23 +02:00
Makefile
mpls_gso.c - Kuan-Wei Chiu has developed the well-named series "lib min_heap: Min 2024-03-14 18:03:09 -07:00
mpls_iptunnel.c mpls: Add mpls_dev_rcu(). 2025-11-03 17:40:48 -08:00