From: Star Chang <starchang@google.com>
To: Willem de Bruijn <willemb@google.com>, Paolo Abeni <pabeni@redhat.com>
Cc: netdev-bot+sashiko@kernel.org,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, 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: Tue, 1 Dec 2026 06:07:26 +0000 [thread overview]
Message-ID: <20261201060726.3761369-1-starchang@google.com> (raw)
In-Reply-To: <willemb.22688a3beb69d@google.com>
Hi Willem, Paolo,
Thanks for the feedback. Before sending v8, I'd like to confirm the
direction on both points:
1. Avoiding behavioral change to drop_unicast_in_l2_multicast
I don't see a way to fully close the Hole-196 ARP poisoning vector
without blocking neighbour learning from L2 BMC ARP frames. Earlier
versions only dropped non-GARP ARP replies in L2 BMC, but as Julian
pointed out, an attacker can still poison the neighbour cache with a
broadcast ARP request (sip = gateway, sha = attacker) via
neigh_event_ns() / neigh_update(). Those frames can't be distinguished
at the ARP layer from legitimate BMC learning (RFC 3927 2.5, GARP
failover, arp_accept).
Would a new opt-in sysctl (disabled by default, leaving
drop_unicast_in_l2_multicast IP-only) be the preferred approach here?
If so, any naming preference (e.g. arp_drop_bmc_learning or similar)?
2. Drop vs. consume
Yes, dropping only ARPOP_REPLY with the existing
SKB_DROP_REASON_UNICAST_IN_L2_MULTICAST and consuming ARPOP_REQUEST via
out_consume_skb avoids false-positive drops on ordinary broadcast
requests, and only adds a few lines with no new drop reason enum. I can
switch to that (or consume all of them if we move to a separate sysctl
and you prefer consume_skb()).
Let me know which way you prefer and I'll update v8 accordingly.
Thanks,
Star
next prev parent reply other threads:[~2026-12-01 6:07 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
2026-12-01 6:07 ` Star Chang [this message]
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=20261201060726.3761369-1-starchang@google.com \
--to=starchang@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=wangroger@google.com \
--cc=willemb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox