RE: [PATCH v2] drm/scheduler: Avoid accessing freed bad job.

2019-11-19 Thread Deng, Emily
Tested-by: Emily Deng >-Original Message- >From: Andrey Grodzovsky >Sent: Tuesday, November 19, 2019 1:52 AM >Cc: dri-de...@lists.freedesktop.org; amd-gfx@lists.freedesktop.org; Koenig, >Christian ; Deng, Emily >; Grodzovsky, Andrey > >Subject: [PATCH v2] drm/scheduler: Avoid accessing f

Re: [PATCH v2] drm/scheduler: Avoid accessing freed bad job.

2019-11-18 Thread Christian König
Am 18.11.19 um 18:52 schrieb Andrey Grodzovsky: Problem: Due to a race between drm_sched_cleanup_jobs in sched thread and drm_sched_job_timedout in timeout work there is a possiblity that bad job was already freed while still being accessed from the timeout thread. Fix: Instead of just peeking a