I tried to see what happened with xe_module_unload --r reload on a fully running system, and came across these bugs in the kernel. Even after these fixes I still see a hang when reloading, related to cgroups, so likely some more fixes are needed to address those.
Should this patch have a fixes tag or cc stable patch? Test-with: https://patchwork.freedesktop.org/series/162133/ Maarten Lankhorst (1): drm: Fix use-after-free on framebuffers and property blobs when calling drm_dev_unplug drivers/gpu/drm/drm_crtc_internal.h | 4 +++- drivers/gpu/drm/drm_drv.c | 3 +++ drivers/gpu/drm/drm_file.c | 5 ++++- drivers/gpu/drm/drm_framebuffer.c | 25 +++++++++++++++++++++++++ drivers/gpu/drm/drm_mode_config.c | 8 ++++++++ drivers/gpu/drm/drm_property.c | 20 ++++++++++++++++++++ 6 files changed, 63 insertions(+), 2 deletions(-) -- 2.51.0
