Re: [PATCH net] net/rose: prevent integer overflows in rose_setsockopt()

From: patchwork-bot+netdevbpf
Date: Mon Jan 20 2025 - 20:10:17 EST


Hello:

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

On Wed, 15 Jan 2025 08:42:20 -0800 you wrote:
> In case of possible unpredictably large arguments passed to
> rose_setsockopt() and multiplied by extra values on top of that,
> integer overflows may occur.
>
> Do the safest minimum and fix these issues by checking the
> contents of 'opt' and returning -EINVAL if they are too large. Also,
> switch to unsigned int and remove useless check for negative 'opt'
> in ROSE_IDLE case.
>
> [...]

Here is the summary with links:
- [net] net/rose: prevent integer overflows in rose_setsockopt()
https://git.kernel.org/netdev/net/c/d640627663bf

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