Article View: linux.kernel.netdev
Article #22275Re: [PATCH net v7] tun: bound the NAPI receive queue
From: patchwork-bot+netdevbpf
Date: Wed, 25 Nov 2026 03:00
Date: Wed, 25 Nov 2026 03:00
27 lines
9112 bytes
9112 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Thu, 19 Nov 2026 16:30:55 +0100 you wrote:
> With IFF_NAPI, tun_get_user() queues every written packet for NAPI on
> an unbounded list. When the poll runs asynchronously (threaded NAPI or
> ksoftirqd) and is slower than the writer, the queue grows until the
> system runs out of memory. An unprivileged user can do this from its own
> user and network namespaces, and the queued skbs are not charged to its
> memcg: in a test VM, a uid 1000 process limited to 128 MB caused a
> global OOM in ~6 seconds. The socket send buffer does not help: tun sets
> it to INT_MAX by default, the build_skb() path is only used while it is
> INT_MAX, and the XDP batch path never checks it.
>
> [...]
Here is the summary with links:
- [net,v7] tun: bound the NAPI receive queue
https://git.kernel.org/netdev/net/c/cc7fe6e74173
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179557560477.185420.5263589507960471697.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371003-linux-kernel-netdev=dewy.ruReferences:
<20261119153056.353156-1-antonio@mandelbit.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371003-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v7] tun: bound the NAPI receive queue Date: Wed, 25 Nov 2026 03:00:04 +0000 Organization: Usenet Network Message-ID: <179557560477.185420.5263589507960471697.git-patchwork-notify@kernel.org> References: <20261119153056.353156-1-antonio@mandelbit.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="96419"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:k+LIq1gBvdEnTqcOO0QYnIkhktM= sha256:ArSLrL5yt1BJh0ttX2OOySGaH+SLxtRcPeQPRoKtwj0= sha1:WmmQP5tgH0u8Mu4EG1g9cVR20n8= sha256:BLIYhhblnGErgdzZuZiPRaQD5BynEQm1wSNTHNg5yT4= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id C52EE125E3B; Wed, 25 Nov 2026 06:00:27 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zi7o15mXpOBY; Wed, 25 Nov 2026 06:00:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371003-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id CA1D1125E35; Wed, 25 Nov 2026 06:00:14 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 67880380C2; Wed, 25 Nov 2026 03:00:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795575612; b=jzXjnv0qkVcJHaMKMYdfd3f1RCE1EF1p0f7k5wN8W4pzj9FTqYW4muWpQ++z8k+T9ljE mDCpihxjZYBbpXsZEHWM9jdu8o+hh9yWvnWF9ffT4/mjYIKYsbyb+nakvPj9NTMqF14yH pgPFzl2gqnq+6feDQ+EhZlxPuxKeYfWBG86eO8WP2UiOr1FAfENasPb1Pt6Bnj8k9lTwS IQ+gD198euIuvwdpLVzJ8WeorvOsfsefeCnrqYbmiFegTz9hXU9mcEKGhL+yAhYwTNkss X5/evbfkaJnpLA0Xr5t4sndBqmq/9JyhPTAEpUsOjyznJiplaPdfsQkPfGhH580dD/Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795575612; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=iNklBZQrLHYGAqU2RpzMvGdWtQQExSe7/qvrXqs5xNk=; b=c+qxUTLKnwNNqgfrg37RI1BnHxsQk9m8I7SSJgM4OV+Nnm3Tsq4cvoU5zXEHnwDx85/E SGXlU4iIIfrCswDV9XtLwrEVer3QGrLW28HHTettI/zj1/vWAT3Ujaqu9UEx1xlMpjn8q 6YcdPJLlgzghJc5vnElo+AtUEykwRbcwlBz84MiwvmabNS+ZLKxihWvAKsrmTOVgXZIpG 9EVZTxbPrmgt08U6kCCeZioeQmJlunWpUOOy/LmKqeyJSV+0BWmvrA61hDinmss5MPUQc TiU7ErqiDE5e+r6FX/a2fc3KbwuwSWzVjlMglOwsSEN1HFiXaem4PyYRTnKx7TjoDwA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EdN4Lxkw; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B230606A332; Wed, 25 Nov 2026 03:00:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EdN4Lxkw X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795575606; b=zFJRLhRvq0r+LsUQC/+D1du1hyGLzcZiOgorOmXcDBT3qdunLwsdDAt3oBPsXpuDxWEX r/OfsqcJ5wxHpHL49i3F84vBYzDrqutmoqICRy5p7kfkP420ZR54fypo0+fxoJB7rNtCg BjzDBCSsC7I0sOC3YEVy/UoDPXvBGuARnF/DRnhk6P3qbk43N+M5aOK8ANeDUx03I0iL7 n583EW7RST38uGyVywQcFqztrcHaAIEOTYZmqvhF82MlTVMGH0wmMvqdajmqUnKYXYL1h MiS9eavAgpEFeZ+VUTeRlHKG0IXGzv46e6Lksv0omOEpISXhALBq5ArFalokLaJeM8A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795575606; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=iNklBZQrLHYGAqU2RpzMvGdWtQQExSe7/qvrXqs5xNk=; b=P03OEGaP0idNce1wkB/TDf1V87elqu1U/8OY6z4UtunoVnJnJ+MtdOHzVHJP5JKkodZz k1Ia5uMTh+EDYttEZ1OAjp/ApGTMt//UcbKyNUK/0JsvPJG+X2p0U8nwNY09c7yjeBQ4n qRwCA8Zs8VpVYG7cdWTNDepgKRtjnd5um7d5R5QDj9+H+UGkyYDfsweP9YFlUki6Ym7CM jV1Ug0p4hPIMN0Q3pDcrBZXM1xwwkSDHOjWrxC5TFbeCCqHz+2RvtUAsOMFWRkI6qQeqr 6qQpnOAU6bRJmEv1xoF5qAcPWkxUfoBw1wpeiEbakF6rEba1QFC/5SMFaIflalip92Q== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EdN4Lxkw; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9D8A606A327; Wed, 25 Nov 2026 03:00:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 434051F000C4; Wed, 25 Nov 2026 03:00:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795575606; bh=iNklBZQrLHYGAqU2RpzMvGdWtQQExSe7/qvrXqs5xNk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=EdN4LxkwehIXVwzDyk+waCsirGjFWxfQDyUjxTugKiTk3t8wJ5SlSPJGs700sJ2km NNOyIU2Xpic4Amx+rkqJomUo6QnaD7cSooxxVJsaxT2kQbWbny8dbFw1fQBLY63S9C n9QSuchTj3Au+/yM3fVyDsag86y0Cl6MxxIpQB3L45kBfOAfx4wJOcZyLKU3nejZTO cXX8s4wiXQa5CFM8gCHjz6skHibdHZaNWKN9m/g5SjD9gcA4EKWD7R9sLGMqijd0gN ZPqK17+TMEV1xwM+2NlvhDl+1GU/G0FTfHeMFu0BwEoHM5dXNSUKa5fc1X768ZAES2 ogkpSIIyuAQSw== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 3A3793808209; Wed, 25 Nov 2026 03:00:06 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261119153056.353156-1-antonio@mandelbit.com> X-Cc: willemdebruijn.kernel@gmail.com, jasowangio@gmail.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, mst@redhat.com, eperezma@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, maheshb@google.com, peterpenkov96@gmail.com, netdev@vger.kernel.org, virtualization@lists.linux.dev, bpf@vger.kernel.org