[lkml]   [2021]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net: sched: fix warning in tcindex_alloc_perfect_hash
On Fri, Jun 25, 2021 at 1:23 PM Pavel Skripkin <> 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:
> Signed-off-by: Pavel Skripkin <>

Looks reasonable.

Acked-by: Cong Wang <>


 \ /
  Last update: 2021-06-27 20:23    [W:0.036 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site