[Android 5.4] BUG: soft lockup in hub_event

3 views
Skip to first unread message

syzbot

unread,
Sep 10, 2023, 3:11:01 PM9/10/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 50533a8b511b BACKPORT: net: nfc: Fix use-after-free caused..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=12200402680000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5e9b22184c611d9
dashboard link: https://syzkaller.appspot.com/bug?extid=2b88f5276b03c693354b
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1484d802680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14fc6802680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/591509708a97/disk-50533a8b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/abb562854646/vmlinux-50533a8b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e65cbcfd24e8/bzImage-50533a8b.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+2b88f5...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [kworker/1:5:1373]
Modules linked in:
CPU: 1 PID: 1373 Comm: kworker/1:5 Not tainted 5.4.249-syzkaller-00007-g50533a8b511b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: usb_hub_wq hub_event
RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline]
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline]
RIP: 0010:kvm_wait+0xfa/0x150 arch/x86/kernel/kvm.c:852
Code: 24 14 75 26 41 f7 c7 00 02 00 00 75 0f 0f 1f 44 00 00 0f 00 2d 17 56 77 03 f4 eb 0e 0f 1f 44 00 00 0f 00 2d 08 56 77 03 fb f4 <4c> 89 7c 24 18 ff 74 24 18 9d 48 c7 44 24 20 0e 36 e0 45 49 c7 04
RSP: 0018:ffff8881db27f4a0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 1ffff1103b64fe98 RCX: 0000000086ee5800
RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffffff86ee5840
RBP: ffff8881db27f550 R08: dffffc0000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff86ee5840 R14: ffff8881db27f4e0 R15: 0000000000000246
FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffff3cff0f8 CR3: 00000001eb520000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
</IRQ>
pv_wait arch/x86/include/asm/paravirt.h:652 [inline]
pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
__pv_queued_spin_lock_slowpath+0x72f/0xc70 kernel/locking/qspinlock.c:507
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:642 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:50 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:81 [inline]
do_raw_spin_lock include/linux/spinlock.h:181 [inline]
__raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:151
spin_lock include/linux/spinlock.h:338 [inline]
kernfs_put+0x2c3/0x4b0 fs/kernfs/dir.c:546
kernfs_remove_by_name_ns+0x99/0x100 fs/kernfs/dir.c:1521
kernfs_remove_by_name include/linux/kernfs.h:583 [inline]
sysfs_unmerge_group+0xcf/0x130 fs/sysfs/group.c:368
rpm_sysfs_remove drivers/base/power/sysfs.c:730 [inline]
dpm_sysfs_remove+0x70/0xc0 drivers/base/power/sysfs.c:739
device_del+0x252/0xfa0 drivers/base/core.c:3062
device_unregister+0x11/0x30 drivers/base/core.c:3117
usb_remove_ep_devs+0x4c/0x80 drivers/usb/core/endpoint.c:188
remove_intf_ep_devs drivers/usb/core/message.c:1125 [inline]
usb_disable_device+0x307/0x750 drivers/usb/core/message.c:1276
usb_disconnect+0x32c/0x890 drivers/usb/core/hub.c:2229
hub_port_connect drivers/usb/core/hub.c:5027 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5303 [inline]
port_event drivers/usb/core/hub.c:5449 [inline]
hub_event+0x1c75/0x4d50 drivers/usb/core/hub.c:5531
process_one_work+0x765/0xd20 kernel/workqueue.c:2287
worker_thread+0xaef/0x1470 kernel/workqueue.c:2433
kthread+0x2da/0x360 kernel/kthread.c:288
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Feb 11, 2024, 4:05:12 PMFeb 11
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages