netdevsim: Avoid allocation warnings triggered from user space
stable inclusion from stable-v5.10.137 commit 397e52dec16839b1296a350d8a34f898f284e061 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=397e52dec16839b1296a350d8a34f898f284e061 -------------------------------- [ Upstream commit d0b80a9e ] 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: 395cacb5 ("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 Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment