From: Avichal Rakesh <arakesh@google.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Daniel Scally <dan.scally@ideasonboard.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michael Grzeschik <m.grzeschik@pengutronix.de>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
Avichal Rakesh <arakesh@google.com>
Subject: [PATCH v1 0/2] usb: gadget: uvc: stability fixes when stopping streams
Date: Mon, 11 Sep 2023 21:19:08 -0700 [thread overview]
Message-ID: <20230912041910.726442-1-arakesh@google.com> (raw)
We have been seeing two main bugs when stopping stream:
1. attempting to queue usb_requests on a disabled usb endpoint, and
2. use-after-free problems for inflight requests
Avichal Rakesh (2):
usb: gadget: uvc: prevent use of disabled endpoint
usb: gadget: uvc: prevent de-allocating inflight usb_requests
drivers/usb/gadget/function/f_uvc.c | 11 ++++----
drivers/usb/gadget/function/f_uvc.h | 2 +-
drivers/usb/gadget/function/uvc.h | 5 +++-
drivers/usb/gadget/function/uvc_v4l2.c | 21 ++++++++++++---
drivers/usb/gadget/function/uvc_video.c | 34 +++++++++++++++++++++++--
5 files changed, 60 insertions(+), 13 deletions(-)
--
2.42.0.283.g2d96d420d3-goog
next reply other threads:[~2023-09-12 4:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-12 4:19 Avichal Rakesh [this message]
2023-09-12 4:19 ` [PATCH v1 1/2] usb: gadget: uvc: prevent use of disabled endpoint Avichal Rakesh
2023-09-12 4:19 ` [PATCH v1 2/2] usb: gadget: uvc: prevent de-allocating inflight usb_requests Avichal Rakesh
2023-09-20 20:03 ` [PATCH v2 " Avichal Rakesh
2023-09-28 20:19 ` [PATCH v3 " Avichal Rakesh
2023-09-28 21:04 ` Michael Grzeschik
2023-09-30 19:16 ` Avichal Rakesh
2023-09-14 23:05 ` [PATCH v1 0/2] usb: gadget: uvc: stability fixes when stopping streams Avichal Rakesh
2023-09-15 23:16 ` Michael Grzeschik
2023-09-16 1:35 ` Avichal Rakesh
2023-09-19 18:24 ` Avichal Rakesh
2023-09-27 20:47 ` Avichal Rakesh
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=20230912041910.726442-1-arakesh@google.com \
--to=arakesh@google.com \
--cc=dan.scally@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.grzeschik@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox