🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by netdev-bot+sashiko Mon, 16 Nov 2026 22:08
Re: [PATCH net-next v4 2/4] ipv4: restrict on-link fallback to lookup misses
#17473
Author: netdev-bot+sashiko
Date: Mon, 16 Nov 2026 22:08
60 lines
10225 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] The commit "ipv4: restrict on-link fallback to lookup misses" is
  written up as a bug fix with security impact: "unprivileged Android…

--

ipv4: restrict on-link fallback to lookup misses

This patch changes ip_route_output_key_hash_rcu() so that, for non-vrf
unicast with an oif set, the on-link fallback happens only when
fib_lookup() reports a lookup miss (-ESRCH via FIB_LOOKUP_REPORT_MISS).
Before, it happened for any lookup error. Blackhole, prohibit and
unreachable routes and rules are now honored for oif-bound sends, and
-ESRCH is mapped back to -ENETUNREACH on the error path.

> A specific example of this being a problem is within Android, where the
> VPN "kill switch" is implemented with prohibit rules. Any process that
> can set flowi4_oif (SO_BINDTODEVICE, IP_UNICAST_IF, IP_PKTINFO, etc.) is
> able to utilize this fallback, meaning unprivileged Android apps can
> trivially bypass the VPN. This is particularly bad on cellular networks,
> where ARP is often not needed.

[ ... ]

> Signed-off-by: Liam Smith <liamsmith827@proton.me>

[Severity: Low]
This isn't a code bug, but should the commit carry a Fixes: tag?

The message describes this as a fix for a VPN bypass. The trailer block
only has Signed-off-by. Documentation/process/maintainer-netdev.rst says:

  "for fixes the Fixes: tag is required, regardless of the tree"

In ip_route_output_key_hash_rcu(), falling back to on-link for any
fib_lookup() error goes back to:

  1da177e4c3f4 ("Linux-2.6.12-rc2")

The baseline form of the condition this patch changes:

  (ipv4_is_multicast(fl4->daddr) || !fl4->flowi4_l3mdev)

comes from:

  40867d74c374 ("net: Add l3mdev index to flow struct and avoid oif reset for port devices")

Could one of these be named in a Fixes: tag? That would make it clear
whether this change is meant for stable. It also changes what oif-bound
sockets see when they hit reject routes or rules: those sends now return
an error instead of going out on-link.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261115215640.18728-1-liamsmith827%40grapheneos.org
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