6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
Hello all,
Disclaimer: the commit/root-cause analysis below was produced with LLM assistance. The failure itself is reproduced and verified by our CI/CD (LAVA on-target test).
Our CI reproducibly hits this WARN on linux-6.6.y at 02cc578650be (6.6.158-rc1), on i.MX6, when a process leaves an IPv6 multicast group (e.g. avahi-daemon around a link flap):
WARNING: CPU: 0 PID: 418 at net/ipv6/mcast.c:1013 __ipv6_dev_mc_dec+0x180/0x184 [ipv6]
RTNL: assertion failed at net/ipv6/mcast.c (1013)
__ipv6_dev_mc_dec [ipv6] from ipv6_sock_mc_drop+0x144/0x240 [ipv6] ipv6_sock_mc_drop [ipv6] from do_ipv6_setsockopt+0x92c/0x1a48 [ipv6]
Cause: 24e6c4f46cd4 ("ipv6: mcast: Don't hold RTNL for IPV6_DROP_MEMBERSHIP and MCAST_LEAVE_GROUP.", upstream 2ceb71ce7d34) is in 6.6.y and drops RTNL from ipv6_sock_mc_drop(), but its same-series sibling e01b193e0b50 ("ipv6: mcast: Use in6_dev_get() in ipv6_dev_mc_dec().", stable pick 98363feee397), which removes the now-stale ASSERT_RTNL() in __ipv6_dev_mc_dec(), was not backported alongside it.
Could 98363feee39760011bd2225558c0fef9487c449f be applied to linux-6.6.y? Or the problematic commit should be dropped
Francesco
Fixed Cc list ...
Quoted 25 lines · Francesco Dolcini
Hello all,
Disclaimer: the commit/root-cause analysis below was produced with LLM assistance. The failure itself is reproduced and verified by our CI/CD (LAVA on-target test).
Our CI reproducibly hits this WARN on linux-6.6.y at
02cc578650be(6.6.158-rc1), on i.MX6, when a process leaves an IPv6 multicast group (e.g. avahi-daemon around a link flap):WARNING: CPU: 0 PID: 418 at net/ipv6/mcast.c:1013 __ipv6_dev_mc_dec+0x180/0x184 [ipv6]RTNL: assertion failed at
net/ipv6/mcast.c(1013)
__ipv6_dev_mc_dec[ipv6] fromipv6_sock_mc_drop+0x144/0x240[ipv6]ipv6_sock_mc_drop[ipv6] fromdo_ipv6_setsockopt+0x92c/0x1a48[ipv6]Cause:
24e6c4f46cd4("ipv6: mcast: Don't hold RTNL forIPV6_DROP_MEMBERSHIPandMCAST_LEAVE_GROUP.", upstream2ceb71ce7d34) is in 6.6.y and drops RTNL fromipv6_sock_mc_drop(), but its same-series siblinge01b193e0b50("ipv6: mcast: Usein6_dev_get()inipv6_dev_mc_dec().", stable pick98363feee397), which removes the now-staleASSERT_RTNL()in__ipv6_dev_mc_dec(), was not backported alongside it.Could
98363feee39760011bd2225558c0fef9487c449fbe applied to linux-6.6.y? Or the problematic commit should be dropped
Sasha Levin
maintainerQuoted 2 lines
Could
98363feee39760011bd2225558c0fef9487c449fbe applied to linux-6.6.y? Or the problematic commit should be dropped
That hex is not a commit, but the rest of your analysis is right. The commit that removes the stale ASSERT_RTNL() from __ipv6_dev_mc_dec() is e01b193e0b50 ("ipv6: mcast: Use in6_dev_get() in ipv6_dev_mc_dec()."), five patches earlier in the same series.
The RTNL conversion had already been dropped from the 6.6 queue on September 19, so nothing with this problem shipped in a released 6.6. The full ordered set is now queued for 6.6, thanks, and 6.6.158-rc1 is the only place the half-converted state existed.
Signature · 2 lines
Thanks, Sasha
Greg Kroah-Hartman
maintainerQuoted 22 lines · Francesco Dolcini
Hello all,
Disclaimer: the commit/root-cause analysis below was produced with LLM assistance. The failure itself is reproduced and verified by our CI/CD (LAVA on-target test).
Our CI reproducibly hits this WARN on linux-6.6.y at
02cc578650be(6.6.158-rc1), on i.MX6, when a process leaves an IPv6 multicast group (e.g. avahi-daemon around a link flap):WARNING: CPU: 0 PID: 418 at net/ipv6/mcast.c:1013 __ipv6_dev_mc_dec+0x180/0x184 [ipv6]RTNL: assertion failed at
net/ipv6/mcast.c(1013)
__ipv6_dev_mc_dec[ipv6] fromipv6_sock_mc_drop+0x144/0x240[ipv6]ipv6_sock_mc_drop[ipv6] fromdo_ipv6_setsockopt+0x92c/0x1a48[ipv6]Cause:
24e6c4f46cd4("ipv6: mcast: Don't hold RTNL forIPV6_DROP_MEMBERSHIPandMCAST_LEAVE_GROUP.", upstream2ceb71ce7d34) is in 6.6.y and drops RTNL fromipv6_sock_mc_drop(), but its same-series siblinge01b193e0b50("ipv6: mcast: Usein6_dev_get()inipv6_dev_mc_dec().", stable pick98363feee397), which removes the now-staleASSERT_RTNL()in__ipv6_dev_mc_dec(), was not backported alongside it.
Quoted 2 lines
Could
98363feee39760011bd2225558c0fef9487c449fbe applied to linux-6.6.y? Or the problematic commit should be dropped
There is no such commit id with that number in Linus's tree :(
Did your LLM make it up?
confused,
greg k-h
Quoted 23 lines · Greg Kroah-Hartman
Quoted 22 lines · Francesco Dolcini
Hello all,
Disclaimer: the commit/root-cause analysis below was produced with LLM assistance. The failure itself is reproduced and verified by our CI/CD (LAVA on-target test).
Our CI reproducibly hits this WARN on linux-6.6.y at
02cc578650be(6.6.158-rc1), on i.MX6, when a process leaves an IPv6 multicast group (e.g. avahi-daemon around a link flap):WARNING: CPU: 0 PID: 418 at net/ipv6/mcast.c:1013 __ipv6_dev_mc_dec+0x180/0x184 [ipv6]RTNL: assertion failed at
net/ipv6/mcast.c(1013)
__ipv6_dev_mc_dec[ipv6] fromipv6_sock_mc_drop+0x144/0x240[ipv6]ipv6_sock_mc_drop[ipv6] fromdo_ipv6_setsockopt+0x92c/0x1a48[ipv6]Cause:
24e6c4f46cd4("ipv6: mcast: Don't hold RTNL forIPV6_DROP_MEMBERSHIPandMCAST_LEAVE_GROUP.", upstream2ceb71ce7d34) is in 6.6.y and drops RTNL fromipv6_sock_mc_drop(), but its same-series siblinge01b193e0b50("ipv6: mcast: Usein6_dev_get()inipv6_dev_mc_dec().", stable pick98363feee397), which removes the now-staleASSERT_RTNL()in__ipv6_dev_mc_dec(), was not backported alongside it.
Quoted 5 lines
Quoted 2 lines
Could
98363feee39760011bd2225558c0fef9487c449fbe applied to linux-6.6.y? Or the problematic commit should be droppedThere is no such commit id with that number in Linus's tree :( Did your LLM make it up?
For sure it did ... and this is the reason I was upfront that the analysis is from an LLM :-(
What I know as a fact is this WARNING exist, the related folks and in Cc: and they can provide better guidance on what we should do (drop the patch or add some missing dependency).
Thanks,
Francesco
Greg Kroah-Hartman
maintainerQuoted 30 lines · Francesco Dolcini
Quoted 23 lines · Greg Kroah-Hartman
Quoted 22 lines · Francesco Dolcini
Hello all,
Disclaimer: the commit/root-cause analysis below was produced with LLM assistance. The failure itself is reproduced and verified by our CI/CD (LAVA on-target test).
Our CI reproducibly hits this WARN on linux-6.6.y at
02cc578650be(6.6.158-rc1), on i.MX6, when a process leaves an IPv6 multicast group (e.g. avahi-daemon around a link flap):WARNING: CPU: 0 PID: 418 at net/ipv6/mcast.c:1013 __ipv6_dev_mc_dec+0x180/0x184 [ipv6]RTNL: assertion failed at
net/ipv6/mcast.c(1013)
__ipv6_dev_mc_dec[ipv6] fromipv6_sock_mc_drop+0x144/0x240[ipv6]ipv6_sock_mc_drop[ipv6] fromdo_ipv6_setsockopt+0x92c/0x1a48[ipv6]Cause:
24e6c4f46cd4("ipv6: mcast: Don't hold RTNL forIPV6_DROP_MEMBERSHIPandMCAST_LEAVE_GROUP.", upstream2ceb71ce7d34) is in 6.6.y and drops RTNL fromipv6_sock_mc_drop(), but its same-series siblinge01b193e0b50("ipv6: mcast: Usein6_dev_get()inipv6_dev_mc_dec().", stable pick98363feee397), which removes the now-staleASSERT_RTNL()in__ipv6_dev_mc_dec(), was not backported alongside it.Quoted 5 lines
Quoted 2 lines
Could
98363feee39760011bd2225558c0fef9487c449fbe applied to linux-6.6.y? Or the problematic commit should be droppedThere is no such commit id with that number in Linus's tree :( Did your LLM make it up?
Quoted 6 lines
For sure it did ... and this is the reason I was upfront that the analysis is from an LLM :-(
What I know as a fact is this WARNING exist, the related folks and in Cc: and they can provide better guidance on what we should do (drop the patch or add some missing dependency).
You have the best way to test it, how about finding out what exact commit is needed to be backported here and submit it?
thanks,
greg k-h