On Fri, Jan 16, 2026 at 12:06 PM Eric Chanudet echanude@redhat.com wrote:
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