From: willemb@google.com
To: Star Chang <starchang@google.com>, netdev-bot+sashiko@kernel.org
Cc: "David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>, David Ahern <dsahern@kernel.org>,
Ido Schimmel <idosch@nvidia.com>, Julian Anastasov <ja@ssi.bg>,
Johannes Berg <johannes@sipsolutions.net>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
netdev@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, wangroger@google.com,
starchang@google.com
Subject: Re: [PATCH net v7] arp: Do not update neighbours from ARP in L2 multicast/broadcast frames
Date: Mon, 30 Nov 2026 10:31:49 -0500 [thread overview]
Message-ID: <willemb.22688a3beb69d@google.com> (raw)
In-Reply-To: <20261125055416.1987174-1-starchang@google.com>
Star Chang wrote:
> Thanks for the review.
> > [Medium] Should these packets be consumed instead of dropped?
> I chose to drop them because, with the knob set, ARP in L2 BMC frames
> is rejected for neighbour learning, similar to how the IP paths drop
> unicast packets in L2 BMC frames. But you have a point that ordinary
> broadcast requests for other hosts would then show up as drops. I'm
> fine with switching to consume_skb() or a specific drop reason if the
> maintainers prefer.
> > [Medium] ... changes the semantics of an existing IP-only knob
> This is intended. With the knob set, ARP in L2 BMC frames is not trusted
> for neighbour learning: a forged GARP or broadcast reply/request with
> sip = gateway is exactly the attack. Ignoring announcements and arp_accept
> for such frames follows from that, and the knob is opt-in
> (drop_gratuitous_arp already drops GARP entirely).
> The same applies to IPv4 link-local peers that broadcast their replies
> (RFC 3927): exempting them would let an attacker forge those entries
> again, so I'd rather keep it strict and document it, if wanted.
The following two likely are rewordings of the same issues raised by
Sashiko.
Reusing drop_unicast_in_l2_multicast to block all L2 BMC ARP learning
changes
the semantics of an existing IP-only (RFC 1122 3.3.6) knob that was
introduced
separately from drop_gratuitous_arp (commit 97daf3314550). Existing
users with
drop_unicast_in_l2_multicast=1 and drop_gratuitous_arp=0 will now
silently lose:
- IPv4 link-local (169.254/16) connectivity against RFC 3927 section
2.5
peers, which broadcast ARP replies (INCOMPLETE entries will never
resolve),
- GARP failover updates (VRRP/keepalived/bonding/arp_notify), and
- arp_accept for L2 BMC frames.
Is it in any way possible to address the underlying bug, without such a
behavioral change?
--
> out_free_skb:
> kfree_skb(skb);
> return NET_RX_DROP;
[severity: medium, confidence: high]
Every ordinary broadcast ARP request for another host on the LAN falls
through
here. Before this patch those frames exited via out_consume_skb
(consume_skb()
and NET_RX_SUCCESS); now they hit kfree_skb() with
SKB_DROP_REASON_NOT_SPECIFIED
and return NET_RX_DROP through NF_HOOK() -> arp_rcv() ->
netif_receive_skb(),
triggering constant dropwatch/drop_monitor noise and inflating
rx_dropped in
drivers that check NET_RX_DROP (compare arp_rcv()'s explicit consumeskb
comment
just below).
Jumping to out_consume_skb here (and removing out_drop_dst) avoids
spurious
drops on background broadcast ARP requests while still releasing
reply_dst. (If
drop visibility is specifically desired for broadcast ARP replies, only
drop
ARPOP_REPLY with an explicit drop reason and consume ARPOP_REQUEST.)
Is that last suggestion a way to avoid too many false positive drop counter
increases? Else, consume_skb is probably preferable overall.
next prev parent reply other threads:[~2026-11-30 15:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 14:45 [PATCH net v7] arp: Do not update neighbours from ARP in L2 multicast/broadcast frames Star Chang
2026-11-24 13:46 ` Julian Anastasov
2026-11-24 14:47 ` netdev-bot+sashiko
2026-11-25 5:54 ` Star Chang
2026-11-30 15:31 ` willemb [this message]
2026-12-01 6:07 ` Star Chang
2026-11-30 17:05 ` Paolo Abeni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=willemb.22688a3beb69d@google.com \
--to=willemb@google.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=idosch@nvidia.com \
--cc=ja@ssi.bg \
--cc=johannes@sipsolutions.net \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=starchang@google.com \
--cc=wangroger@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.