[Bug 198985] BUG: KASAN: use-after-free in amdgpu_job_free_cb+0x26/0xb0 [amdgpu]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=198985

Christian König (christian.koenig@xxxxxxx) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christian.koenig@xxxxxxx

--- Comment #2 from Christian König (christian.koenig@xxxxxxx) ---
That is fixed by:

commit d1f6dc1a9a106a73510181cfad9b4a7a0b140990
Author: Andrey Grodzovsky <Andrey.Grodzovsky@xxxxxxx>
Date:   Thu Oct 19 14:29:46 2017 -0400

    drm/amdgpu: Avoid accessing job->entity after the job is scheduled.

    Bug: amdgpu_job_free_cb was accessing s_job->s_entity when the allocated
    amdgpu_ctx (and the entity inside it) were already deallocated from
    amdgpu_cs_parser_fini.

    Fix: Save job's priority on it's creation instead of accessing it from
    s_entity later on.

    Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@xxxxxxx>
    Reviewed-by: Andres Rodriguez <andresx7@xxxxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>


Not sure why that didn't ended up in 4.15.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux