From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CCAF20D4FF; Thu, 18 Jun 2026 00:21:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781742065; cv=none; b=ktCkVr9GdSGDekPQs2w0dLgwDE3Uy+ufwfmHBupwNqqWcpbsIDapm5Nze2zM2ku829T2/vD69zm1GNaakGJIZBuV11eTZa6OHy0y+BcpcSQFlYwCYF6koiLQHjEwBJF6wmYpCmz2fncdfeji+fiTlycGR/y2OULtywZwZrpj350= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781742065; c=relaxed/simple; bh=DWrceq2OhH6aFez2ixZtaml5shxwVq/SuVD3h8iyi34=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=ptZZH5r7aujWvldavcEuoYaAVdSLQ0yj0bA9PUIqeO/KKEeFFuQdaYjJPouwDxL5XFav2Rcz8qcMjoKdqAoZT5XNIkzVZPKKm16TKyVDUejtRJku7xqTp97sRifpb4KmRuxLI25udJZTNd6MgRmSUwndnQQzPX8g/wpQyV3Te8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DUjcXrL7; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DUjcXrL7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81A331F00A3D; Thu, 18 Jun 2026 00:21:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781742064; bh=uL1gQff5ono3NPytk0J8Nf9toqilNRN+4zKvHHyXafM=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=DUjcXrL7MaxA6BQEYM7doXUPfknrd26gNOMbHMwkc4D04dKnH6hkZfHpUS1frjaYW m3hnvfAAPhHFRKqxQkl76vNij8KKoLKp89m0dDbBBASmqer8pbQSTJwxAY/pEGTIIo xbuXa2Y5oZpnGr9P7XW+2xb2u6xrYFyxHpqHRwVpiRhIpkVwa0p4Qj4U6TSp4gLZ+o UZX3TMIaJsmGx7pp5+x3qzdTWhZSCptPE1+9rU90F5GwzPVF4v8JalMO9qLcDOVBC+ AV30ppqPbwspnj0TJtI3gmJnm4tAnxLdYL7FojAXrLdWCor+D5YgSAZzzi777eX/Q9 tW+MW2sIDQ9Eg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 9395B393102B; Thu, 18 Jun 2026 00:20:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v2] sctp: hold socket lock when dumping endpoints in sctp_diag From: patchwork-bot+netdevbpf@kernel.org Message-Id: <178174205813.1875263.14770021083117878767.git-patchwork-notify@kernel.org> Date: Thu, 18 Jun 2026 00:20:58 +0000 References: <4c1b49ab87e0f7d552ebd8172b364b1994e913c9.1781552190.git.lucien.xin@gmail.com> In-Reply-To: <4c1b49ab87e0f7d552ebd8172b364b1994e913c9.1781552190.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@google.com, pabeni@redhat.com, horms@kernel.org, marcelo.leitner@gmail.com, w@1wt.eu, zdi-disclosures@trendmicro.com Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Mon, 15 Jun 2026 15:36:30 -0400 you wrote: > SCTP_DIAG endpoint dumping was traversing endpoint address lists without > holding lock_sock(), while those lists could change concurrently via > socket operations (e.g., bindx changes). This creates a race where > nla_reserve() counts addresses under RCU protection, but the subsequent > copy may see fewer entries, potentially leaking uninitialized memory to > userspace. > > [...] Here is the summary with links: - [net,v2] sctp: hold socket lock when dumping endpoints in sctp_diag https://git.kernel.org/netdev/net/c/7d8297e26b4e You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html