On Thu Sep 4, 2025 at 4:16 AM CEST, Dave Airlie wrote: > From: Dave Airlie <airl...@redhat.com> > > While discussing cgroups we noticed a problem where you could export > a BO to a dma-buf without having it ever being backed or accounted for. > > This meant in low memory situations or eventually with cgroups, a > lower privledged process might cause the compositor to try and allocate > a lot of memory on it's behalf and this could fail. At least make > sure the exporter has managed to allocate the RAM at least once > before exporting the object.
The below use of TTM_PL_FLAG_MEMCG suggests that this goes on top of your cgroup patch series. However, wouldn't a similar change make sense regardless?