🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
9 messages
9 total messages Started by Gabriel Goller Fri, 23 Oct 2026 10:59
[PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#6778
Author: Gabriel Goller
Date: Fri, 23 Oct 2026 10:59
48 lines
8879 bytes
Since force_forwarding was added, changing the sysctl sends an
RTM_NEWNETCONF notification of type NETCONFA_FORCE_FORWARDING, but
inet6_netconf_fill_devconf() never emits the attribute. Listeners only
receive NETCONFA_IFINDEX without the new value, and RTM_GETNETCONF
replies and dumps omit it as well.

Fixes: f24987ef6959 ("ipv6: add `force_forwarding` sysctl to enable per-interface forwarding")
Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
---
 net/ipv6/addrconf.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index c8c0dd04982d..1b8caf6f4f16 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -529,6 +529,9 @@ static int inet6_netconf_msgsize_devconf(int type)
 	if (all || type == NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN)
 		size += nla_total_size(4);
 
+	if (all || type == NETCONFA_FORCE_FORWARDING)
+		size += nla_total_size(4);
+
 	return size;
 }
 
@@ -578,6 +581,11 @@ static int inet6_netconf_fill_devconf(struct sk_buff *skb, int ifindex,
 			READ_ONCE(devconf->ignore_routes_with_linkdown)) < 0)
 		goto nla_put_failure;
 
+	if ((all || type == NETCONFA_FORCE_FORWARDING) &&
+	    nla_put_s32(skb, NETCONFA_FORCE_FORWARDING,
+			READ_ONCE(devconf->force_forwarding)) < 0)
+		goto nla_put_failure;
+
 out:
 	nlmsg_end(skb, nlh);
 	return 0;

---
base-commit: 734bef548a96e8774d6eef5dfa2026c6edc4e80b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main
change-id: 20261023-ipv6_add_netconfa-b87b66b35272

Best regards,
--  
Gabriel Goller <g.goller@proxmox.com>
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#6780
Author: netdev-bot+sinfo
Date: Fri, 23 Oct 2026 11:06
22 lines
8764 bytes
Hi!

This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:

 - How the issue was discovered, e.g. hit in production, hit during
   development, syzbot report, manual code inspection, LLM or static
   analysis tool scan.

 - Whether the issue was actually triggered, or is only theoretical
   (e.g. found by code inspection). If it was triggered please include
   the symptoms, like the stack trace or error messages.

Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account. If the series needs another revision for
other reasons, please include the information in the commit messages
then.

The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#6791
Author: Gabriel Goller
Date: Fri, 23 Oct 2026 11:15
30 lines
8651 bytes
On 23.10.2026 11:06, netdev-bot+sinfo@kernel.org wrote:
> Hi!
> 
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
> 
>  - How the issue was discovered, e.g. hit in production, hit during
>    development, syzbot report, manual code inspection, LLM or static
>    analysis tool scan.

Hit during development of ifupdown2.

>  - Whether the issue was actually triggered, or is only theoretical
>    (e.g. found by code inspection). If it was triggered please include
>    the symptoms, like the stack trace or error messages.

Can actually be triggered.
Check with `ip montor netconf` running and execute e.g.
`sysctl -w net.ipv6.conf.<dev>.force_forwarding=1`. The state of the
force_forwarding property is not returned

> Please do not repost the series just to address the above. Instead,
> reply to this email with the missing information, so that reviewers
> can take it into account. If the series needs another revision for
> other reasons, please include the information in the commit messages
> then.
> 
> The evaluation is done by an LLM so it may be wrong, if you think
> that is the case please reply and explain.
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#6810
Author: Fernando Fernandez Mancera
Date: Fri, 23 Oct 2026 12:12
14 lines
14043 bytes
On 10/23/26 12:59 PM, Gabriel Goller wrote:
> Since force_forwarding was added, changing the sysctl sends an
> RTM_NEWNETCONF notification of type NETCONFA_FORCE_FORWARDING, but
> inet6_netconf_fill_devconf() never emits the attribute. Listeners only
> receive NETCONFA_IFINDEX without the new value, and RTM_GETNETCONF
> replies and dumps omit it as well.
> 
> Fixes: f24987ef6959 ("ipv6: add `force_forwarding` sysctl to enable per-interface forwarding")
> Signed-off-by: Gabriel Goller <g.goller@proxmox.com>

Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de>

Thanks!
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#7308
Author: Hangbin Liu
Date: Mon, 26 Oct 2026 03:31
31 lines
9619 bytes
Hi Ido,
On Sun, Oct 25, 2026 at 03:11:02PM +0200, Ido Schimmel wrote:
> On Fri, Oct 23, 2026 at 12:59:18PM +0200, Gabriel Goller wrote:
> > Since force_forwarding was added, changing the sysctl sends an
> > RTM_NEWNETCONF notification of type NETCONFA_FORCE_FORWARDING, but
> > inet6_netconf_fill_devconf() never emits the attribute. Listeners only
> > receive NETCONFA_IFINDEX without the new value, and RTM_GETNETCONF
> > replies and dumps omit it as well.
> > 
> > Fixes: f24987ef6959 ("ipv6: add `force_forwarding` sysctl to enable per-interface forwarding")
> > Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
> 
> This seems to fall under the "Not a regression, not critical" category
> [1], so can wait for net-next.

One question about this rule. For "not critical" fixes, should I make that
judgment myself and post to net-next? Or should I send them to net and let
the maintainers decide whether the fix should go into net or net-next?

Thanks
Hangbin
> 
> Also, NETCONFA_FORCE_FORWARDING is not emitted when it's disabled as
> part of:
> 
> sysctl -wq net.ipv6.conf.all.forwarding=0
> 
> Is this intentional?
> 
> [1] https://lore.kernel.org/netdev/CAHk-=wiSnTE9vBZ=5_v+3EEkdazCCbBM5YABRzRHUAeRdyd4Xw@mail.gmail.com/
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#8029
Author: Jakub Kicinski
Date: Tue, 27 Oct 2026 21:38
14 lines
8358 bytes
On Mon, 26 Oct 2026 11:31:13 +0800 Hangbin Liu wrote:
> > This seems to fall under the "Not a regression, not critical" category
> > [1], so can wait for net-next.  

Agreed.

I think this is more of a "missing functionality is not a bug", even.

> One question about this rule. For "not critical" fixes, should I make that
> judgment myself and post to net-next? Or should I send them to net and let
> the maintainers decide whether the fix should go into net or net-next?

Post fixes for net, let maintainers decide.
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#8089
Author: Hangbin Liu
Date: Wed, 28 Oct 2026 00:55
20 lines
9074 bytes
On Tue, Oct 27, 2026 at 02:38:14PM -0700, Jakub Kicinski wrote:
> On Mon, 26 Oct 2026 11:31:13 +0800 Hangbin Liu wrote:
> > > This seems to fall under the "Not a regression, not critical" category
> > > [1], so can wait for net-next.  
> 
> Agreed.
> 
> I think this is more of a "missing functionality is not a bug", even.
> 
> > One question about this rule. For "not critical" fixes, should I make that
> > judgment myself and post to net-next? Or should I send them to net and let
> > the maintainers decide whether the fix should go into net or net-next?
> 
> Post fixes for net, let maintainers decide.

Good to know this. Thanks for your reply.

Regards
Hangbin
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#8196
Author: Gabriel Goller
Date: Wed, 28 Oct 2026 10:52
27 lines
8650 bytes
On 25.10.2026 15:12, Ido Schimmel wrote:
> On Fri, Oct 23, 2026 at 01:15:01PM +0200, Gabriel Goller wrote:
> > On 23.10.2026 11:06, netdev-bot+sinfo@kernel.org wrote:
> > > Hi!
> > > 
> > > This is an automated message. This series looks like a fix, but its
> > > commit messages seem to be missing some information:
> > > 
> > >  - How the issue was discovered, e.g. hit in production, hit during
> > >    development, syzbot report, manual code inspection, LLM or static
> > >    analysis tool scan.
> > 
> > Hit during development of ifupdown2.
> > 
> > >  - Whether the issue was actually triggered, or is only theoretical
> > >    (e.g. found by code inspection). If it was triggered please include
> > >    the symptoms, like the stack trace or error messages.
> > 
> > Can actually be triggered.
> > Check with `ip montor netconf` running and execute e.g.
> > `sysctl -w net.ipv6.conf.<dev>.force_forwarding=1`. The state of the
> > force_forwarding property is not returned
> 
> Are you using a modified iproute2? I don't see "force_forwarding" there.

Oops yeah, my bad. The patches haven't hit the mailing list yet...
Re: [PATCH net] ipv6: Add NETCONFA_FORCE_FORWARDING to netconf messages
#8197
Author: Gabriel Goller
Date: Wed, 28 Oct 2026 10:55
30 lines
8484 bytes
On 25.10.2026 15:11, Ido Schimmel wrote:
> On Fri, Oct 23, 2026 at 12:59:18PM +0200, Gabriel Goller wrote:
> > Since force_forwarding was added, changing the sysctl sends an
> > RTM_NEWNETCONF notification of type NETCONFA_FORCE_FORWARDING, but
> > inet6_netconf_fill_devconf() never emits the attribute. Listeners only
> > receive NETCONFA_IFINDEX without the new value, and RTM_GETNETCONF
> > replies and dumps omit it as well.
> > 
> > Fixes: f24987ef6959 ("ipv6: add `force_forwarding` sysctl to enable per-interface forwarding")
> > Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
> 
> This seems to fall under the "Not a regression, not critical" category
> [1], so can wait for net-next.

Agree, will post when net-next opens again.

> Also, NETCONFA_FORCE_FORWARDING is not emitted when it's disabled as
> part of:
> 
> sysctl -wq net.ipv6.conf.all.forwarding=0
> 
> Is this intentional?

Nope it isn't. Will fix in the next version.

Thanks for the review!
Gabriel

> [1] https://lore.kernel.org/netdev/CAHk-=wiSnTE9vBZ=5_v+3EEkdazCCbBM5YABRzRHUAeRdyd4Xw@mail.gmail.com/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads