summaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-06-25 23:23:48 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-28 13:03:29 -0700
commit3f2db250099f46988088800052cdf2332c7aba61 (patch)
treeb775cc1ed9b56b0744fa9e4b0cce447a9a4ed628 /net/rxrpc
parentfade56410c22cacafb1be9f911a0afd3701d8366 (diff)
downloadlinux-3f2db250099f46988088800052cdf2332c7aba61.tar.bz2
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: b9a24bb76bf6 ("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>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions