[PATCH net-next 0/2] net: stmmac: sanitise stmmac_is_jumbo_frm()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Wed Nov 19 08:40:12 PST 2025
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba at kernel.org>:
On Tue, 18 Nov 2025 10:00:08 +0000 you wrote:
> stmmac_is_jumbo_frm() takes skb->len, which is unsigned int, but the
> parameter is passed as an "int" and then tested using signed
> comparisons. This can cause bugs. Change the parameter to be unsigned.
>
> Also arrange for it to return a bool.
>
> drivers/net/ethernet/stmicro/stmmac/chain_mode.c | 9 ++++-----
> drivers/net/ethernet/stmicro/stmmac/hwif.h | 2 +-
> drivers/net/ethernet/stmicro/stmmac/ring_mode.c | 9 ++-------
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++---
> 4 files changed, 10 insertions(+), 16 deletions(-)
Here is the summary with links:
- [net-next,1/2] net: stmmac: stmmac_is_jumbo_frm() len should be unsigned
https://git.kernel.org/netdev/net-next/c/b5adada61e02
- [net-next,2/2] net: stmmac: stmmac_is_jumbo_frm() returns boolean
https://git.kernel.org/netdev/net-next/c/bf351bbec57f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-arm-kernel
mailing list