lkml.org 
[lkml]   [2024]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [syzbot] [block?] [usb?] INFO: rcu detected stall in aoecmd_cfg (2)
Date
On Wed, 08 May 2024 12:27:20 -0700
> syzbot found the following issue on:
>
> HEAD commit: 9221b2819b8a Add linux-next specific files for 20240503
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=161a5d1f180000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 9221b2819b8a

--- l/drivers/input/misc/yealink.c
+++ y/drivers/input/misc/yealink.c
@@ -436,7 +436,7 @@ static void urb_irq_callback(struct urb

yealink_do_idle_tasks(yld);

- if (!yld->shutdown) {
+ if (!yld->shutdown && status != -EPROTO) {
ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC);
if (ret && ret != -EPERM)
dev_err(&yld->intf->dev,
@@ -458,13 +458,13 @@ static void urb_ctl_callback(struct urb
case CMD_KEYPRESS:
case CMD_SCANCODE:
/* ask for a response */
- if (!yld->shutdown)
+ if (!yld->shutdown && status != -EPROTO)
ret = usb_submit_urb(yld->urb_irq, GFP_ATOMIC);
break;
default:
/* send new command */
yealink_do_idle_tasks(yld);
- if (!yld->shutdown)
+ if (!yld->shutdown && status != -EPROTO)
ret = usb_submit_urb(yld->urb_ctl, GFP_ATOMIC);
break;
}
--
\
 
 \ /
  Last update: 2024-05-09 01:41    [W:0.043 / U:2.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site