[moderation] [usb?] KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb (2)

1 view
Skip to first unread message

syzbot

unread,
May 7, 2024, 2:06:26 AMMay 7
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: dccb07f2914c Merge tag 'for-6.9-rc7-tag' of git://git.kern..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1134e1a8980000
kernel config: https://syzkaller.appspot.com/x/.config?x=168fab99759dff68
dashboard link: https://syzkaller.appspot.com/bug?extid=46a6fc9d5cdc8652118f
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [gre...@linuxfoundation.org linux-...@vger.kernel.org linu...@vger.kernel.org]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3c2d87fc08e4/disk-dccb07f2.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2722c4f79b5b/vmlinux-dccb07f2.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b652f5cb7bf8/bzImage-dccb07f2.xz

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

==================================================================
BUG: KCSAN: data-race in mon_reader_del / usb_hcd_submit_urb

write to 0xffff888101e9e088 of 4 bytes by task 13834 on cpu 1:
mon_stop drivers/usb/mon/mon_main.c:166 [inline]
mon_reader_del+0x1ba/0x260 drivers/usb/mon/mon_main.c:73
mon_bin_release+0x6c/0x130 drivers/usb/mon/mon_bin.c:793
__fput+0x2c1/0x660 fs/file_table.c:422
__fput_sync+0x44/0x60 fs/file_table.c:507
__do_sys_close fs/open.c:1556 [inline]
__se_sys_close+0x101/0x1b0 fs/open.c:1541
__x64_sys_close+0x1f/0x30 fs/open.c:1541
x64_sys_call+0x25b9/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:4
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888101e9e088 of 4 bytes by task 13864 on cpu 0:
usbmon_urb_submit include/linux/usb/hcd.h:723 [inline]
usb_hcd_submit_urb+0x86/0x1510 drivers/usb/core/hcd.c:1518
usb_submit_urb+0xb12/0xbc0 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
usb_hub_port_status drivers/usb/core/hub.c:671 [inline]
hub_activate+0x4c8/0xf30 drivers/usb/core/hub.c:1181
hub_resume+0x48/0x1e0 drivers/usb/core/hub.c:4006
usb_resume_interface drivers/usb/core/driver.c:1365 [inline]
usb_resume_both+0x3ed/0x5b0 drivers/usb/core/driver.c:1525
usb_runtime_resume+0x21/0x30 drivers/usb/core/driver.c:1979
__rpm_callback+0x299/0x720 drivers/base/power/runtime.c:394
rpm_callback drivers/base/power/runtime.c:448 [inline]
rpm_resume+0x8e6/0xd00 drivers/base/power/runtime.c:914
__pm_runtime_resume+0xdc/0x100 drivers/base/power/runtime.c:1172
pm_runtime_resume_and_get include/linux/pm_runtime.h:430 [inline]
usb_autoresume_device+0x25/0xd0 drivers/usb/core/driver.c:1713
usbdev_open+0xfe/0x480 drivers/usb/core/devio.c:1055
chrdev_open+0x323/0x3a0 fs/char_dev.c:414
do_dentry_open+0x63c/0xbe0 fs/open.c:955
vfs_open+0x4a/0x60 fs/open.c:1089
do_open fs/namei.c:3642 [inline]
path_openat+0x18ba/0x1d80 fs/namei.c:3799
do_filp_open+0xf7/0x200 fs/namei.c:3826
do_sys_openat2+0xab/0x120 fs/open.c:1406
do_sys_open fs/open.c:1421 [inline]
__do_sys_openat fs/open.c:1437 [inline]
__se_sys_openat fs/open.c:1432 [inline]
__x64_sys_openat+0xf3/0x120 fs/open.c:1432
x64_sys_call+0x2cad/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13864 Comm: syz-executor.0 Tainted: G W 6.9.0-rc7-syzkaller-00012-gdccb07f2914c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================


---
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,
Jun 15, 2024, 1:54:14 PM (12 days ago) Jun 15
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