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=1795975211; b=vqNa3hMkRPgoGuAwo2rNC6d6mtqS/ScfAX8GbrBWec11/NEBIiFn94ewlPQPGB7/WORy x+24BQv/CGyIOmRDeGb7XhRaSgGZkn8xg3GIGEqp0twjt5XDFVo4QN478n4zNTPfgAM1D W0H85Zz6htJstY6xzevvRs3DSJxQpwk/4rlQEq7NAd+SJOFyfnEdnqDrtPCy1Sf1EpMFp eRQ27Quq9om3R8/NFtZIxJSfEEjt18NO78QMOL7lj6s8MFSTxdDVIYJfTBlInW5U8A5Sh ThDjei0fqeZ5mGTH7zcS8eilFtdwnIYIL4W16qD3dnX5RKmP0Ro3dLHCcjOSfYkYbdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975211; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=F+0p4FqQCB0v/Vozy9Op+clWnKrWvC17Pk4j//vrrkk=; b=2Xw/9jxrclOJcAdoxUp7966aUDsNy+hxQoEcRtg8RumjVTE/LqTx8wxBUJgnzIsNDOzN tVyfCsI/UBbx/Cfd7FJ09+YvUG7puKjPfHRrQU+u0KnU84p1DHiYFKsrmykRfwY2UF+Hp VsBQDHBJGEECVoKtR+z+UWdKMsGdOS+P3uosIuRbrHKeOzqSc2qj2gUffqeQoF01/UMTg otlq7p9DgWvQZBHuNEoHmldrsqEDpVOk8mAkCj2ZF7LzkbXwgcGVoBAEAti6CkBfZGXvM s+xM7eTqs1t0lomDfPDTwp/GbooGGjv86bOd7N5+Du6DnBUiXZ/c9tO6fL5HeQqi7Dw== 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=PPaohZYj; 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 9D743606A68D; Sun, 29 Nov 2026 18:00:11 +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=PPaohZYj Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46AF81F00897; Sun, 29 Nov 2026 18:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795975211; bh=F+0p4FqQCB0v/Vozy9Op+clWnKrWvC17Pk4j//vrrkk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=PPaohZYjzKtKgBTx0vgGe3yJXAvi7591DHwfv/NrAgRMudbkCGcgWXavrcaDxS8sf yIueoJrg1E5LdN9HI6xqpBC8fLS3imvMMpZWu9VqBS54e7IIndlUJePsqJm6st4Qq+ Aq16tkyB83Fe9hzok0PQMeUTL6lkvjB0l9q9wyq7iL4q9TYhB9VnCuaMjGfphp4i/i JnvkSx5XGemD40+SK0hdVjaA3VIl+uSfTu5K81fyN1cBsWFKgnp9xC42CccHFbcsii S7VRPSKbx87o0DjdopP3AUr7rr+3TmJhYUNUJQWH48FeG5NgzRS5GJ0YMWk8rZ0Td8 iEx/DyFCMCp1w== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 34963392E9E2; Sun, 29 Nov 2026 18:00:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-kernel@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] sctp: pick the AUTH key by the data chunk type that is sent From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179597520974.2381430.13806987858913555907.git-patchwork-notify@kernel.org> Date: Sun, 29 Nov 2026 18:00:09 +0000 References: <179542222978.3276016.1235014191109840927@gmail.com> In-Reply-To: <179542222978.3276016.1235014191109840927@gmail.com> To: Kyuwon Cho Cc: lucien.xin@gmail.com, marcelo.leitner@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, nhorman@tuxdriver.com, linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : On Mon, 23 Nov 2026 17:26:25 +0900 you wrote: > sctp_datamsg_from_user() takes the chunk key only when the peer asked > to authenticate DATA, but with stream interleaving the message is sent > as I-DATA chunks, and _sctp_make_chunk() marks those for AUTH when the > peer asked for I-DATA. If the peer lists I-DATA but not DATA, the chunk > has auth set and no key, and bundling the AUTH chunk dereferences it: > > KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] > RIP: 0010:sctp_packet_append_chunk (net/sctp/output.c:264) > Call Trace: > > sctp_packet_transmit_chunk (net/sctp/output.c:189) > sctp_outq_flush (net/sctp/outqueue.c:1112 net/sctp/outqueue.c:1218) > sctp_do_sm (net/sctp/sm_sideeffect.c:1826) > sctp_primitive_SEND (net/sctp/primitive.c:163) > sctp_sendmsg_to_asoc (net/sctp/socket.c:1919) > sctp_sendmsg (net/sctp/socket.c:2086) > __sys_sendto (net/socket.c:2283) > > [...] Here is the summary with links: - [net] sctp: pick the AUTH key by the data chunk type that is sent https://git.kernel.org/netdev/net/c/1ca5a3b4c235 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html