diff options
| author | Yishai Hadas <yishaih@nvidia.com> | 2023-01-08 17:44:25 +0200 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2023-01-23 11:26:30 -0700 |
| commit | cb8285b89f2cf1db866f5c5aae5ce8db7aef41dd (patch) | |
| tree | 5ad7ff08c405dcb3c9e6ccb49a1762d297630099 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | 0886196ca8810c5b1f5097b71c4bc0df40b10208 (diff) | |
vfio/hisi: 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.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230108154427.32609-5-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
