syzbot


KCSAN: data-race in dev_uevent / really_probe (4)

Status: auto-closed as invalid on 2021/05/17 10:55
Subsystems: kernel
[Documentation on labels]
First crash: 1180d, last: 1124d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dev_uevent / really_probe (6) kernel 8 19d 87d 0/26 moderation: reported on 2024/01/29 18:52
upstream KCSAN: data-race in dev_uevent / really_probe kernel 1 1448d 1448d 0/26 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in dev_uevent / really_probe (2) kernel 3 1367d 1381d 0/26 auto-closed as invalid on 2020/09/01 14:47
upstream KCSAN: data-race in dev_uevent / really_probe (5) kernel 1 205d 205d 0/26 auto-obsoleted due to no activity on 2023/11/07 12:48
upstream KCSAN: data-race in dev_uevent / really_probe (3) kernel 13 1219d 1236d 0/26 auto-closed as invalid on 2021/01/28 09:10

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

write to 0xffff88810a1ddc98 of 8 bytes by task 1403 on cpu 1:
 really_probe+0xe2/0xba0 drivers/base/dd.c:528
 driver_probe_device+0xcc/0x120 drivers/base/dd.c:740
 __device_attach_driver+0x255/0x290 drivers/base/dd.c:846
 bus_for_each_drv+0xd8/0x140 drivers/base/bus.c:431
 __device_attach+0x1a0/0x290 drivers/base/dd.c:914
 device_initial_probe+0x16/0x20 drivers/base/dd.c:961
 bus_probe_device+0x7a/0x140 drivers/base/bus.c:491
 device_add+0xcb2/0xe50 drivers/base/core.c:3242
 usb_set_configuration+0x108d/0x1370 drivers/usb/core/message.c:2164
 usb_generic_driver_probe+0x54/0xd0 drivers/usb/core/generic.c:238
 usb_probe_device+0xfb/0x1a0 drivers/usb/core/driver.c:293
 really_probe+0x4ee/0xba0 drivers/base/dd.c:558
 driver_probe_device+0xcc/0x120 drivers/base/dd.c:740
 __device_attach_driver+0x255/0x290 drivers/base/dd.c:846
 bus_for_each_drv+0xd8/0x140 drivers/base/bus.c:431
 __device_attach+0x1a0/0x290 drivers/base/dd.c:914
 device_initial_probe+0x16/0x20 drivers/base/dd.c:961
 bus_probe_device+0x7a/0x140 drivers/base/bus.c:491
 device_add+0xcb2/0xe50 drivers/base/core.c:3242
 usb_new_device+0x89f/0xc60 drivers/usb/core/hub.c:2555
 hub_port_connect drivers/usb/core/hub.c:5223 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5363 [inline]
 port_event drivers/usb/core/hub.c:5509 [inline]
 hub_event+0x1d17/0x2b60 drivers/usb/core/hub.c:5591
 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275
 worker_thread+0x616/0xa70 kernel/workqueue.c:2421
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88810a1ddc98 of 8 bytes by task 4816 on cpu 0:
 dev_uevent+0x213/0x350 drivers/base/core.c:2199
 uevent_show+0x10e/0x1f0 drivers/base/core.c:2271
 dev_attr_show+0x35/0x90 drivers/base/core.c:1973
 sysfs_kf_seq_show+0x152/0x270 fs/sysfs/file.c:61
 kernfs_seq_show+0x74/0x80 fs/kernfs/file.c:168
 seq_read_iter+0x2ef/0x910 fs/seq_file.c:227
 kernfs_fop_read_iter+0xd9/0x320 fs/kernfs/file.c:241
 call_read_iter include/linux/fs.h:1971 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4816 Comm: systemd-journal Not tainted 5.12.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/29 09:44 upstream 36a14638f7c0 a8529b82 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dev_uevent / really_probe
2021/03/06 02:13 upstream 280d542f6ffa 4a024a9b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dev_uevent / really_probe
2021/02/13 20:01 upstream c6d8570e4d64 98682e5e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dev_uevent / really_probe
2021/02/12 17:04 upstream dcc0b49040c7 a5f86b15 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dev_uevent / really_probe
2021/02/01 02:44 upstream 1048ba83fb1c fc9fd31e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dev_uevent / really_probe
* Struck through repros no longer work on HEAD.