Re: [PATCH] drm/scheduler: Fix UAF race in drm_sched_entity_push_job()

2023-04-05 Thread Luben Tuikov
On 2023-04-05 12:37, Asahi Lina wrote: > After a job is pushed into the queue, it is owned by the scheduler core > and may be freed at any time, so we can't write nor read the submit > timestamp after that point. > > Fixes oopses observed with the drm/asahi driver, found with kASAN. > > Signed-of

[PATCH] drm/scheduler: Fix UAF race in drm_sched_entity_push_job()

2023-04-05 Thread Asahi Lina
After a job is pushed into the queue, it is owned by the scheduler core and may be freed at any time, so we can't write nor read the submit timestamp after that point. Fixes oopses observed with the drm/asahi driver, found with kASAN. Signed-off-by: Asahi Lina --- drivers/gpu/drm/scheduler/sche