Article View: linux.kernel.netdev
Article #17473Re: [PATCH net-next v4 2/4] ipv4: restrict on-link fallback to lookup misses
From: netdev-bot+sashiko
Date: Mon, 16 Nov 2026 22:08
Date: Mon, 16 Nov 2026 22:08
60 lines
10225 bytes
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
Technical Details
Message-ID:
<179486691560.3136.15548474074992828914@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364746-linux-kernel-netdev=dewy.ruReferences:
<20261115215640.18728-3-liamsmith827@grapheneos.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364746-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 2/4] ipv4: restrict on-link fallback to lookup misses Date: Mon, 16 Nov 2026 22:08:35 +0000 Organization: Usenet Network Message-ID: <179486691560.3136.15548474074992828914@kernel.org> References: <20261115215640.18728-3-liamsmith827@grapheneos.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2178914"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3BZOo9oYpr/+eiC/SszjOKTpOvE= sha256:o8VKk5GKTuVe9WKHI/MtctJWzFs2jpqXr1Rp0H/6IV0= sha1:WV0Ft2A1/k9aHX0BcCg3QecQltk= sha256:vYNNIO10ooO/FgFtKxiHoP2sZSpyhhEzzPfoWcsCZK4= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id E3E5A114D8A; Tue, 17 Nov 2026 01:09:51 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8lIzeoD1VNAU; Tue, 17 Nov 2026 01:09:48 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364746-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id A073D114D74; Tue, 17 Nov 2026 01:09:38 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 84B7F35017; Mon, 16 Nov 2026 22:08:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794866923; b=uz2+DXgg4PFm/Ddgn+FyUgKedIpmD9W4j0W5dfBxlXY577Dkq2ra5EDmLYE/yveO3lBo qvSiitPYmsjzIQQOxEz+K312CPbBOwLPJntrkiWksUqs+4PSKQKd5m10Mutw606sF9m69 8lpbBlJGe2aLr6Si2uvIi5K307s0x7bDOea6m3BQoEiJnk3u6504unLJhU6lXJK3yu6Vo huHD8jjWDmFq35zo02DlnQiUJzSagOD6eXckwDfxdMGTwg19yOay5KrlMFz5GCWZwFk1W Mk0cn6vJGOU3mkceXi58NW1GifMZCK26fR+6wChBSby0+eQ8Ta3vCA+E11c7WLOU1lA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794866923; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=8O0t5d9d7FzzruzbNmZIybbrVFyyYL7UO/lvMO3VYcU=; b=aKMVZNQeW4dF9ZHGnVvJAxbb/fvoxRTZs9PboVgZuPXQ2ILx3CwG7Z9STxT/2Jia4nGH u0otJlzC852LN8FbCHxOiZ6qTwQqnbhaVajQJD1kFYn5+/c7dE+qMdfHwkwRZTENOwuOf fCpD0SBePjCg6uwnTkvWFT2jUjU8hFDjZjVx4h6ICTEtfDSsTwNbmy2r3TZUjsE0sAbO/ jg6M5AzeNchRZqihva7h2Yk7f/tBrrkLwee/45OCLw3PT3oG4PioFyq0xXMLPRsgurXGp j8B5D1ztadHezbC77uUoTYiisQIwiiKTWQhvFl0+nhDMwQ6KRnr9gl1qdzoN6oK86Bg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bJ6aacQJ; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA2BE606A8A6; Mon, 16 Nov 2026 22:08:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bJ6aacQJ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794866917; b=vFHQetlsTj2LoakMtXkUxdpL3LCVng1VVkFxuflOEFAUVbE+gVuXdBvXquLns3pCTWfW i59C0H0QkZfLbGe/DM4Dp7doxIt1mje/1cH3QbltNL6PlsZRwe3t9Myio6htk5ejf7L9T 1xHPv8dddwRhgQFCB/tcqwSdhjVqbgZZim5qYbvgZWLRefeLo4q4nm0Z7RmL9Z68qFiE+ 7latczx2g+417Y9GwclsCJOEjY9W0QtT6rPsEHUNZVV0BDhyiES/cQiYbfeFspFG7wPhY SJvghF9hdnf5TU2nI4OzNmFUTdJteAeCtdZqX+IU961gMNpMW0cjyyZRhwyTfD2pnmw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794866917; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=8O0t5d9d7FzzruzbNmZIybbrVFyyYL7UO/lvMO3VYcU=; b=yjD6fyZw47DpiwPygFVx1qcMcYa3LBr9t8CKBzObuNo2FkSjh2OX7xEON9LFQlGt4KWv xhykUytXCaYVZScu6NMh1FIS1q9qLUwoWL2MWNkubP+fh/oXQlarNNnszkpgGMjmJ+/0o 63Xo6cj8ZS2mcXB69emgrpVNpL6Wo1dl4MwOXfHnY1MhSc2JFC9siajeCDoishYqd+9f+ pjrOs4jrrZQYyEFTha15tbEPubpuAjq4UkaiVtl7zMVNx2ZvKydeeBhnFdmTgc2f9mitk Eigb9wmXmMy3C4sS7A+euPN2Haososv159mCjmzG4VP0QDkmrhOHkJxlIP4OLl+kydQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bJ6aacQJ; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 168BD606A8B8; Mon, 16 Nov 2026 22:08:36 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1102F1F000C6; Mon, 16 Nov 2026 22:08:36 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794866916; bh=8O0t5d9d7FzzruzbNmZIybbrVFyyYL7UO/lvMO3VYcU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=bJ6aacQJbvpieRaPhv9xZNyX0HgnmnGI0673tg/K6tHVz5Pgfcxc8keJOAZgGsiQS mLpUbZIP+xS6a+XgXudAuPg2h+ocFyX6S+dEjpO6+6Lp/hl2gzp9r2QIkFKPyDTL+v 67Rw82ZPseEwiTLAqe93yNOekpfdpFZuGDrgSFVSGWfFjQR0vfd7FgIQNx307yE/IH /fcJZiJw0RjpJ/AztuJEonpw1JdMTFwi6Owl9jFdpRlPDW0PePXbBanwVatwvUfQ58 kthCz9mxOYNCf/wPBmdsWRbH7h8UoH6w9ytAnbCCAgfda71BVGXuOofTtDeVfP3frT XazXueksQb3bQ== X-Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, liamsmith827@proton.me X-In-Reply-To: <20261115215640.18728-3-liamsmith827@grapheneos.org> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list