Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn <will…@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!