Files
linux/net/sched
Pavel Skripkin 3f2db25009 net: sched: fix warning in tcindex_alloc_perfect_hash
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>
2021-06-28 13:03:29 -07:00
..
2020-07-13 17:20:40 -07:00
2020-07-13 17:20:40 -07:00
2021-03-24 15:09:11 -07:00
2021-03-10 15:47:52 -08:00
2021-03-10 15:47:52 -08:00
2021-03-10 15:47:52 -08:00
2021-03-10 15:47:52 -08:00