Re: [Intel-gfx] [PATCH] drm/i915: Avoid potential vm use-after-free

2023-01-27 Thread Tvrtko Ursulin
On 27/01/2023 13:10, Matthew Auld wrote: On Mon, 23 Jan 2023 at 16:57, Tvrtko Ursulin wrote: + some more people based on e1a7ab4fca0c On 19/01/2023 17:32, Rob Clark wrote: From: Rob Clark Adding the vm to the vm_xa table makes it visible to userspace, which could try to race with us to

Re: [Intel-gfx] [PATCH] drm/i915: Avoid potential vm use-after-free

2023-01-27 Thread Matthew Auld
On Mon, 23 Jan 2023 at 16:57, Tvrtko Ursulin wrote: > > > + some more people based on e1a7ab4fca0c > > On 19/01/2023 17:32, Rob Clark wrote: > > From: Rob Clark > > > > Adding the vm to the vm_xa table makes it visible to userspace, which > > could try to race with us to close the vm. So we

Re: [Intel-gfx] [PATCH] drm/i915: Avoid potential vm use-after-free

2023-01-23 Thread Tvrtko Ursulin
+ some more people based on e1a7ab4fca0c On 19/01/2023 17:32, Rob Clark wrote: From: Rob Clark Adding the vm to the vm_xa table makes it visible to userspace, which could try to race with us to close the vm. So we need to take our extra reference before putting it in the table.