[moderation] [usb?] KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection (2)

5 views
Skip to first unread message

syzbot

unread,
Jan 24, 2025, 5:31:23 AM1/24/25
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bc8198dc7ebc Merge tag 'sched_ext-for-6.14' of git://git.k..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=123515df980000
kernel config: https://syzkaller.appspot.com/x/.config?x=eb97dfa7418e6d49
dashboard link: https://syzkaller.appspot.com/bug?extid=e4dc7ad33466b13d942a
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [gre...@linuxfoundation.org i...@zenithal.me linux-...@vger.kernel.org linu...@vger.kernel.org sh...@kernel.org valentin...@gmail.com]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/6aa5afd6e004/disk-bc8198dc.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c652c2852c93/vmlinux-bc8198dc.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0eee64906e94/bzImage-bc8198dc.xz

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

vhci_hcd: vhci_device speed not set
==================================================================
BUG: KCSAN: data-race in vhci_hub_control / vhci_shutdown_connection

read-write to 0xffff888101411258 of 4 bytes by task 5076 on cpu 0:
rh_port_disconnect drivers/usb/usbip/vhci_hcd.c:204 [inline]
vhci_shutdown_connection+0x19b/0x1e0 drivers/usb/usbip/vhci_hcd.c:1064
event_handler+0x18b/0x350 drivers/usb/usbip/usbip_event.c:79
process_one_work kernel/workqueue.c:3236 [inline]
process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3317
worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398
kthread+0x4ae/0x520 kernel/kthread.c:464
ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888101411258 of 4 bytes by task 35 on cpu 1:
vhci_hub_control+0xd68/0xdd0 drivers/usb/usbip/vhci_hcd.c:657
rh_call_control drivers/usb/core/hcd.c:656 [inline]
rh_urb_enqueue drivers/usb/core/hcd.c:821 [inline]
usb_hcd_submit_urb+0xcd2/0x1510 drivers/usb/core/hcd.c:1529
usb_submit_urb+0xa80/0xb70 drivers/usb/core/urb.c:581
usb_start_wait_urb+0x91/0x190 drivers/usb/core/message.c:59
usb_internal_control_msg drivers/usb/core/message.c:103 [inline]
usb_control_msg+0x182/0x240 drivers/usb/core/message.c:154
get_port_status drivers/usb/core/hub.c:604 [inline]
hub_ext_port_status+0xbf/0x480 drivers/usb/core/hub.c:621
hub_port_reset+0x559/0xed0 drivers/usb/core/hub.c:3049
hub_port_init+0x198/0x1730 drivers/usb/core/hub.c:4895
hub_port_connect drivers/usb/core/hub.c:5452 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5663 [inline]
port_event drivers/usb/core/hub.c:5823 [inline]
hub_event+0x1b1a/0x2910 drivers/usb/core/hub.c:5905
process_one_work kernel/workqueue.c:3236 [inline]
process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3317
worker_thread+0x51d/0x6f0 kernel/workqueue.c:3398
kthread+0x4ae/0x520 kernel/kthread.c:464
ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

value changed: 0x00100103 -> 0x00110102

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 35 Comm: kworker/1:1 Not tainted 6.13.0-syzkaller-05252-gbc8198dc7ebc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: usb_hub_wq hub_event
==================================================================
usb 3-1: new full-speed USB device number 2 using vhci_hcd
usb 3-1: enqueue for inactive port 0
usb 3-1: enqueue for inactive port 0
usb 3-1: enqueue for inactive port 0
vhci_hcd: vhci_device speed not set


---
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 report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

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

syzbot

unread,
Mar 21, 2025, 6:31:19 AM3/21/25
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages