mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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: [email protected] # 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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>