syzbot


BUG: soft lockup in hub_event

Status: auto-obsoleted due to no activity on 2023/09/12 05:32
Reported-by: syzbot+c6c9cfc9240e5afc404b@syzkaller.appspotmail.com
First crash: 306d, last: 306d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in hub_event usb C done 225 10d 1607d 0/26 upstream: reported C repro on 2019/11/21 14:45
android-54 BUG: soft lockup in hub_event C 1 218d 218d 0/2 auto-obsoleted due to no activity on 2024/02/11 21:05
linux-6.1 INFO: rcu detected stall in hub_event origin:upstream C 3 31d 247d 0/3 upstream: reported C repro on 2023/08/12 16:34

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 116s! [kworker/1:3:13952]
Modules linked in:
CPU: 1 PID: 13952 Comm: kworker/1:3 Tainted: G        W          6.1.25-syzkaller-00032-g71761b36c37a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Workqueue: usb_hub_wq hub_event
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x48/0x70 kernel/locking/spinlock.c:202
Code: 3c 08 00 74 0c 48 c7 c7 a0 bf 6d 86 e8 c1 b8 ad fc 48 83 3d 69 cf 61 01 00 74 29 48 89 df e8 f3 0e 00 00 90 fb bf 01 00 00 00 <e8> 43 27 43 fc 65 8b 05 74 7d f6 7a 85 c0 74 03 5b 5d c3 e8 e4 8e
RSP: 0018:ffffc900009a7538 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffffff871c6800 RCX: dffffc0000000000
RDX: ffffc9000b547000 RSI: 000000000003ffff RDI: 0000000000000001
RBP: ffffc900009a7540 R08: ffffffff8331b974 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881110eb018
R13: ffff8881110eb020 R14: dffffc0000000000 R15: ffff8881110eb018
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbf59432718 CR3: 000000010fa57000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 spin_unlock_irq include/linux/spinlock.h:400 [inline]
 usb_hcd_flush_endpoint+0x197/0x290 drivers/usb/core/hcd.c:1819
 usb_disable_endpoint drivers/usb/core/message.c:1303 [inline]
 usb_disable_interface+0x1e9/0x2c0 drivers/usb/core/message.c:1349
 usb_unbind_interface+0x1d5/0x8c0 drivers/usb/core/driver.c:456
 device_remove drivers/base/dd.c:550 [inline]
 __device_release_driver drivers/base/dd.c:1253 [inline]
 device_release_driver_internal+0x53e/0x870 drivers/base/dd.c:1279
 device_release_driver+0x19/0x20 drivers/base/dd.c:1302
 bus_remove_device+0x2fa/0x360 drivers/base/bus.c:529
 device_del+0x68b/0xec0 drivers/base/core.c:3852
 usb_disable_device+0x380/0x720 drivers/usb/core/message.c:1419
 usb_disconnect+0x32a/0x890 drivers/usb/core/hub.c:2238
 hub_port_connect drivers/usb/core/hub.c:5199 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5499 [inline]
 port_event drivers/usb/core/hub.c:5655 [inline]
 hub_event+0x1f93/0x5240 drivers/usb/core/hub.c:5737
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2296
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2443
 kthread+0x26d/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 18595 Comm: udevd Tainted: G        W          6.1.25-syzkaller-00032-g71761b36c37a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:64
Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 <f3> aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01
RSP: 0018:ffffc90000d1f570 EFLAGS: 00010202
RAX: 0000000000004800 RBX: ffffc90000d1f5a0 RCX: 0000000000000180
RDX: 0000000000000200 RSI: 0000000000000000 RDI: ffffc90000d1f620
RBP: ffffc90000d1f590 R08: dffffc0000000000 R09: ffffc90000d1f5a0
R10: 0000000000000004 R11: dffffc0000000001 R12: 0000000000000000
R13: ffffffff81aa646a R14: 0000000000000000 R15: 0000000000000200
FS:  00007f491d527c80(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055820f701008 CR3: 00000001262ef000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kasan_save_stack mm/kasan/common.c:42 [inline]
 kasan_set_track+0x3c/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0x131/0x180 mm/kasan/common.c:241
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249
 kasan_slab_free include/linux/kasan.h:178 [inline]
 slab_free_hook mm/slub.c:1744 [inline]
 slab_free_freelist_hook mm/slub.c:1770 [inline]
 slab_free mm/slub.c:3681 [inline]
 __kmem_cache_free+0x218/0x3b0 mm/slub.c:3694
 kfree+0x7a/0xf0 mm/slab_common.c:1009
 skb_free_head net/core/skbuff.c:760 [inline]
 skb_release_data+0x616/0x840 net/core/skbuff.c:789
 skb_release_all net/core/skbuff.c:854 [inline]
 __kfree_skb net/core/skbuff.c:868 [inline]
 consume_skb+0xac/0x250 net/core/skbuff.c:1033
 skb_free_datagram+0x15/0x20 net/core/datagram.c:322
 netlink_recvmsg+0x5ea/0x1140 net/netlink/af_netlink.c:2009
 ____sys_recvmsg+0x285/0x530
 ___sys_recvmsg net/socket.c:2743 [inline]
 __sys_recvmsg+0x2e9/0x3d0 net/socket.c:2773
 __do_sys_recvmsg net/socket.c:2783 [inline]
 __se_sys_recvmsg net/socket.c:2780 [inline]
 __x64_sys_recvmsg+0x7f/0x90 net/socket.c:2780
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f491d12491e
Code: ff 89 ef 48 89 04 24 e8 4f 57 f9 ff 48 8b 04 24 48 83 c4 30 5d c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 21 b8 2f 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 70 48 8b 15 db c4 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffcf1d139c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f491d12491e
RDX: 0000000000000000 RSI: 00007ffcf1d139f8 RDI: 000000000000000c
RBP: 0000561535792c40 R08: 0000000000000007 R09: 9eb5b700f1cd0d87
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000561535792c40
R13: 00007ffcf1d13ab8 R14: 0000000000000000 R15: 0000561534b7b4df
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/14 05:21 android14-6.1 71761b36c37a d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in hub_event
* Struck through repros no longer work on HEAD.