syzbot


KCSAN: data-race in dev_uevent / usb_gadget_unregister_driver

Status: auto-closed as invalid on 2020/08/04 06:35
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 768d, last: 768d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dev_uevent / usb_gadget_unregister_driver (2) 1 641d 608d 0/23 auto-closed as invalid on 2020/12/21 11:57

Sample crash report:
==================================================================
BUG: KCSAN: data-race in dev_uevent / usb_gadget_unregister_driver

write to 0xffff888219c88478 of 8 bytes by task 4114 on cpu 1:
 usb_gadget_remove_driver drivers/usb/gadget/udc/core.c:1306 [inline]
 usb_gadget_unregister_driver+0x254/0x430 drivers/usb/gadget/udc/core.c:1440
 raw_release+0xac/0x130 drivers/usb/gadget/legacy/raw_gadget.c:400
 __fput+0x1df/0x460 fs/file_table.c:281
 ____fput+0x11/0x20 fs/file_table.c:314
 task_work_run+0x8e/0x110 kernel/task_work.c:123
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:216 [inline]
 __prepare_exit_to_usermode+0x1c6/0x230 arch/x86/entry/common.c:246
 __syscall_return_slowpath+0x47/0x60 arch/x86/entry/common.c:329
 do_syscall_64+0x5d/0xb0 arch/x86/entry/common.c:368
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888219c88478 of 8 bytes by task 4176 on cpu 0:
 dev_uevent+0x21d/0x350 drivers/base/core.c:1650
 uevent_show+0x10d/0x1f0 drivers/base/core.c:1722
 dev_attr_show+0x35/0x90 drivers/base/core.c:1426
 sysfs_kf_seq_show+0x152/0x270 fs/sysfs/file.c:60
 kernfs_seq_show+0x74/0x80 fs/kernfs/file.c:167
 seq_read+0x2ee/0x900 fs/seq_file.c:208
 kernfs_fop_read+0xce/0x2f0 fs/kernfs/file.c:251
 __vfs_read+0x69/0x330 fs/read_write.c:426
 vfs_read+0x131/0x2a0 fs/read_write.c:462
 ksys_read+0xce/0x180 fs/read_write.c:588
 __do_sys_read fs/read_write.c:598 [inline]
 __se_sys_read fs/read_write.c:596 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:596
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4176 Comm: systemd-udevd Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/06/30 06:33 upstream 7c30b859a947 917afeaa .config log report