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)
commitd0b80a9edb1a029ff913e81b47540e57ad034329
tree9aa513f4c706e65fc6e855ca86c152d8bf05e99d
parent3b317abc71598bda8ff9a9c483ad8ae167b18382
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: 395cacb5f1a0 ("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