πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7803

Re: [PATCH net] sctp: account for chunk padding in sctp_init_cause()

#7803
From: γ‚½γƒΌγ‚Ήγƒˆγƒžγƒˆ
Date: Tue, 27 Oct 2026 09:04
63 lines
14879 bytes
The missing tailroom was found by reading sctp_init_cause()
against the padding that sctp_addto_chunk() writes first.
AI assistance was used for that reading.

The bug was triggered, not only found by inspection. The panic
was confirmed on local virtual machines running 7.3.0-rc7 and
7.3.0-ga1c2b1da93f5 (CONFIG_KASAN unset). The symptom is a
softirq panic:

  kernel BUG at net/core/skbuff.c:214!
  Kernel panic - not syncing: Fatal exception in interrupt

skb_put() calls skb_over_panic() before the copy. The observed
pointers were tail 0x6c1 and end 0x6c0. The same panic occurred
for a listening socket, an established association, and an
unprivileged client socket.


2026εΉ΄10月27ζ—₯(火) 17:50 γ‚½γƒΌγ‚Ήγƒˆγƒžγƒˆ <shengshilingmu97@gmail.com>:
>
> The missing tailroom was found by reading sctp_init_cause()
> against the padding that sctp_addto_chunk() writes first.
> AI assistance was used for that reading.
>
> The bug was triggered, not only found by inspection. The panic
> was confirmed on local virtual machines running 7.3.0-rc7 and
> 7.3.0-ga1c2b1da93f5 (CONFIG_KASAN unset). The symptom is a
> softirq panic:
>
>   kernel BUG at net/core/skbuff.c:214!
>   Kernel panic - not syncing: Fatal exception in interrupt
>
> skb_put() calls skb_over_panic() before the copy. The observed
> pointers were tail 0x6c1 and end 0x6c0. The same panic occurred
> for a listening socket, an established association, and an
> unprivileged client socket.
>
> 2026εΉ΄10月27ζ—₯(火) 17:35 <netdev-bot+sinfo@kernel.org>:
>>
>> Hi!
>>
>> This is an automated message. This series looks like a fix, but its
>> commit messages seem to be missing some information:
>>
>>  - How the issue was discovered, e.g. hit in production, hit during
>>    development, syzbot report, manual code inspection, LLM or static
>>    analysis tool scan.
>>
>>  - Whether the issue was actually triggered, or is only theoretical
>>    (e.g. found by code inspection). If it was triggered please include
>>    the symptoms, like the stack trace or error messages.
>>
>> Please do not repost the series just to address the above. Instead,
>> reply to this email with the missing information, so that reviewers
>> can take it into account. If the series needs another revision for
>> other reasons, please include the information in the commit messages
>> then.
>>
>> The evaluation is done by an LLM so it may be wrong, if you think
>> that is the case please reply and explain.
Technical Details
Message-ID: <CAGGuW1UGKtQUGyqY5fKNhBRnmBJ5L+QggeLtbdtvXiaDo+Mmsg@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352302-linux-kernel-netdev=dewy.ru
References: <20261027082405.1297-1-shengshilingmu97@gmail.com> <179309014594.3327.16979359855381839184@kernel.org> <CAGGuW1XarBs3ZD7eKeysDs7qGL3=Zgd5-vsY1ReuF57gz8aLFQ@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352302-linux-kernel-netdev=dewy.ru
From: shengshilingmu97@gmail.com (γ‚½γƒΌγ‚Ήγƒˆγƒžγƒˆ)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] sctp: account for chunk padding in sctp_init_cause()
Date: Tue, 27 Oct 2026 18:04:12 +0900
Organization: Usenet Network
Message-ID: <CAGGuW1UGKtQUGyqY5fKNhBRnmBJ5L+QggeLtbdtvXiaDo+Mmsg@mail.gmail.com>
References: <20261027082405.1297-1-shengshilingmu97@gmail.com>
 <179309014594.3327.16979359855381839184@kernel.org> <CAGGuW1XarBs3ZD7eKeysDs7qGL3=Zgd5-vsY1ReuF57gz8aLFQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="1498445"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Aw0TFHVNkZjniPQQgIODOOmm8Sg= sha256:mU4R2/cUHgNPc+IFtPsihRxRXB9mmFwld9pAOtocWmg=
	sha1:KIG6xdsRbteHIvuDAGyLheiFCmY= sha256:pNZ7WTNWj65ZdzhDzisf8vg12Tf1yRZps4/2ZCZJdoQ=
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 7CEF8125BE4; Tue, 27 Oct 2026 12:05:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	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=gmail.com
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 ssd5b79wVL-T;
	Tue, 27 Oct 2026 12:05:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352302-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 65816125BE0; Tue, 27 Oct 2026 12:05:06 +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 0D6F327F63; Tue, 27 Oct 2026 09:04:26 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793091865;
	b=YeKz65oG3CwWAk3OorLfmnBkQLC6IQD6E7mRSuB3AuyDmDp6sxTfYfkJ4qgChAV5pJbJ
	 p4vYAjG6tfCyGiF9sO5L3j8GhiKu+Vrf51B8dP8EoORxCwr8OLzO+0eqrYQJbhGBQULHZ
	 lQB2sODrmRYH19SF4fRm9PqxOqAHlWl0pQyV23Frit1wUUpLPWrWlFdGSoGyCzzd30A2X
	 eyTHK7VrgVOzaI9CRB1ll4vjZzTAssXLlo6j4jyfmFY3CzjIMOgFi2nQ5fbw3eozREngG
	 jsFOlejzY0cpvl2xIMUg5pDZNiUBiO5DQYsyfIWn0nOr0JzMYFPmZkyc/iGb2R5Qazw==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793091865;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
	 Cc:Content-Type:Content-Transfer-Encoding;
	bh=IC4ICtskpaMr1BDvtcg7zj+mYWKpW8yLLny0A2JJ3ZM=;
	b=bX09YBYuH3Fa+iPGDtgYVKaFoMLTW4NHUMMCfYJp4qpTy9/VCRJAfbIzI6X2o2M0t4iI
	 dtaww56y91+xQU1j5HJqq47tT3ZxNh1TJ5DyElDblOUHpDQzgy8BUX9UCCbJgOzFG8uNL
	 pe+9zgnOY9xHW7ODzDe2/0AS7c+gxw/3hHW3zIJrIjt8wih46ixgQaba+Ekc/HcRGbGxe
	 2HXWzojytezvnaQ9OkEo+rIbtv+cS+FmoLnIlouEcFUOEtdRmxA2LpeA9dZ0Y1xnFi9wp
	 +gLb00hkgNzubMCaA9c2PTyyq57nWjjs5INgg+Yf6lWy43oA3zaMxPO9HCqTr9gAB5A==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=nuXcgjgI;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	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 D4218606A328;
	Tue, 27 Oct 2026 09:04:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=nuXcgjgI
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.169
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793091865;
	b=qHeGuuO2Cb+F4x1DQT94FBlcgST1y5vad3SILLbXS6AB31Dt9ZF7A94udRLM6vX59ULe
	 PATdOFgNQ/hC/FEiY1mf1qzIK9PVxzpK1jIMrMKg7awvwE65cOtql/0H3QxPjecwej/SI
	 qCtblmoNRy6dpNbUuQg+ZOgGmJe8LK4o9ud9lKFIp8h6x9UZCsRmF9EVNIDukIz1XBKru
	 xtiCyu7OL+F5+RPzo8V9VKXQkvTYFbl3M5yI4j9UfuSv11YJ87KZeQMuCYFaq/4IDDc69
	 WfyGDZDXwLAKQZJyDeHv25ygtzikUCguOt/X4j29t30TGj1vMrmwl0VKDXvhWvD0iSA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793091865;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
	 Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
	bh=IC4ICtskpaMr1BDvtcg7zj+mYWKpW8yLLny0A2JJ3ZM=;
	b=plmHcUAdxq8CMg5l9lLSLWKDAb0SN8Xhy+d5jrErm+7O9kQTo21Jry3vxrDuvz4hA+cc
	 GLbKNkIGo0p86sV4/pvbcAi8x5YmtPee752d8yf7tStu8Zk0adjccpeVhjBvh2GLOX8bM
	 GGslIpwneFpcBskk/wDwF3Sv6yCZQhpQbWFWQQbHi7u195+RW2ymNqIJkELhpOZfAxRNh
	 tLIqhC9+a0cLw3owqMCLOcYT7OEcM+ku6kU7fZ7DMWBMVqCwcyFp24ncooH21OVknsj7X
	 lBY8XJvxhtCFGUxhcAHB6mhGadFT04191j9QCR+9K9FRfYAB5Vl0FIX8GnMOh8yI29A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=nuXcgjgI;
	arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.128.169
X-Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id A76A3606A31D
	for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 09:04:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A76A3606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-8b0d91601bdso6320317b3.1
        for <netdev@vger.kernel.org>; Tue, 27 Oct 2026 02:04:24 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1793091863; cv=none;
        d=google.com; s=arc-20260327;
        b=FDWtRIZodxwbdEu+PvABtSwTXpqwkZEUYhLE8rWxweWoXotYywxE4by22UbwThSLvh
         6/imXjevUSSWSPOgECNt5mO+6VFrnDv4dR+3d7LQ1tdlVpWV/0aCQBSZu8R1hn1/iBlB
         ht1viA7/5euoh8Kw9A1jmpwW4309mQ6xAF1t6YRCr8KfJvljYJzFkUAaQ35QBxI1JY43
         H396zVP/f2Va3emUz2oplSEQhJ/SfdkqgefH7b0D5AvWgJFRPLdIvD+1T9KWdijLDjSU
         mUyKqp+B6Kxa35/R8oUflwMDSEQ7gOu5f6gleQrDjN/N+qB5Q+EnrkjeoMDt255P52hU
         32ZQ==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=content-transfer-encoding:cc:to:subject:message-id:date:from
         :in-reply-to:references:mime-version:dkim-signature;
        bh=IC4ICtskpaMr1BDvtcg7zj+mYWKpW8yLLny0A2JJ3ZM=;
        fh=h9728ZkkZooPlGBDmaJ5Wk5QX1Bq2LUXxFoNsv7vBFI=;
        b=rmMp/dPZEIr/efbBtVzTRcFbedL7uAi11Sow2/aYotL2wtEMKKFNWWVhdvnWxfF/ep
         YgEkezoa8PIDIsWlXIYO+vfwKKKyRd6nFWTyC6mQ8lttLufLnRhTQkHEdSvkLckydnSE
         DWB9VvM0lfd/eUFdk01GxSKfHtOqoxsyV6DWFm7qPZ4yakX+E6YbcAwSJ5S8/9RX1EoE
         cdd/m9HbwvLd1D9o3YxZSi6X+18m1Ys2TpvaT5c5PMO9pkzVjJKMu770aIZTbQgcHkqe
         rkJud2D0twCyCbqSThYGQXtQNcgBp7c8Yp+2NaIEZvKzzmjE7WNn0rBo5HtMirzSNgUf
         4WBg==;
        darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1793091863; x=1793696663; darn=vger.kernel.org;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=IC4ICtskpaMr1BDvtcg7zj+mYWKpW8yLLny0A2JJ3ZM=;
        b=nuXcgjgImRLpr33nbQdXKUCCrMD6AEqN2Xnpc+EfrpyBTbxxXk68hY0rQmm/6syrel
         u2dPxtll6lq7LM0pUYwkJWqgo/KhNVQdQkBWIwm9Yd0qB9uH6hSuqcw2p0/+CqZk6S9K
         0yQu0+Htg5AeXpEnh4Msr6+u9UGMoZj4NT8IXQZj0MCj/O6qBq0Qaz+DUTD+uq9tmE9g
         kFCUXvOVFVeRROMpTCRF+Odr833ULEPnJge1NfbZN0elhwcGdRQ7qiXcg9u1sAypjdvJ
         LCGMitjTkGnJnD8qpgZ4gxH4BhVcyKwO+bbaK92JN4UVpYBqf0+4EmgmcUkWbQ6d3ePE
         thLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793091863; x=1793696663;
        h=content-transfer-encoding:content-type:cc:to:subject:message-id
         :date:from:in-reply-to:references:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=IC4ICtskpaMr1BDvtcg7zj+mYWKpW8yLLny0A2JJ3ZM=;
        b=mgOoSUjX9QkOMil/byL9AohIORAIvzYAPhxMeBnWxo06NYvKkjyN1a/F8pLmAAmWhv
         sF/8/d5rR3vRkez3UMZNe3PbEwMnVixCwP80polHE8PV4ZMmgB3aZ8XAhRfLNZtLVZsP
         txms/WalzU/ip4GZzy3v5eCKyDM+3qAZHtCi+OJWeXVByegshJPiDeCm52y3Up+UI7Ln
         Uu817aGR2vl5AQkIqWRtJlsxy/MXdyUih5clRg1MQnTAX+40gea4ytrC3CHbm7t69JH/
         5MpCs5uLGbsLSlufIRNAj9dDRM27KzRDnZsqcIswlSpM7Dh2YT6k2u8h0L8LhrVHkn7B
         wugw==
X-Forwarded-Encrypted: i=1; AKwUvBzo1yei0pQl/g8pmlAxfBSwirSMXA6EizF4DeZIzLZBUePx5fa9uciNcLHdE07pFJ4/mJ4kU5M=@vger.kernel.org
X-Gm-Message-State: AFq9FYJBgOCEJjczfExgioRD3YnfDfnwa0rkBzHS4FLQB3k4/46mRH+Z
	HwG0/lqmqAg/ivE9K0j0XTtYD3dUALhQdqRS3tLd0KAduwX6g3hs/+XH8mpUb4mV+DHNhLjklrB
	f4xuXfn7v+zvRqi+zgH84o0JrsdXQ5YI=
X-Gm-Gg: AYBFou1jpAPYcPga0wQ9wuHbpPoaoEH98oEBgDzBN9PRDVYlEe6vYY7IP7fhFQQnDw5
	uEehRdxdhYX5kzcNLuE3hP6w0F1H1eOZDwa+37NF8q4FenW0XY5ORCpu7sYZvtOavaZLfZhJN+u
	HQCQ09/y6Im/PHwO8k5ro7n5ZpyMnLoSbaqj9FEqF2FxmipqTcojsbTluY3UJ42rkz4WwYqdcVT
	T4O8aZEOH9K+hTcPMzqMptnuGsmQvyQsuD5WT6g+E3+Ci6g8OEHDirb1zuOsdoitaWYIbIlaA63
	ep4G3pw8SE2Z1sk0SwnSK58upZzWnH/sKi8R4CTwvlWkXk7u+igLkma4r3k7Mc/NAxeL6G9zZWk
	xL5+2/+me290HvVqEbcgVJf5ttQoOj7VTLPc=
X-Received: by 2002:a05:690c:6387:b0:8b1:567c:e7d3 with SMTP id
 00721157ae682-8b19c7985ffmr16596757b3.7.1793091863585; Tue, 27 Oct 2026
 02:04:23 -0700 (PDT)
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: <CAGGuW1XarBs3ZD7eKeysDs7qGL3=Zgd5-vsY1ReuF57gz8aLFQ@mail.gmail.com>
X-Gm-Features: AclHuK8kmj6WVIj8zol8TSlhzkemES5oLPxGf7X0ktRixJ_-10JdWdLfo56K8xM
X-Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>, Xin Long <lucien.xin@gmail.com>, 
	"David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, 
	linux-sctp@vger.kernel.org, netdev@vger.kernel.org, 
	linux-kernel@vger.kernel.org, stable@vger.kernel.org