diff options
| author | Pavel Skripkin <[email protected]> | 2021-06-25 20:23:48 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-28 20:03:29 +0000 |
| commit | 3f2db250099f46988088800052cdf2332c7aba61 (patch) | |
| tree | b775cc1ed9b56b0744fa9e4b0cce447a9a4ed628 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | net: lwtunnel: handle MTU calculation in forwading (diff) | |
| download | kernel-3f2db250099f46988088800052cdf2332c7aba61.tar.gz kernel-3f2db250099f46988088800052cdf2332c7aba61.zip | |
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: [email protected]
Signed-off-by: Pavel Skripkin <[email protected]>
Acked-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
