Files
linux/net
Pavel Skripkin 9e5c7067f8 net: sched: fix warning in tcindex_alloc_perfect_hash
[ Upstream commit 3f2db25009 ]

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: b9a24bb76b ("net_sched: properly handle failure case of tcf_exts_init()")
Reported-and-tested-by: syzbot+1071ad60cd7df39fdadb@syzkaller.appspotmail.com
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Acked-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 11:24:18 +09:00
..
2015-03-02 16:43:41 -05:00
2023-05-15 16:07:59 +09:00
2023-05-15 12:05:35 +09:00
2023-05-16 11:11:34 +09:00
2023-05-16 11:14:47 +09:00