stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates
@ 2025-08-18 12:03 喵公子
  2025-08-18 12:25 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: 喵公子 @ 2025-08-18 12:03 UTC (permalink / raw)
  To: stable; +Cc: regressions

Hi,

While testing Linux kernel 6.12.42 on OpenWrt, we observed a
regression in IPv6 Router Advertisement (RA) handling for the default
router.

Affected commits

The following commits appear related and may have introduced the issue:

ipv6: fix possible infinite loop in fib6_info_uses_dev():
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=db65739d406c72776fbdbbc334be827ef05880d2

ipv6: prevent infinite loop in rt6_nlmsg_size():
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38

ipv6: annotate data-races around rt->fib6_nsiblings:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=0c58f74f8aa991c2a63bb58ff743e1ff3d584b62

Problem description:

In Linux kernel 6.12.42, IPv6 FIB multipath and concurrent access
handling was made stricter (READ_ONCE / WRITE_ONCE + RCU retry).

The RA “Automatic” mode relies on checking whether a local default route exists.

With the stricter FIB handling, this check can fail in multipath scenarios.

As a result, RA does not advertise a default route, and IPv6 clients
on LAN fail to receive the default gateway.

Steps to reproduce

Run OpenWrt with kernel 6.12.42 on a router with br-lan bridge.

Configure IPv6 RA in Automatic default router mode.

Observe that no default route is advertised to clients (though
prefixes may still be delivered).

Expected behavior

Router Advertisement should continue to advertise the default route as
in kernel 6.12.41 and earlier.

Client IPv6 connectivity should not break.

Actual behavior

RA fails to advertise a default route in Automatic mode.

Clients do not install a default IPv6 route → connectivity fails.

Temporary workaround

Change RA default router mode from Automatic → Always / Use available
prefixes in OpenWrt.

This bypasses the dependency on local default route check and restores
correct RA behavior.

Additional notes

This appears to be an unintended side effect of the stricter FIB
handling changes introduced in 6.12.42. Please advise if this has
already been reported or if I should prepare a minimal reproducer
outside OpenWrt.

Thanks,
[GitHub: mgz0227]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates
  2025-08-18 12:03 喵公子
@ 2025-08-18 12:25 ` Greg KH
  2025-08-18 13:19   ` 喵公子
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2025-08-18 12:25 UTC (permalink / raw)
  To: 喵公子; +Cc: stable, regressions

On Mon, Aug 18, 2025 at 08:03:00PM +0800, 喵公子 wrote:
> Hi,
> 
> While testing Linux kernel 6.12.42 on OpenWrt, we observed a
> regression in IPv6 Router Advertisement (RA) handling for the default
> router.
> 
> Affected commits
> 
> The following commits appear related and may have introduced the issue:
> 
> ipv6: fix possible infinite loop in fib6_info_uses_dev():
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=db65739d406c72776fbdbbc334be827ef05880d2
> 
> ipv6: prevent infinite loop in rt6_nlmsg_size():
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38
> 
> ipv6: annotate data-races around rt->fib6_nsiblings:
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=0c58f74f8aa991c2a63bb58ff743e1ff3d584b62

Does this also happen on the latest kernel releases?

Also, please always include the developers/maintainers/mailing list of
the subsystem where you find an issue with.  Otherwise you are not going
to reach the developers who can help you out.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates
  2025-08-18 12:25 ` Greg KH
@ 2025-08-18 13:19   ` 喵公子
  0 siblings, 0 replies; 5+ messages in thread
From: 喵公子 @ 2025-08-18 13:19 UTC (permalink / raw)
  To: Greg KH; +Cc: stable, regressions, edumazet, kuba, sashal, yoshfuji, netdev

Hi Greg,

Thanks for the quick reply.

This regression has been reproduced on Linux 6.12.42 as shipped with
OpenWrt. Currently, OpenWrt only provides kernels from the 6.12.y
stable series, so I was only able to verify on 6.12.42.

I am looping in the networking/IPv6 maintainers so the right people
can take a look at this issue.

Best regards,
gongzi miao

Greg KH <gregkh@linuxfoundation.org> 于2025年8月18日周一 20:25写道:
>
> On Mon, Aug 18, 2025 at 08:03:00PM +0800, 喵公子 wrote:
> > Hi,
> >
> > While testing Linux kernel 6.12.42 on OpenWrt, we observed a
> > regression in IPv6 Router Advertisement (RA) handling for the default
> > router.
> >
> > Affected commits
> >
> > The following commits appear related and may have introduced the issue:
> >
> > ipv6: fix possible infinite loop in fib6_info_uses_dev():
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=db65739d406c72776fbdbbc334be827ef05880d2
> >
> > ipv6: prevent infinite loop in rt6_nlmsg_size():
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38
> >
> > ipv6: annotate data-races around rt->fib6_nsiblings:
> > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=0c58f74f8aa991c2a63bb58ff743e1ff3d584b62
>
> Does this also happen on the latest kernel releases?
>
> Also, please always include the developers/maintainers/mailing list of
> the subsystem where you find an issue with.  Otherwise you are not going
> to reach the developers who can help you out.
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates
@ 2025-08-20 23:14 喵公子
  2025-08-25 23:03 ` Jakub Kicinski
  0 siblings, 1 reply; 5+ messages in thread
From: 喵公子 @ 2025-08-20 23:14 UTC (permalink / raw)
  To: stable, netdev; +Cc: Greg KH, regressions, edumazet, kuba, sashal, yoshfuji

Hi,

While testing Linux kernel 6.12.42 on OpenWrt, we observed a
regression in IPv6 Router Advertisement (RA) handling for the default
router.

Affected commits

The following commits appear related and may have introduced the issue:

ipv6: fix possible infinite loop in fib6_info_uses_dev():
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=db65739d406c72776fbdbbc334be827ef05880d2

ipv6: prevent infinite loop in rt6_nlmsg_size():
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=cd8d8bbd9ced4cc5d06d858f67d4aa87745e8f38

ipv6: annotate data-races around rt->fib6_nsiblings:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.42&id=0c58f74f8aa991c2a63bb58ff743e1ff3d584b62

Problem description:

In Linux kernel 6.12.42, IPv6 FIB multipath and concurrent access
handling was made stricter (READ_ONCE / WRITE_ONCE + RCU retry).

The RA “Automatic” mode relies on checking whether a local default route exists.

With the stricter FIB handling, this check can fail in multipath scenarios.

As a result, RA does not advertise a default route, and IPv6 clients
on LAN fail to receive the default gateway.

Steps to reproduce

Run OpenWrt with kernel 6.12.42 (or 6.12.43) on a router with br-lan bridge.

Configure IPv6 RA in Automatic default router mode.

Observe that no default route is advertised to clients (though
prefixes may still be delivered).


Expected behavior

Router Advertisement should continue to advertise the default route as
in kernel 6.12.41 and earlier.

Client IPv6 connectivity should not break.

Actual behavior

RA fails to advertise a default route in Automatic mode.

Clients do not install a default IPv6 route → connectivity fails.

Temporary workaround

Change RA default router mode from Automatic → Always / Use available
prefixes in OpenWrt.

This bypasses the dependency on local default route check and restores
correct RA behavior.

Additional notes

This appears to be an unintended side effect of the stricter FIB
handling changes introduced in 6.12.42. Please advise if this has
already been reported or if I should prepare a minimal reproducer
outside OpenWrt.

Thanks,
[GitHub: mgz0227]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates
  2025-08-20 23:14 [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates 喵公子
@ 2025-08-25 23:03 ` Jakub Kicinski
  0 siblings, 0 replies; 5+ messages in thread
From: Jakub Kicinski @ 2025-08-25 23:03 UTC (permalink / raw)
  To: 喵公子
  Cc: stable, netdev, Greg KH, regressions, edumazet, sashal, yoshfuji

On Thu, 21 Aug 2025 07:14:12 +0800 喵公子 wrote:
> While testing Linux kernel 6.12.42 on OpenWrt, we observed a
> regression in IPv6 Router Advertisement (RA) handling for the default
> router.

IIUC this is fixed:
https://lore.kernel.org/all/20250821105806.1453833-1-wangzijie1@honor.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-25 23:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-20 23:14 [REGRESSION] IPv6 RA default router advertisement fails after kernel 6.12.42 updates 喵公子
2025-08-25 23:03 ` Jakub Kicinski
  -- strict thread matches above, loose matches on Subject: below --
2025-08-18 12:03 喵公子
2025-08-18 12:25 ` Greg KH
2025-08-18 13:19   ` 喵公子

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).