summaryrefslogtreecommitdiff
path: root/lib/zstd
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-01-08 18:44:24 +0300
committerAlex Williamson <alex.williamson@redhat.com>2023-01-23 21:26:29 +0300
commit0886196ca8810c5b1f5097b71c4bc0df40b10208 (patch)
treece3b10ea0f808d9a692bcc057b18fd84031fdd97 /lib/zstd
parent83ff6095ecf8bafd095a921a2267227519f510f8 (diff)
downloadlinux-0886196ca8810c5b1f5097b71c4bc0df40b10208.tar.xz
vfio: Use GFP_KERNEL_ACCOUNT for userspace persistent allocations
Use GFP_KERNEL_ACCOUNT for userspace persistent allocations. The GFP_KERNEL_ACCOUNT option lets the memory allocator know that this is untrusted allocation triggered from userspace and should be a subject of kmem accounting, and as such it is controlled by the cgroup mechanism. The way to find the relevant allocations was for example to look at the close_device function and trace back all the kfrees to their allocations. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20230108154427.32609-4-yishaih@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'lib/zstd')
0 files changed, 0 insertions, 0 deletions