Re: [PATCH net v2] tcp: limit tcp_tso_rtt_log to a valid shift count

From: patchwork-bot+netdevbpf

Date: Mon Oct 26 2026 - 20:04:07 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Fri, 23 Oct 2026 22:40:36 +0800 you wrote:
> tcp_tso_autosize() right-shifts the u32 returned by tcp_min_rtt() by
> sysctl_tcp_tso_rtt_log. The sysctl uses proc_dou8vec_minmax() without
> an upper bound, so it accepts values through 255. Values above 31 make
> the shift undefined.
>
> A process with CAP_NET_ADMIN in the target network namespace can set the
> per-netns sysctl. With CONFIG_UBSAN_SHIFT=y, setting it to 32 and sending
> TCP data over loopback triggers:
>
> [...]

Here is the summary with links:
- [net,v2] tcp: limit tcp_tso_rtt_log to a valid shift count
https://git.kernel.org/netdev/net/c/850a7225bc61

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html