Re: [PATCH net] sctp: account for chunk padding in sctp_init_cause()
From: patchwork-bot+netdevbpf
Date: Fri Oct 30 2026 - 18:10:26 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 27 Oct 2026 17:24:05 +0900 you wrote:
> sctp_init_cause() accepts a chunk when skb_tailroom() can hold the
> cause header and the payload. sctp_addto_chunk() then writes 0-3
> bytes of padding before that header so the chunk stays 4-byte
> aligned. The check does not include the padding, and the following
> skb_put() calls skb_over_panic() from softirq.
>
> Count the padding sctp_addto_chunk() is about to write. The cause
> length on the wire stays the header plus the payload.
>
> [...]
Here is the summary with links:
- [net] sctp: account for chunk padding in sctp_init_cause()
https://git.kernel.org/netdev/net/c/ed6c53b27be4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html