Re: [PATCH 32/64] drm/vc4: dsi: Fix the driver structure lifetime

2022-06-20 Thread Thomas Zimmermann
Am 20.06.22 um 12:55 schrieb Thomas Zimmermann: Am 10.06.22 um 11:28 schrieb Maxime Ripard: The vc4_dsi structure is currently allocated through a device-managed allocation. This can lead to use-after-free issues however in the unbinding path since the DRM entities will stick around, but th

Re: [PATCH 32/64] drm/vc4: dsi: Fix the driver structure lifetime

2022-06-20 Thread Thomas Zimmermann
Am 10.06.22 um 11:28 schrieb Maxime Ripard: The vc4_dsi structure is currently allocated through a device-managed allocation. This can lead to use-after-free issues however in the unbinding path since the DRM entities will stick around, but the underlying structure has been freed. However, we

[PATCH 32/64] drm/vc4: dsi: Fix the driver structure lifetime

2022-06-10 Thread Maxime Ripard
The vc4_dsi structure is currently allocated through a device-managed allocation. This can lead to use-after-free issues however in the unbinding path since the DRM entities will stick around, but the underlying structure has been freed. However, we can't just fix it by using a DRM-managed allocat