121.189757 < 0.000171>] amdgpu 0000:01:00.0: GPU reset(5) succeeded! passed[ 121.189894 < 0.000137>] ================================================================== [ 121.189951 < 0.000057>] BUG: KASAN: use-after-free in drm_sched_job_timedout+0x7a/0xf0 [gpu_sched] Run Summary: Type Total Ran Passed Failed Inactive suites 8 0 n/a 0 0 tests 39 1 1 0 0 asserts 8 8 8 0 n/a Elapsed time = 0.001 seconds[ 121.189956 < 0.000005>] Read of size 8 at addr ffff88840389a8b0 by task kworker/2:2/1140 [ 121.189969 < 0.000013>] CPU: 2 PID: 1140 Comm: kworker/2:2 Tainted: G OE 5.1.0-rc2-misc+ #1 [ 121.189972 < 0.000003>] Hardware name: System manufacturer System Product Name/Z170-PRO, BIOS 1902 06/27/2016 [ 121.189977 < 0.000005>] Workqueue: events drm_sched_job_timedout [gpu_sched] [ 121.189980 < 0.000003>] Call Trace: [ 121.189985 < 0.000005>] dump_stack+0x9b/0xf5 [ 121.189992 < 0.000007>] print_address_description+0x70/0x290 [ 121.189997 < 0.000005>] ? drm_sched_job_timedout+0x7a/0xf0 [gpu_sched] [ 121.190002 < 0.000005>] kasan_report+0x134/0x191 [ 121.190006 < 0.000004>] ? drm_sched_job_timedout+0x7a/0xf0 [gpu_sched] [ 121.190014 < 0.000008>] ? drm_sched_job_timedout+0x7a/0xf0 [gpu_sched] [ 121.190019 < 0.000005>] __asan_load8+0x54/0x90 [ 121.190024 < 0.000005>] drm_sched_job_timedout+0x7a/0xf0 [gpu_sched] [ 121.190034 < 0.000010>] process_one_work+0x466/0xb00 [ 121.190046 < 0.000012>] ? queue_work_node+0x180/0x180 [ 121.190061 < 0.000015>] worker_thread+0x83/0x6c0 [ 121.190075 < 0.000014>] kthread+0x1a9/0x1f0 [ 121.190079 < 0.000004>] ? rescuer_thread+0x760/0x760 [ 121.190081 < 0.000002>] ? kthread_cancel_delayed_work_sync+0x20/0x20 [ 121.190088 < 0.000007>] ret_from_fork+0x3a/0x50 [ 121.190105 < 0.000017>] Allocated by task 1421: [ 121.190110 < 0.000005>] save_stack+0x46/0xd0 [ 121.190112 < 0.000002>] __kasan_kmalloc+0xab/0xe0 [ 121.190115 < 0.000003>] kasan_kmalloc+0xf/0x20 [ 121.190117 < 0.000002>] __kmalloc+0x167/0x390 [ 121.190210 < 0.000093>] amdgpu_job_alloc+0x47/0x170 [amdgpu] [ 121.190289 < 0.000079>] amdgpu_cs_ioctl+0x9bd/0x2e70 [amdgpu] [ 121.190312 < 0.000023>] drm_ioctl_kernel+0x17e/0x1d0 [drm] [ 121.190334 < 0.000022>] drm_ioctl+0x5e1/0x640 [drm] [ 121.190409 < 0.000075>] amdgpu_drm_ioctl+0x78/0xd0 [amdgpu] [ 121.190413 < 0.000004>] do_vfs_ioctl+0x152/0xa30 [ 121.190415 < 0.000002>] ksys_ioctl+0x6d/0x80 [ 121.190418 < 0.000003>] __x64_sys_ioctl+0x43/0x50 [ 121.190425 < 0.000007>] do_syscall_64+0x7d/0x240 [ 121.190430 < 0.000005>] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 121.190440 < 0.000010>] Freed by task 1242: [ 121.190448 < 0.000008>] save_stack+0x46/0xd0 [ 121.190453 < 0.000005>] __kasan_slab_free+0x13c/0x1a0 [ 121.190458 < 0.000005>] kasan_slab_free+0xe/0x10 [ 121.190462 < 0.000004>] kfree+0xfa/0x2e0 [ 121.190584 < 0.000122>] amdgpu_job_free_cb+0x7f/0x90 [amdgpu] [ 121.190589 < 0.000005>] drm_sched_cleanup_jobs.part.10+0xcf/0x1a0 [gpu_sched] [ 121.190594 < 0.000005>] drm_sched_main+0x38a/0x430 [gpu_sched] [ 121.190596 < 0.000002>] kthread+0x1a9/0x1f0 [ 121.190599 < 0.000003>] ret_from_fork+0x3a/0x50