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=1796215208; b=Mq1IZdujJJDjh+6He3UGqqdgDN+YYtcWLJu/+xRJIzsyBnGG0QYh12mb0ubvbJaN1ch5 gLRPHo5SQCunWpuErhYS8+8pC9zcGCk0Oic4F/awPL/fni5ziIaRQjZg7XkPn+f4S7kyV v0coumcvZe0v9V1XxJXNA0XTKx2AyQKqhUl/ptlZrGfuXvS/c0VbwddRK7h4hShMRG4i2 FmgSkETISW7QXGaH6LZlcrYwYQMKhS7D/F+oOJ8AHJt+7m7jnwXV+kWQp0EDDNZal8p/j E23X3jfFFjbNMvK3RCYoY+pHKGEvgfWM389+WwqK8JrF9a9wPj7muQ6oNtFKbKClwNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215208; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=ic9MVStYXcfb5/fhXDJWQ/ixSh35oNPu+ZTClQYVsS8=; b=D2AGIoCmkWmaC7S1sufhQRbJAAK0g8xnCtYH1flVrdfJyswaJiSnMolXdyn1de4vN91a mIJLdq/PQ/6F1HolA/SOh/O3n4vyGm2eC2i3tx1GPH9o7daHd0Vt0FnxaAbOHCytbHNJz mLxeR23Opm8uJ1/JcyPzznxqDsfXXnhBwm34BLCmWwjlz4vdsYWbu6n6OHwiUU82NGfJ9 JvlvK+dLxmEdvzDbwCreTHzA5R9MpkZKkNWKg3QFkH213lyZbdzG4/Ii+inNc6zY8SZVr YMON5Rt/Z6Vx+yG7gNgkVqjmzrQ1wlhW5cFCwHSVS3m690Mi+9zC+rA7CceJjZEADeQ== 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=G1WoUFYz; 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 8B038606A31A; Wed, 2 Dec 2026 12:40:08 +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=G1WoUFYz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D7681F00896; Wed, 2 Dec 2026 12:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796215208; bh=ic9MVStYXcfb5/fhXDJWQ/ixSh35oNPu+ZTClQYVsS8=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=G1WoUFYzCPkF8PZOGRV4/TpH2iC5wH3o0xTKFdxV1DH+b3+C9VUh+2Xh9CNVXce67 aopK8cLvgV98pJh45jRWCZgzrR3GSyPwkRrubnNbjEMVkcsfesbyGg/CSsTgRNEM5+ 0+tRgqJ+Nww3XfKD227zloqJ0jWTGAwHtZh+HaS4sFSgE3zMa8N2InMTvpW9sC20a/ SYqnZUOSDPQgbDB/cCFRKOBSy1QvJhv6HIh6NcBe1m/MQ8DNgypCcATG8/YShfpjvo /0upzRggfIFye1p/96Hk2SbI7Y7Kwe+enUK1KAqiv0eq4vgQ8bKD6+Wrw2L2RcBAqr UyD16AAREz9VQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 363D93808235; Wed, 2 Dec 2026 12:40:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@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 v2] sctp: diag: fix stack garbage in IPv6 scope_id during dump_one lookup From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179621520699.1432519.3184960510835123758.git-patchwork-notify@kernel.org> Date: Wed, 02 Dec 2026 12:40:06 +0000 References: <7cc69548f249ff63527a663c22d9dc918d3c3e84.1795621751.git.lucien.xin@gmail.com> In-Reply-To: <7cc69548f249ff63527a663c22d9dc918d3c3e84.1795621751.git.lucien.xin@gmail.com> To: Xin Long Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org, marcelo.leitner@gmail.com Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Wed, 25 Nov 2026 10:49:11 -0500 you wrote: > As gomaja noticed, sctp_diag_dump_one() builds IPv6 lookup addresses on > the stack but never initializes sin6_scope_id or sin6_flowinfo. For > link-local addresses, __sctp_v6_cmp_addr() compares scope_ids when both > are non-zero, so stack garbage in these fields can cause sporadic lookup > failures. > > Zero-initialize both laddr and paddr to ensure sin6_scope_id is 0, which > acts as a wildcard in __sctp_v6_cmp_addr(), matching any scope, just as > TCP and UDP handle idiag_if purely as a device filter (dif) parameter > without conflating it with IPv6 scope_id. > > [...] Here is the summary with links: - [net,v2] sctp: diag: fix stack garbage in IPv6 scope_id during dump_one lookup https://git.kernel.org/netdev/net-next/c/fe4597b13a53 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html