]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:05 +0000 (11:36 +0100)
commit9dbf2cf7136c9b5e4bad7cd0451ffd8be9bbbcf1
treef233e95aef6f96337b2ad5663f624721a871e9ed
parentee322875f9587769a9b305a5b3a30f64aa3e03f1
media: mceusb: return without resubmitting URB in case of -EPROTO error.

[ Upstream commit 476db72e521983ecb847e4013b263072bb1110fc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/rc/mceusb.c