From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796105251; b=kH6ajLnQp6He/QDltESMuC+5+38N/BJPN8waV6dIlQfncNCbXL56eJ1aqoZlHi5sAEZg dbyjl9lsIxN09yd/0mrnQgwUUn0YyhpoVnGv4H4P9ziVgmcu7CcKSyPUdvvxR/K6dzqsr JZaQuWipA9ezQnmaOKz8RE/02dGhogAdHYgNZblVUv77+fj33T8O8MdS86h573SMjv2Vn rcRWpPdrwl0FCGOTsW9D2Jgw6AqukGoUQ2lQJwB1trw2HgHJ6aLndoVy2B+79ttDC+FNv 3nQJaREe+QiQVaqIYlIx4CpLgea6bkwE3xxRZevdbNFiSySC30eM1fURI1FiOMinE9g== 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=aPn7v8+9n1+d+3k0B2Y99EN+HrerJDlLpWQW7UlVAP6WPmgBQLu6/kePJYMqj31hLx4y 6AxGVeaD0BRJfrDW25cL/Sk4l8xDJX+WMMHLsTJeQP/udsYaCHPCkQR9ndw2Ir6brvVot I5fqmr3PHfyvY4tv83gfHXm3d13N9MRkLUCxoUgod1PoTVopbVUM5Gqo4uWHlKIAwZKg2 C9Ew9FyYSKx5xRKW6eXpbE6zRYTlSqDFgEx2WhN3icABYR6xc9EsA9bCCTmEpycrwnB1m m6ERsDIBk+GVSqw4TAWpDQlkZdm3w+VG5owbj+krBIC4Xob29R1rIubvzZSZ6aaVZcw== 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.215.199 Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (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 DE06A606A320 for ; Tue, 1 Dec 2026 06:07:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DE06A606A320 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, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=bCM+5n2O Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-ce0e35f71c4so1500167a12.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=iKQHSMA9Wqd1fjetaZYkD0MBIwa+yjsMNmPs1UweYJT9xIEKVbNMWsMrUdYWVWzw2r 8kco3djgTEojFWaPaZAxn1YWM8qa+iPXCok8Qo9RF0KVZE+ggugl+FV47ffhebNrNUNs EdlJqjQ1s+TPbHpnrSNmkAzjuteSUXcj0TLDImy3O6vHHD0C8z44b3TSHXAV7OkxrNCt bh4GjZeRSi1NhKPHZqZufmKuQjHaq9e5cE7pg07q+f2mxAkIYrHZgLitJhpQUaBh/v/a PVD1rcwHnhzkI6KEtt7H/pHsZIFIZaB18wQ6gi6OUiWArhbHSULRvIzi3v4EJVHGL8/c a0qQ== X-Forwarded-Encrypted: i=1; AL+hErFB7+dtMRiPc9q1S/A0nKfHpIdqbyxYK9z6F8Km1gJkPW11l9bOzFowrtNJr9fp7jebmK7aP37CqZX11mI=@vger.kernel.org X-Gm-Message-State: APuU4Z+haV8YvgSSHRnPccvwBUbeqZ5jkipmNN72u0HFHftvVFv8Y9pi UAhYoMx9BxWkGYdbgEKWZ306c06b2nPD2SIpbfYmVM/aHfN/hx2f1/TW1IlRFPschK1MvrCyqNY xoihTZSvDjS1lECLalA== 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-kernel@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