Re: [PATCH] dma-buf/dma-resv: check if the new fence is really later

2022-08-24 Thread Jason Ekstrand
On Wed, Aug 10, 2022 at 12:26 PM Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > Previously when we added a fence to a dma_resv object we always > assumed the the newer than all the existing fences. > > With Jason's work to add an UAPI to explicit export/import that's not > necessary

[PATCH] dma-buf/dma-resv: check if the new fence is really later

2022-08-10 Thread Christian König
Previously when we added a fence to a dma_resv object we always assumed the the newer than all the existing fences. With Jason's work to add an UAPI to explicit export/import that's not necessary the case any more. So without this check we would allow userspace to force the kernel into an use afte