]> 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)
commitb15fcab937d4f4ba8c4175b199f524a432b0cefe
tree9aa513f4c706e65fc6e855ca86c152d8bf05e99d
parentaca59f8c064eb85cf8e6775d2d0fb8cb32a17d1c
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: c9b65671a324 ("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