diff options
| author | Eric Chanudet <echanude@redhat.com> | 2026-01-16 15:05:39 -0500 |
|---|---|---|
| committer | Sumit Semwal <sumit.semwal@linaro.org> | 2026-01-19 19:09:52 +0530 |
| commit | 3c227be9065902f496a748068e0b2b6bd6f3f0a6 (patch) | |
| tree | 9814186b00a0d6862af955e8bbacac36d5312877 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | bb33013bdd238129c8f8f29ed2e9bbdfa8caa643 (diff) | |
dma-buf: system_heap: account for system heap allocation in memcg
The system dma-buf heap lets userspace allocate buffers from the page
allocator. However, these allocations are not accounted for in memcg,
allowing processes to escape limits that may be configured.
Pass __GFP_ACCOUNT for system heap allocations, based on the
dma_heap.mem_accounting parameter, to use memcg and account for them.
Signed-off-by: Eric Chanudet <echanude@redhat.com>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patch.msgid.link/20260116-dmabuf-heap-system-memcg-v3-2-ecc6b62cc446@redhat.com
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
