Re: [PATCH net v2] net: tun: fix bugs for oversize packet when napi frags enabled

From: patchwork-bot+netdevbpf
Date: Mon Oct 31 2022 - 23:20:52 EST


Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Sat, 29 Oct 2022 17:41:01 +0800 you wrote:
> Recently, we got two syzkaller problems because of oversize packet
> when napi frags enabled.
>
> One of the problems is because the first seg size of the iov_iter
> from user space is very big, it is 2147479538 which is bigger than
> the threshold value for bail out early in __alloc_pages(). And
> skb->pfmemalloc is true, __kmalloc_reserve() would use pfmemalloc
> reserves without __GFP_NOWARN flag. Thus we got a warning as following:
>
> [...]

Here is the summary with links:
- [net,v2] net: tun: fix bugs for oversize packet when napi frags enabled
https://git.kernel.org/netdev/net/c/363a5328f4b0

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html