Re: [PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-08-10 Thread Daniel Vetter
On Tue, Aug 10, 2021 at 01:54:41PM +0530, Sumit Semwal wrote: > Hi Hridya, > > Apologies for the delay in responding. > > On Wed, 4 Aug 2021 at 03:09, Hridya Valsaraju wrote: > > > On Mon, Aug 2, 2021 at 7:18 PM John Stultz wrote: > > > > > > On Thu, Jul 22, 2021 at 12:07 PM Hridya Valsaraju

Re: [PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-08-10 Thread Sumit Semwal
Hi Hridya, Apologies for the delay in responding; On Wed, 4 Aug 2021 at 03:09, Hridya Valsaraju wrote: > > On Mon, Aug 2, 2021 at 7:18 PM John Stultz wrote: > > > > On Thu, Jul 22, 2021 at 12:07 PM Hridya Valsaraju wrote: > > > This patch limits the size of total memory that can be requested

Re: [PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-08-10 Thread Sumit Semwal
Hi Hridya, Apologies for the delay in responding. On Wed, 4 Aug 2021 at 03:09, Hridya Valsaraju wrote: > On Mon, Aug 2, 2021 at 7:18 PM John Stultz wrote: > > > > On Thu, Jul 22, 2021 at 12:07 PM Hridya Valsaraju > wrote: > > > This patch limits the size of total memory that can be requested

Re: [PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-08-03 Thread Hridya Valsaraju
On Mon, Aug 2, 2021 at 7:18 PM John Stultz wrote: > > On Thu, Jul 22, 2021 at 12:07 PM Hridya Valsaraju wrote: > > This patch limits the size of total memory that can be requested in a > > single allocation from the system heap. This would prevent a > > buggy/malicious client from depleting

Re: [PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-08-02 Thread John Stultz
On Thu, Jul 22, 2021 at 12:07 PM Hridya Valsaraju wrote: > This patch limits the size of total memory that can be requested in a > single allocation from the system heap. This would prevent a > buggy/malicious client from depleting system memory by requesting for an > extremely large allocation

[PATCH] dma-buf: heaps: Set allocation limit for system heap

2021-07-22 Thread Hridya Valsaraju
This patch limits the size of total memory that can be requested in a single allocation from the system heap. This would prevent a buggy/malicious client from depleting system memory by requesting for an extremely large allocation which might destabilize the system. The limit is set to half the