Thread (3 messages) flat view 3 messages, 2 authors, 12d ago

Re: [PATCH net 1/1] ipv6: ip6mr: fix mr_table lifetime leak

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-07-23 23:41:36

On Fri, 24 Jul 2026 01:38:23 +0800 Ren Wei wrote:
MRT6_TABLE should only select a multicast routing table, but a fresh
non-default mr_table can still outlive the socket once MRT6_INIT
publishes it. After MRT6_DONE or socket close, ip6mr_sk_done() clears
the routing state but leaves the empty table linked from mr6_tables, so
repeated MRT6_TABLE(fresh id) -> MRT6_INIT -> MRT6_DONE/close cycles
accumulate detached tables until netns teardown.
Sashiko says this is quite broken, plus it breaks the selftest for ipmr.
Please wait for Sashiko review to be released and take it from there..
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help