All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michał Pecio" <michal.pecio@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org
Subject: Re: NULL dereference on disconnection during usb_set_interface()
Date: Sun, 18 Feb 2024 01:02:51 +0100	[thread overview]
Message-ID: <20240218010251.7ef703ab@foxbook> (raw)
In-Reply-To: <261cbb28-60ec-4a0e-8bbd-2bd328a39c8a@rowland.harvard.edu>

> Here you see usb_set_interface() called from the UVC driver under 
> inappropriate circumstances.  To fix the problem it will be necessary 
> to fix the UVC driver.  It should not allow itself to be unbound from 
> the device while a user-driven operation, such as 
> uvc_video_start_transfer(), is in progress.

Thanks for your explanation, I can see that this is indeed what happens.

I produced a small documentation update patch, hopefully I got it right
this time.

I will notify linux-media about the issue.

Thanks,
Michal

      reply	other threads:[~2024-02-18  0:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21 17:18 NULL dereference on disconnection during usb_set_interface() Michał Pecio
2024-02-17 15:31 ` Greg Kroah-Hartman
2024-02-17 19:26   ` Michał Pecio
2024-02-17 19:55     ` Alan Stern
2024-02-18  0:02       ` Michał Pecio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240218010251.7ef703ab@foxbook \
    --to=michal.pecio@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.