Article View: linux.kernel.netdev
Article #25568Re: [PATCH net v3] xsk: keep the charged page count when pinning a umem fails
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 02:40
Date: Wed, 02 Dec 2026 02:40
28 lines
9104 bytes
9104 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Thu, 26 Nov 2026 11:07:42 +0900 you wrote:
> xdp_umem_reg() charges umem->npgs pages to the user's locked_vm before
> it pins the umem. When pin_user_pages() pins fewer pages than asked,
> xdp_umem_pin_pages() overwrites umem->npgs with the pinned count so that
> xdp_umem_unpin_pages() releases only those, and xdp_umem_unaccount_pages()
> then gives back only that many. The rest of the charge is never returned.
>
> A short pin happens when the tail of the umem area is not mapped. With
> RLIMIT_MEMLOCK at 16 pages, three registrations of an 8-page area whose
> last 4 pages are unmapped leave the user able to register only 4 pages,
> for as long as the user has a process running.
>
> [...]
Here is the summary with links:
- [net,v3] xsk: keep the charged page count when pinning a umem fails
https://git.kernel.org/netdev/net/c/1bff9e356e99
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179617921324.1132066.12552392193881900827.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375493-linux-kernel-netdev=dewy.ruReferences:
<179562059260.3381969.13546710565371160648@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375493-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] xsk: keep the charged page count when pinning a umem fails Date: Wed, 02 Dec 2026 02:40:13 +0000 Organization: Usenet Network Message-ID: <179617921324.1132066.12552392193881900827.git-patchwork-notify@kernel.org> References: <179562059260.3381969.13546710565371160648@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1870527"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:dAQ5AGyEnorkdT5e4QKaFXLvyU0= sha256:0yk97mli+jcFUY3v1+F5ErtKna0e8CrbqrG+S08zqis= sha1:iUAkqMgqtEQstnhXYJ7bjydrknw= sha256:dM5TgQjfkzAHSBT6UwjUXW71f2TzcirEAsoyyf0xUXE= 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 C5DBE11752C; Wed, 2 Dec 2026 05:41:58 +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 HuSRf_L1IY-E; Wed, 2 Dec 2026 05:41:55 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375493-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 397B81174BB; Wed, 2 Dec 2026 05:41:47 +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 E6D4D2CC75; Wed, 2 Dec 2026 02:41:19 +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=1796179221; b=eqTzePd2UE+yZPEvp8LrDeu3wl0f7jJ0gwzAMuEO6j8sjlkMd8Cr9gZn6vKwlQZ8UAx6 CqmfMKEKwhSlZKpzci/9444rIMBXFANE0jBkXV2ERfYVQwbIXnHEre2ictFf3yOkhNEK4 45S0yUwmR4GL7ATd3mQRvoBNwfdZF/1aD+pSCeZS+ibHtVCNvknEsw8Qytr90XYFwEMsg fiP+oOvvuWVOwDgS1MmT4rhCPERmqXHGD93I/i0mIGwPHzAx3hliLGJyqFtB1A0B1ZVfJ rmTtywtZNZG9qy1Fzb3XVu5w+I7j/mQ7otSy8yhxG3yYJCgk8U/psxJHoWmo4dnUbcw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179221; 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=3tE2XkEP8NxlSCzHWZKWgYZplBXVOKMOUVMxMMmqJUI=; b=4ulAzGYMB1Qk6riGCBM13N2SNVue29DebN24qp0kydbVY791xf3v89RgWeHjL+8xFQEg JaurbwP9sK/owcYDKL+Myy5ZqpwBDdFSZyu3P0cSiwmnFxeyDTic8w5phJKqhxXly6zP+ NSHpsMSjmS+nHogvnXl6K3hssjoOSn9GeO/v6xIsRX0NJs9OHi98LmUGKKR7kzF7Gj4z/ 2Rf5H0yuKBQMZnHkl0Fqf1zzq2dhTN42nUTgKi31n8ZfBuxw4RPX54Z/w6CLEOZ9d8uS6 x1YgV2Y0UuJArsPN2b07fiaEv1WC4uZSqI+ftsffWiDnnh3ueLHkHB93GjinqFrfN3Q== 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=N0EVk9EV; 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 12E11606CCE0; Wed, 2 Dec 2026 02:40:21 +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=N0EVk9EV 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=1796179215; b=Ha0XWDSyLHgKdzmE+g4NysNOSA0ra9yI6laMR4L6nJRInSegXxhpVToR/OLdSZr//IzU lf1SRmoWeC4hnekAtG+A8lr2x8NifSalF3ygD47LDs4D4jdxM/7F8rcmgQ/hIHRwieIwx o2yTA1bHIe6arkdRzX3rLiqOCw6TxLk7cOOmp+7qj48ai/gmSd4vvUGAOU4ni/UZ+YSsr 0iOvy/MN9D4dI1ilSs/8jkR8rcZgtoJXr8AHZa9mmvSysMjdBAiW/lq7v/R7wH7bb/kE9 4PPu+yACURMMoofkZbNEmTqxiSErWGA/FjVmBpZQZNUUVLcrdAIqFffHjHUOEyYK9kA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179215; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=3tE2XkEP8NxlSCzHWZKWgYZplBXVOKMOUVMxMMmqJUI=; b=VKsclIQVKwnCKwJS3kX45PNRv0iv50oNTk8J0OVBOfR3Ho4ZNXDNkUVM+qLIuJOYNABA Tc7QW9amuyj0/HGIOdEdaW8YVPZR4j97CiXkpUNnQoF6wc9cTPUGGat1bz922OwFO+eLs LfnOWvxaOs6z2n69Nfjtner4EJVUU2gEoHv2dBnezoz3B/yBl5DrmpH0dPfVWn1Ghu+KC a5oy7h1dSsp7WyshujHbL0FZsFEfxu06iAsqqV66LvSCSQ09vYVK6iIaC5hSM0yyqOA4D DdWOSlMeEQzXMoqUTA7nUtFG7oxrIbOoWTWhqh1Cop3r5+A6EfuJKmOxm858Up2QBFA== 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=N0EVk9EV; 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 34199606B7F7; Wed, 2 Dec 2026 02:40:15 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFED11F0278E; Wed, 2 Dec 2026 02:40:14 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796179214; bh=3tE2XkEP8NxlSCzHWZKWgYZplBXVOKMOUVMxMMmqJUI=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=N0EVk9EVXETv/x1tr0gNTpAs110QkekOGKYA0hZJp6wCFaj+vjP9fJaDjAvDHruw9 rpQ09UL8u6ikKRrkAZG4wa+Bq71G/YnfLS4P/8APj5sndFp4SoSBjuWhi7Y49p8flc vVaNB5CwTPn97FYcpTk0pMFyq+r57TMcCFW5hRWBEH63f4S8IdxPPxWplawIq3nxHO mtvse5JuADrEfVa2EDPrqmGLsdxgF2CuDpE9Yzv4ZKhzJntJNyFSoa7uPr9DtKKAqd UQpLdbRav+LODqmicqhkJOcWRF3Wje6lZ1VD5r1us05OUzGHZKtczhqK7IVFEd8l4B TZFZs8wNonE8g== 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 AE74B380821E; Wed, 2 Dec 2026 02:40:14 +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: <179562059260.3381969.13546710565371160648@gmail.com> X-Cc: magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, sdf@fomichev.me, bjorn@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, netdev@vger.kernel.org, bpf@vger.kernel.org