]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Avoid allocation warnings triggered from user space
authorJakub Kicinski <kuba@kernel.org>
Tue, 26 Jul 2022 21:36:05 +0000 (14:36 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 29 Jul 2022 21:57:26 +0000 (14:57 -0700)
commitc839ad3b739800a5de91e1b7fb2bf53064a3aff3
tree9aa513f4c706e65fc6e855ca86c152d8bf05e99d
parentc27d5f47b65c6a1fe404fb1b28ba777465ee2733
netdevsim: Avoid allocation warnings triggered from user space

We need to suppress warnings from sily map sizes. Also switch
from GFP_USER to GFP_KERNEL_ACCOUNT, I'm pretty sure I misunderstood
the flags when writing this code.

Fixes: c80225d11804 ("netdevsim: bpf: support fake map offload")
Reported-by: syzbot+ad24705d3fd6463b18c6@syzkaller.appspotmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220726213605.154204-1-kuba@kernel.org
drivers/net/netdevsim/bpf.c