From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F2AF1F00926; Mon, 30 Nov 2026 03:50:12 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v3] net: zero the tail of ha->addr when allocating address list entries From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179601061074.3033121.15523033785789678776.git-patchwork-notify@kernel.org> Date: Mon, 30 Nov 2026 03:50:10 +0000 References: <20261123121325.3137049-1-bsdhenrymartin@gmail.com> In-Reply-To: <20261123121325.3137049-1-bsdhenrymartin@gmail.com> To: henry martin 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 Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : 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