Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: mceusb: return without resubmitting URB in case of -EPROTO error.

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>

authored by

Rajat Asthana and committed by
Mauro Carvalho Chehab
476db72e 44870a9e

+1
+1
drivers/media/rc/mceusb.c
··· 1386 1386 case -ECONNRESET: 1387 1387 case -ENOENT: 1388 1388 case -EILSEQ: 1389 + case -EPROTO: 1389 1390 case -ESHUTDOWN: 1390 1391 usb_unlink_urb(urb); 1391 1392 return;