Re: [Intel-gfx] [PATCH] drm/i915: Avoid dereferencing a dead context

2020-04-29 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-04-29 14:42:44) > > On 28/04/2020 10:02, Chris Wilson wrote: > > Once the intel_context is closed, the GEM context may be freed and so > > the link from intel_context.gem_context is invalid. > > > > <3>[ 219.782944] BUG: KASAN: use-after-free in > > intel_engine_cor

Re: [Intel-gfx] [PATCH] drm/i915: Avoid dereferencing a dead context

2020-04-29 Thread Tvrtko Ursulin
On 28/04/2020 10:02, Chris Wilson wrote: Once the intel_context is closed, the GEM context may be freed and so the link from intel_context.gem_context is invalid. <3>[ 219.782944] BUG: KASAN: use-after-free in intel_engine_coredump_alloc+0x1bc3/0x2250 [i915] <3>[ 219.782996] Read of size 8

Re: [Intel-gfx] [PATCH] drm/i915: Avoid dereferencing a dead context

2020-04-28 Thread Abodunrin, Akeem G
> -Original Message- > From: Intel-gfx On Behalf Of Chris > Wilson > Sent: Tuesday, April 28, 2020 2:03 AM > To: intel-gfx@lists.freedesktop.org > Cc: Chris Wilson > Subject: [Intel-gfx] [PATCH] drm/i915: Avoid dereferencing a dead context > > Once the i

[Intel-gfx] [PATCH] drm/i915: Avoid dereferencing a dead context

2020-04-28 Thread Chris Wilson
Once the intel_context is closed, the GEM context may be freed and so the link from intel_context.gem_context is invalid. <3>[ 219.782944] BUG: KASAN: use-after-free in intel_engine_coredump_alloc+0x1bc3/0x2250 [i915] <3>[ 219.782996] Read of size 8 at addr 8881d7dff0b8 by task kworker/0:1/