https://bugzilla.kernel.org/show_bug.cgi?id=199425
--- Comment #13 from Johannes Hirte (johannes.hirte@datenkhaos.de) --- (In reply to Harry Wentland from comment #11)
Should be fixed by https://patchwork.freedesktop.org/patch/230831/ which is merged into amd-staging-drm-next
Just tested with 4.18-rc6 that has this patch applied. Still getting the use-after-free. Looking at this patch, this seems to fix another bug:
BUG: KASAN: use-after-free in amdgpu_dm_atomic_commit_tail.cold.50+0x13d/0x15a [amdgpu]
whereas this one is:
BUG: KASAN: use-after-free in drm_atomic_helper_wait_for_flip_done+0x212/0x270
I'll try the patch from Daniel Vetter now.