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=1795586061; b=qRHZfO4mxyfzNKqDsaAaUEhYHmvc/9qKUQPc+YuxU54cBRHv3ngxjkFGfzdAnQr7Ah37 vJMwwu6FOkHQYrCWLct9uNS9fMCrZIGe9Z5QFy0N/fngn2rFZG3v+JaJ9iuotVbcHTFGH /W3cVvx+GR0b+RtgwQGHQMbxdtmCmkEjKX5mdPtsvUIIEeNlmQNvAGf1wvi9JN/jz4o1N gNbCvrVDTMtNu5sJ0njuQyKCa/RYzuX/75LJG7sa2A5ibzHvCnSDDX7vR6JqLIGx5jHSm OZce5snfDYvLcCdjbM6837V6OJcnI6YTNgSQRu+6wGpXzw5UrmaHED74ni+jTemHrZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795586061; 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=+Bg1tcVFicbbXaykMYvFz5W401OjX0GZjBhGqh2OgKc=; b=lE7LwH6en3OpnzTKGJWLxf9kzyRXemVSgyF7KTsPLsvvws/1XiTXL8PgnK0y0zfNsi8Y Wk3bsgLckm7JLNNenYMaYa2yzgihQSMY/LVwFXqhjwwLS1CuGYVZ0eiHNf+cEoZ8cvHXe drZgZMcennS8r2osasESjvUREP6hSAe+K7kFalRTrniwZ87dIuyAoBkDP8ahbcZT/DzLo TISFD64eK9vlrnKaY9cphMLOxxSOLiu7ZCBDuuv/CocyQXhz6f28DckrpPBqpv7OcSa+B 3FpeMNh9rNPk2+t9jfdIggxVNExmCOymIEijX07CE5krhooM8D9rc9qcCVsidLWNLww== 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="B/L4cdtp"; 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 DC8DF606A326 for ; Wed, 25 Nov 2026 05:54:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC8DF606A326 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=B/L4cdtp Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cdd97f89731so3183423a12.1 for ; Tue, 24 Nov 2026 21:54:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795586060; x=1796190860; 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=+Bg1tcVFicbbXaykMYvFz5W401OjX0GZjBhGqh2OgKc=; b=B/L4cdtpUN1r61Do/Avk7MB+fEHXhtLtoi1+4dDF85c4N39C2chGUEwp260pb14DRV PDpN7fYYpBtwBBqWzMK7PneIVbFtHK+Q5tUWfGHSxIZ+g13P/j04BFWMDzquMTTJIesQ iIrr7sab8PBM2rLOGh9CsppAxEU79Nzmcy/4W5TfEWvRZYDQLplf2Vno6Vdr9KqOw/qq v4xrhjHy7A34AmUlsjDSeLFg/9nBsddyRVv4voI/Zr8yfjSWR0DCaTAt5Oip6nIBmTtJ sPuZSAa12Fwf7DluuROQuQOtJ9DGa63LAobE0GRJdg0Q/iTpXxumUsnfXMNZZcPDKGXp Ul0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795586060; x=1796190860; 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=+Bg1tcVFicbbXaykMYvFz5W401OjX0GZjBhGqh2OgKc=; b=qF5gzGRKfvaQNzmjud3+yvdQB2JUrasqG77tMNbMXHnzQcf1S8obbXokv+Osn09QFK UUv5kuTWIU3oylmMCxOeFqL0owpYRb0WatjmueuPxib5bDbddSgL0w6XFeH+p3eqx894 MyihNJvoivFPJhKQrCECXdOvPvatCBfG77LTFlCBk3bq+QDp7REtJkuW+F+wIchnJgdH w/XFeLcJR5BcfRxKPMLZZ76AD/rsU/ouSoOcJP6cPAMxXtjpRQrY6lvgMNQwAMVPQoJR Uu+iBK7mv4PqUGoSrb0FLP0lpBUO0Mo120P0mzwkOchYL5xxfW/h4zX7J/9ydEJdFoJ8 zg9Q== X-Forwarded-Encrypted: i=1; AL+hErFAmsUareZubFMyzVK04aQtn0xBubvIDW0hQoHdUy0D72PAGpc6yJyLfZEWsrkJutbVaZXQAIBlDgc=@vger.kernel.org X-Gm-Message-State: APuU4Z/TIVO6fuScef1bZlzwFDRTZQ2Wwg/sMk4xlsfDC4xeDqlgwSTL coN9nfePOqjhBOReGVYK28LvNGILbUpJn0tgSPvnjv6bWeC2qlHX6By+IlRU8345ORT4vxXw/Fu aqqNEkEeo3Mj8nxgzyg== X-Received: from pgin25-n1.prod.google.com ([2002:a05:6a02:8799:10b0:cda:d1e4:341b]) (user=starchang job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:164d:b0:3b3:a575:846a with SMTP id 98e67ed59e1d1-3b40a5de1bcmr13038342a91.22.1795586059832; Tue, 24 Nov 2026 21:54:19 -0800 (PST) Date: Wed, 25 Nov 2026 05:54:16 +0000 In-Reply-To: <179553165359.3135.5730863120205025514@kernel.org> 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> X-Mailer: git-send-email 2.56.1.831.g720f3f5937-goog Message-ID: <20261125055416.1987174-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: netdev-bot+sashiko@kernel.org Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , 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" 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.