* [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
@ 2026-09-21 7:43 Francesco Dolcini
2026-09-21 7:47 ` Francesco Dolcini
2026-09-21 12:24 ` Greg Kroah-Hartman
0 siblings, 2 replies; 6+ messages in thread
From: Francesco Dolcini @ 2026-09-21 7:43 UTC (permalink / raw)
To: stable, Sasha Levin, Greg Kroah-Hartman
Cc: KuniyukiIwashimakuniyu, EricDumazetedumazet, JakubKicinskikuba
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
2026-09-21 7:43 [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP Francesco Dolcini
@ 2026-09-21 7:47 ` Francesco Dolcini
2026-09-22 15:38 ` Sasha Levin
2026-09-21 12:24 ` Greg Kroah-Hartman
1 sibling, 1 reply; 6+ messages in thread
From: Francesco Dolcini @ 2026-09-21 7:47 UTC (permalink / raw)
To: Francesco Dolcini
Cc: stable, Sasha Levin, Greg Kroah-Hartman, Kuniyuki Iwashima,
Eric Dumazet, Jakub Kicinski
Fixed Cc list ...
On Mon, Sep 21, 2026 at 09:43:50AM +0200, Francesco Dolcini wrote:
> 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
2026-09-21 7:47 ` Francesco Dolcini
@ 2026-09-22 15:38 ` Sasha Levin
0 siblings, 0 replies; 6+ messages in thread
From: Sasha Levin @ 2026-09-22 15:38 UTC (permalink / raw)
To: Francesco Dolcini
Cc: Sasha Levin, stable, Greg Kroah-Hartman, Kuniyuki Iwashima,
Eric Dumazet, Jakub Kicinski
> 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.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
2026-09-21 7:43 [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP Francesco Dolcini
2026-09-21 7:47 ` Francesco Dolcini
@ 2026-09-21 12:24 ` Greg Kroah-Hartman
2026-09-21 14:24 ` Francesco Dolcini
1 sibling, 1 reply; 6+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-21 12:24 UTC (permalink / raw)
To: Francesco Dolcini
Cc: stable, Sasha Levin, KuniyukiIwashimakuniyu, EricDumazetedumazet
On Mon, Sep 21, 2026 at 09:43:48AM +0200, Francesco Dolcini wrote:
> 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
There is no such commit id with that number in Linus's tree :(
Did your LLM make it up?
confused,
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
2026-09-21 12:24 ` Greg Kroah-Hartman
@ 2026-09-21 14:24 ` Francesco Dolcini
2026-09-21 14:29 ` Greg Kroah-Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Francesco Dolcini @ 2026-09-21 14:24 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Francesco Dolcini, stable, Sasha Levin, Kuniyuki Iwashima,
Eric Dumazet, Jakub Kicinski
On Mon, Sep 21, 2026 at 02:24:41PM +0200, Greg Kroah-Hartman wrote:
> On Mon, Sep 21, 2026 at 09:43:48AM +0200, Francesco Dolcini wrote:
> > 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
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP
2026-09-21 14:24 ` Francesco Dolcini
@ 2026-09-21 14:29 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-21 14:29 UTC (permalink / raw)
To: Francesco Dolcini
Cc: stable, Sasha Levin, Kuniyuki Iwashima, Eric Dumazet,
Jakub Kicinski
On Mon, Sep 21, 2026 at 04:24:42PM +0200, Francesco Dolcini wrote:
> On Mon, Sep 21, 2026 at 02:24:41PM +0200, Greg Kroah-Hartman wrote:
> > On Mon, Sep 21, 2026 at 09:43:48AM +0200, Francesco Dolcini wrote:
> > > 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
> >
> > 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).
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-09-22 15:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 7:43 [linux-6.6.y] 6.6.158-rc1: stale ASSERT_RTNL() in __ipv6_dev_mc_dec() WARNs on IPV6_LEAVE_GROUP Francesco Dolcini
2026-09-21 7:47 ` Francesco Dolcini
2026-09-22 15:38 ` Sasha Levin
2026-09-21 12:24 ` Greg Kroah-Hartman
2026-09-21 14:24 ` Francesco Dolcini
2026-09-21 14:29 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox