Re: [syzbot] [media?] WARNING in uvc_status_unregister
From: Ricardo Ribalda
Date: Tue Oct 22 2024 - 04:42:48 EST
Hi Laurent
On Sun, 20 Oct 2024 at 18:03, Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
> > media: uvcvideo: Avoid race condition during unregister
>
> It looks like the issue comes from the fact that uvc_status_unregister()
> gets called from the error path in uvc_probe() through
> uvc_unregister_video(), likely for errors occuring before
> uvc_status_init() is called. uvc_status_unregister() should return
> immediately in that case. Ricardo, do you plan to look at that?
>
Just sent https://lore.kernel.org/linux-media/20241022-race-unreg-v1-1-2212f364d9de@xxxxxxxxxxxx/T/#u
to fix this issue
We probably want to queue:
https://lore.kernel.org/linux-media/20241022-order_status-v1-1-3904fafca340@xxxxxxxxxxxx/T/#u
at the same time
But I am not sure if I should also mark the second patch as Fixes