OSDN Git Service

media: mceusb: return without resubmitting URB in case of -EPROTO error.
authorRajat Asthana <rajatasthana4@gmail.com>
Wed, 18 Aug 2021 20:31:10 +0000 (22:31 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:08:01 +0000 (10:08 +0200)
Syzkaller reported a warning called "rcu detected stall in dummy_timer".

The error seems to be an error in mceusb_dev_recv(). In the case of
-EPROTO error, the routine immediately resubmits the URB. Instead it
should return without resubmitting URB.

Reported-by: syzbot+4d3749e9612c2cfab956@syzkaller.appspotmail.com
Signed-off-by: Rajat Asthana <rajatasthana4@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/mceusb.c

index 28bf78f..d09bee8 100644 (file)
@@ -1386,6 +1386,7 @@ static void mceusb_dev_recv(struct urb *urb)
        case -ECONNRESET:
        case -ENOENT:
        case -EILSEQ:
+       case -EPROTO:
        case -ESHUTDOWN:
                usb_unlink_urb(urb);
                return;