Skip to contentSkip to conversation

6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP

linux-6.6.y Francesco Dolcini 3 participants 6 messages Sep 21 – Sep 22 Stable branch

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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] 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

maintainer
#2 lore raw
Quoted 2 lines

Could 98363feee39760011bd2225558c0fef9487c449f be 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
#3 lore raw
In reply to Francesco Dolcini
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] 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.

Quoted 2 lines

Could 98363feee39760011bd2225558c0fef9487c449f be 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

#4 lore raw
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] 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.

Quoted 5 lines
Quoted 2 lines

Could 98363feee39760011bd2225558c0fef9487c449f be 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?

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

#5 lore raw
Quoted 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] 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.

Quoted 5 lines
Quoted 2 lines

Could 98363feee39760011bd2225558c0fef9487c449f be 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?

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