🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #24366

Re: [PATCH net v3] net: zero the tail of ha->addr when allocating address list entries

#24366
From: patchwork-bot+netdevbpf
Date: Mon, 30 Nov 2026 03:50
33 lines
9292 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:

On Mon, 23 Nov 2026 20:13:25 +0800 you wrote:
> __hw_addr_create() allocates entries with kmalloc() and initializes only
> addr_len bytes of ha->addr, but the dump paths emit each entry using the
> current dev->addr_len, so an entry created with a smaller addr_len is
> dumped with an uninitialized tail.
> 
> dev->addr_len can grow at runtime and nothing flushes the lists.  While
> addr_len is 0 every addition collapses into one node, because
> __hw_addr_add_ex() compares zero bytes, so the test adds one zero-length
> multicast entry to each of 64 tun devices and switches them to
> ARPHRD_IP6GRE (addr_len 16).  RTM_GETMULTICAST then returned 64 entries
> of 16 bytes, 37 with non-zero bytes and 21 starting with a kernel heap
> pointer (e.g. 0xffff8188_04857ee0).  tun has to flush dev->uc and
> dev->mc in TUNSETLINK as well, which is a separate patch; qmi_wwan raw
> IP mode and the HDLC attach/detach paths change addr_len in the same
> way, so tun is not the only case.
> 
> [...]

Here is the summary with links:
  - [net,v3] net: zero the tail of ha->addr when allocating address list entries
    https://git.kernel.org/netdev/net/c/0c79efef1680

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179601061074.3033121.15523033785789678776.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373837-linux-kernel-netdev=dewy.ru
References: <20261123121325.3137049-1-bsdhenrymartin@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373837-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] net: zero the tail of ha->addr when allocating
 address
 list entries
Date: Mon, 30 Nov 2026 03:50:10 +0000
Organization: Usenet Network
Message-ID: <179601061074.3033121.15523033785789678776.git-patchwork-notify@kernel.org>
References: <20261123121325.3137049-1-bsdhenrymartin@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1325607"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1rwdeMw2YXq+N3oA05Jmm88v910= sha256:EMGcSkBC8fST0S0Cu+GEBGVniFGOWQ0dmqY+OSYw79I=
	sha1:cFJ1drZp40J73+a6XWyBIFcUhk8= sha256:zgYQGvjP8UCG0nuBPlBWg54Y6QjMollhH3mxlWdmhpI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BD72E125D6D; Mon, 30 Nov 2026 06:50:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id E1T1wD2RyWAw;
	Mon, 30 Nov 2026 06:50:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-373837-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 492C1125FBD; Mon, 30 Nov 2026 06:50:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 24504237C2; Mon, 30 Nov 2026 03:50:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796010613;
	b=nB2NvAJ25qGNzkz6evLRTo+IVLKHfhvJN/mYvPL0SFGW1GdXAs9hBjpSmr+QomIeTC4A
	 5qRmG1Psr9GnDp8LpDwPGuThd364URLI+NaoY5E7IJoQQm33Out5W3V3qpo1dUOLs92LK
	 Y56fakjZ+G7DDTOXRdpCo2i5g1Sw3kMa01qLYTmhsYTbdcUyxXa4Aq57clt6SmbrSNxTe
	 cxXItUqfVXj0OvJStKNbaF4W838JVWDXDEifDMYtRzj+QazuuRybuBjVkOlVLf0GuHWdB
	 DPXirzTqKV/4HyfwJnwq8BBwzBoSETiCIJmboEfj+CKkX78k9arFqkFx4+JCAYSlqUg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796010613;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=EO860eHS9fkOBqbxTe8VvM/eGCO40bnB1PC4XJSFLdU=;
	b=gHsr91fckWkkRlxYIYVA7ThHaUCv4AL753Pr04LuHQcylT1K0i+JRbmjL9gDiqDdNkys
	 D2gF8nGH/sGLM3i4SZFqd0zMKrDrf4xpjC7dRG75V+lhqcRHwMAKbWMzKPqvmVsmXDHRV
	 rwebmlsRyaB+4WAiWfptvvTMKYsac/fg+xGyMiTU0yxu87v/sad2htm6nMZ7gY1BmS7w/
	 wOLU4m+UkK/DExVyonGTCf6xdpl5QNmLXSf72kuVnJzGqYQCOOPs776GRcGJb5NsL88Dt
	 8Va8fCBHTQcOP1k1ZxPjK+swNDv8wvpnlJkzlmM08hsvA+I7Bxc49plUzgdkdqVEEow==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JQc6axd9;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id B111B606A333;
	Mon, 30 Nov 2026 03:50:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JQc6axd9
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796010612;
	b=Ej8BVi8H2RNHKfwYixzYxaFb7fWXK9EGf1BiuXajQ2YIPhBUgXBTaq0W0uUh+/dJcnbf
	 Mraz4kSPzIU2BK+V+bVAEEs6AE9IWh6b1d2QxVAcey/4ShUC2iiG6m7wlsPeU11r5pwmE
	 a1u3dcdksVhydN2G0iVVusc2CTQpK07pk3+eDzEgBpwytTfyHyoT6i8b0vrtDTiDJPzO6
	 D6HAhVfYaHqvuMu8htNU+cUOPaijGKdL/FmIwDSeJWYFqymEpA8uMgggg4JwHGO+sJsm2
	 XTb784lWx5QLF0x3ctCWeovqlL/wlbT7YqnuDu9GqKk2qavXjLmPRmwung6YY4y2WGQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796010612;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=EO860eHS9fkOBqbxTe8VvM/eGCO40bnB1PC4XJSFLdU=;
	b=YdwyRKKanweNTH3C7zG3r0TzioXwy1Ik0peh2o2ZxhNjskOW9XwRcRMc2kTcgqKj/gru
	 +5/MXWyypUrCRV4cEiJMljKY88POkEQyYqVS9+8Fe4tHSTIatl5GQLAIOI3zuzZAWtk8/
	 E4sZ/mtg3AKl+jkn/oCQA+gnQ9vxG34oLgkjt4koBgHi0QhfJZjLyL3Ri+HvsTc5bI8l/
	 5cmC6YTFMYpdli6SsjPXntkq8iLEGu00mmko5lMyHqg5GVwYvmoCpulz95WXkDhb5NBjn
	 AHubeojtGChCSiyBrtOnXEqn77tTia8v6aCG01hf6hbCFVkulswVJPLM0ZkVBVCFPeQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JQc6axd9;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3343606A334;
	Mon, 30 Nov 2026 03:50:12 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F2AF1F00926;
	Mon, 30 Nov 2026 03:50:12 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796010612;
	bh=EO860eHS9fkOBqbxTe8VvM/eGCO40bnB1PC4XJSFLdU=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=JQc6axd94uCkwDdtvZpxcdsTKa469eodRVTAnMOTzJm9C2ZrxrAB3PK7umvgN9nYl
	 f+I4dSzfBuOk4IM7v+lrs98fNx3RG2sqEhVFFkI4YtDxtx/TXTtSY3p/acoTrP6n7J
	 riAdr/RIwNr4HVk+PSIF3pi1wCvmt2jGyW1sONPjs8V8Dx3riSOXXdDOMhN3uwzHGi
	 P4NLFtgAo9MXgPr+6fHnu1Rk3ZLBA43xryoE0p19LMjbEUvSUviNrHHQYWosW3GQNw
	 Au/6s0ZxAGpYFSyfgV1abMtRWYX28WrXhRx7uMq4QF9St/AnCWTNCxPufg1kIJ7nRO
	 MVP5Rd6GOhz2g==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 347D9392EA7F;
	Mon, 30 Nov 2026 03:50:12 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261123121325.3137049-1-bsdhenrymartin@gmail.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, sdf.kernel@gmail.com, nicolas.dichtel@6wind.com,
 sigefriedhyy@gmail.com, horms@kernel.org, netdev@vger.kernel.org,
 stable@vger.kernel.org, daniel.machon@microchip.com