🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25784

Re: [PATCH net v2] sctp: diag: fix stack garbage in IPv6 scope_id during dump_one lookup

#25784
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 12:40
28 lines
9012 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

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
Technical Details
Message-ID: <179621520699.1432519.3184960510835123758.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375784-linux-kernel-netdev=dewy.ru
References: <7cc69548f249ff63527a663c22d9dc918d3c3e84.1795621751.git.lucien.xin@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375784-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] sctp: diag: fix stack garbage in IPv6 scope_id
 during
 dump_one lookup
Date: Wed, 02 Dec 2026 12:40:06 +0000
Organization: Usenet Network
Message-ID: <179621520699.1432519.3184960510835123758.git-patchwork-notify@kernel.org>
References: <7cc69548f249ff63527a663c22d9dc918d3c3e84.1795621751.git.lucien.xin@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1971318"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cel/CPsEBDbvDAA5+vig6T0nYOA= sha256:2azmsWzy09JCoJr7Q77lXuX0WozrZliq9Kqi23MGWTw=
	sha1:NCr664EcAu+tRxPedP9DqHhzrh8= sha256:rqBNbr+dU5YA8mTioZbpa7yBq6Y4gyC+hKfFKdc5WJM=
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 78FCB117637; Wed,  2 Dec 2026 15:40:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 jYjfYwVOJQ62;
	Wed,  2 Dec 2026 15:40:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375784-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 7EF39117635; Wed,  2 Dec 2026 15:40:13 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id D055E2D670; Wed,  2 Dec 2026 12:40:10 +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=1796215209;
	b=eseH9Q5aNMr8JA4N+RRnmldO8mQMahPojNlv+ExhETItwRGCk4bkviZ4rqfmb+xToyWp
	 F2WqwP3M3tfmL9kovvz3Wgu5xPRKgDAHtYWwPM93sA0nW7NMdiksR/rhCKUpp4HGsqfKw
	 gNA+iEd3L1yQbuSi/+nXO4esCl/GQmWuCaIir6VX0quoHXP9nZNZI6jScrM0jDMV8On3t
	 kpdL/SP6ToPVWkDRKFarIEODbHIj1jSC6lDLv7UHne58mjhA1DNbG5xjVRgcODUB8Lixl
	 Fb+WnPaK/pfDVLcXTprJZZaMwvZkHeaO8xP6n5BC2cQmHUttEx8qjV1jIUls60EelVg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796215209;
	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=ic9MVStYXcfb5/fhXDJWQ/ixSh35oNPu+ZTClQYVsS8=;
	b=f2vGVynNj3CLMpstJJT1nF30KWsXZDaCa3t2yB4bLP7BSqwMqSNayAHKmIjEa0hmz1k/
	 wYgq+zqYzz/dTDsy11FxYxtT2cMMA3OPQdb2rFUnsxjvBHjE6De9+CfpTBRVvkWAVY2Fg
	 3d2mmN4XrMztPjnttqvQMfs3MId+QeUuG6nPFqQP4+7zgRLHLjWua2mwSevQ0d9UbiJos
	 eVLVT6dZl+mS2iBnLnXGijDbI5SDT9e2X6pbja0xUKXtD9PHOUH7SdaVPm8oKjEhCaDKJ
	 h2P4GcDmKh8/XAjQua2YG4qIwW89ibFFVG+anahnxcf9hwL1MbUMJqKogDyjH+gqRPg==
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=G1WoUFYz;
	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 6F30A606A332;
	Wed,  2 Dec 2026 12:40:09 +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=G1WoUFYz
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=1796215208;
	b=Mq1IZdujJJDjh+6He3UGqqdgDN+YYtcWLJu/+xRJIzsyBnGG0QYh12mb0ubvbJaN1ch5
	 gLRPHo5SQCunWpuErhYS8+8pC9zcGCk0Oic4F/awPL/fni5ziIaRQjZg7XkPn+f4S7kyV
	 v0coumcvZe0v9V1XxJXNA0XTKx2AyQKqhUl/ptlZrGfuXvS/c0VbwddRK7h4hShMRG4i2
	 FmgSkETISW7QXGaH6LZlcrYwYQMKhS7D/F+oOJ8AHJt+7m7jnwXV+kWQp0EDDNZal8p/j
	 E23X3jfFFjbNMvK3RCYoY+pHKGEvgfWM389+WwqK8JrF9a9wPj7muQ6oNtFKbKClwNA==
X-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==
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=G1WoUFYz;
	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 8B038606A31A;
	Wed,  2 Dec 2026 12:40:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D7681F00896;
	Wed,  2 Dec 2026 12:40:08 +0000 (UTC)
X-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==
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 363D93808235;
	Wed,  2 Dec 2026 12:40:08 +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:  <7cc69548f249ff63527a663c22d9dc918d3c3e84.1795621751.git.lucien.xin@gmail.com>
X-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