Re: [PATCH v3] dma-buf/heaps: system_heap: avoid too much allocation
From: Michal Hocko
Date: Wed Apr 12 2023 - 07:51:26 EST
On Wed 12-04-23 20:37:59, Jaewon Kim wrote:
> Limiting dmabuf memory may be required. But I think there
> is no nice and reasonable way so far.
If that is really the way then the patch doesn't really add a big
benefit. It doesn't really prevent OOMs (or panics due to OOM) as the
allocator still allows to consume arbitrary amount of memory. The
provided check is not able to tell between buggy and legit calls.
--
Michal Hocko
SUSE Labs