Re: [PATCH] net: sched: fix warning in tcindex_alloc_perfect_hash

From: patchwork-bot+netdevbpf
Date: Mon Jun 28 2021 - 16:10:10 EST


Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Fri, 25 Jun 2021 23:23:48 +0300 you wrote:
> Syzbot reported warning in tcindex_alloc_perfect_hash. The problem
> was in too big cp->hash, which triggers warning in kmalloc. Since
> cp->hash comes from userspace, there is no need to warn if value
> is not correct
>
> Fixes: b9a24bb76bf6 ("net_sched: properly handle failure case of tcf_exts_init()")
> Reported-and-tested-by: syzbot+1071ad60cd7df39fdadb@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Pavel Skripkin <paskripkin@xxxxxxxxx>
>
> [...]

Here is the summary with links:
- net: sched: fix warning in tcindex_alloc_perfect_hash
https://git.kernel.org/netdev/net/c/3f2db250099f

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