From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796105251; b=xIrcooZybctSwJCPXrR88ZX8HCemHlmuB7xCZzb+inIdOarXqdawa3jVi6sFBZoin7Yi FSaMhzhPLzaF64U2mVpHudy/tDP6juq/dt3NEMG+4zsWvgBt7cSKRSPbOji462i1pG3SN TnhnBn7kbfcZZyO22cFgAeiN2vAKI9Q6pY76uTym4Ot8BPC6VnkcumkYsRgNXOuKrNpnp +lqkbT8FXgRWVoRVbeDbryMtlfzGxKPDodIlkRq0qAtvwVZ9c8oee4ysY50fMvr6ppuGV PnGwyPqg5u5Uuku6FibYfnRR/9qPKyTutqG6rFkTnTbzBQV+YJBV/2ZeimKfdJs4pyA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796105251; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=7dATSK+Y6DLwakJD6eSqXObecDw3JY9hE0TfEDQf/7M=; b=c/AKJkZWgNWMQj1rhnkpLmlV2m83EpUqdWf+Ot+igSTjLewWiLlFf/dHZZ/17HlySaDr Bgy3StJMQAgAY0gxjZuUFh58X4Wxrb1WRgYQ8ZqL7RNWvcznQz1EnSH35TNGB61wbtioC 4g1/FR3YyF2+yxbBwDdeiltFuZppn+vYawFMk6PMARwtb0B34WwH+VpOhJxmYHUd34FD7 jwASdT5S6U3W84Zee38k+h3FnKE1BXwzundP12S1nxdAiGTCjjwFBCQuJJDN72j7fWytt aE9eMtnoS8wQ9kxSDJWW4WFuBCYXeZOWz8OHkIKg2NG99f9JVBmaR+bZV2h3A0gHuVQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--starchang.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bCM+5n2O; arc=none smtp.remote-ip=209.85.210.197 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBDF3606A325 for ; Tue, 1 Dec 2026 06:07:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EBDF3606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--starchang.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bCM+5n2O Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-8a05a4396d2so9178538b3a.0 for ; Mon, 30 Nov 2026 22:07:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796105250; x=1796710050; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7dATSK+Y6DLwakJD6eSqXObecDw3JY9hE0TfEDQf/7M=; b=bCM+5n2OnkBAiXfh1RZl2JxD4UMK7quD1TuJRsXWv2ryfGx5lko46bj1IsK8FkiaLr wHN9pcOYv7Q6GpzWYjQ2Yc8Q5VC00cVqXYinZ0gWjBtWvjn4khzskOnwtoCgYf1mN61X PaL31A+BD4hRDb/dbSOWuGI7JfiQKvDjFTP72G6uWVy6PShSZeIdXcdwVOprN5bJ/NBN r7MUvdJghMqQ/+H3PCtEjXANcPtFfAikn+bvMHFs3rTlrOvVbW9ocCKr0oKZ9u0Gcelz TkVKUMjYIhsyqwSnSjjTVAzs/SVqBaywBqSz+Z0ip5WazkymNZpAqcetVtDosqjwsLPW Ogug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796105250; x=1796710050; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7dATSK+Y6DLwakJD6eSqXObecDw3JY9hE0TfEDQf/7M=; b=cqCP5bBdB2Bltchjr8HXLKwI3Het00HIZnJY34AjaUZgiJYo95vILCaeYtkiWqS20q fNTHONRgFNqklHERZSGv3ODPZj3ieGBtXy++rvbD2jm2+uBvMabdDB+GiaPTJ3ZWLTnR YsbvXB548hJPd6H4bmVi9q9/kU4uq8CJh2aV/PZPoUdSF1ovW+a0nCxqeOpIk8RXuSam 6STH09eI8rhIRvZ1pCW2B/5+4slpIHPHfscPz/m9KWVqMUrCjN0KUK7inf1JzTUQg0+2 1aTwOrDcTfm/DABJ62D9dgJJt6WlEXhlXBlcBNHQf9KukWqrhp/FaNvtj2u88su+9sXJ ciFw== X-Forwarded-Encrypted: i=1; AL+hErFPGm1EZrh9jo1VzQhj7Qje60mHcSUnBt9ABwoo5+IdhBTC2v/22roRIIqclxqy6KIvjL81ovtxcjo=@vger.kernel.org X-Gm-Message-State: APuU4Z+7qwvcC6ngFubJDG8iOAKRzc9M0l7jZTEkJ1DvKHlYvNnIUUNf 64kGUHu9IyRVsElE2wVqE+mMMStxS9qYLkzVA+J9PhjVMW8wAjDScNCA51e/R1yDWYD3hgvUaQu QyhoVHt5j6h/nUA7+FQ== X-Received: from pfob25.prod.google.com ([2002:aa7:8719:0:b0:8a0:91b7:e7b9]) (user=starchang job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6300:8095:b0:400:6f55:7092 with SMTP id adf61e73a8af0-4014c752492mr31678856637.22.1796105249979; Mon, 30 Nov 2026 22:07:29 -0800 (PST) Date: Tue, 1 Dec 2026 06:07:26 +0000 In-Reply-To: X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261123144535.155300-1-starchang@google.com> <179553165359.3135.5730863120205025514@kernel.org> <20261125055416.1987174-1-starchang@google.com> X-Mailer: git-send-email 2.56.1.839.g22a8290db9-goog Message-ID: <20261201060726.3761369-1-starchang@google.com> Subject: Re: [PATCH net v7] arp: Do not update neighbours from ARP in L2 multicast/broadcast frames From: Star Chang To: Willem de Bruijn , Paolo Abeni Cc: netdev-bot+sashiko@kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Simon Horman , David Ahern , Ido Schimmel , Julian Anastasov , Johannes Berg , Jonathan Corbet , Shuah Khan , Randy Dunlap , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, wangroger@google.com, starchang@google.com Content-Type: text/plain; charset="UTF-8" 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