syzbot


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

Status: auto-closed as invalid on 2020/09/01 14:47
Subsystems: kernel
[Documentation on labels]
First crash: 1395d, last: 1381d
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 9 11d 101d 0/26 moderation: reported on 2024/01/29 18:52
upstream KCSAN: data-race in dev_uevent / really_probe kernel 1 1462d 1462d 0/26 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in dev_uevent / really_probe (5) kernel 1 219d 219d 0/26 auto-obsoleted due to no activity on 2023/11/07 12:48
upstream KCSAN: data-race in dev_uevent / really_probe (4) kernel 5 1137d 1194d 0/26 auto-closed as invalid on 2021/05/17 10:55
upstream KCSAN: data-race in dev_uevent / really_probe (3) kernel 13 1232d 1249d 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 0xffff88808a323498 of 8 bytes by task 9026 on cpu 0:
 really_probe+0xe2/0xaa0 drivers/base/dd.c:494
 driver_probe_device+0xcc/0x120 drivers/base/dd.c:696
 __device_attach_driver+0x255/0x290 drivers/base/dd.c:802
 bus_for_each_drv+0xd8/0x140 drivers/base/bus.c:431
 __device_attach+0x162/0x250 drivers/base/dd.c:868
 device_initial_probe+0x16/0x20 drivers/base/dd.c:915
 bus_probe_device+0x7a/0x140 drivers/base/bus.c:491
 device_add+0x118f/0x12f0 drivers/base/core.c:2700
 usb_set_configuration+0x10bd/0x1390 drivers/usb/core/message.c:2032
 usb_generic_driver_probe+0x54/0xd0 drivers/usb/core/generic.c:241
 usb_probe_device+0xf3/0x160 drivers/usb/core/driver.c:272
 really_probe+0x4f0/0xaa0 drivers/base/dd.c:524
 driver_probe_device+0xcc/0x120 drivers/base/dd.c:696
 __device_attach_driver+0x255/0x290 drivers/base/dd.c:802
 bus_for_each_drv+0xd8/0x140 drivers/base/bus.c:431
 __device_attach+0x162/0x250 drivers/base/dd.c:868
 device_initial_probe+0x16/0x20 drivers/base/dd.c:915
 bus_probe_device+0x7a/0x140 drivers/base/bus.c:491
 device_add+0x118f/0x12f0 drivers/base/core.c:2700
 usb_new_device+0x89f/0xc60 drivers/usb/core/hub.c:2554
 hub_port_connect drivers/usb/core/hub.c:5208 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5348 [inline]
 port_event drivers/usb/core/hub.c:5494 [inline]
 hub_event+0x1d78/0x2bd0 drivers/usb/core/hub.c:5576
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

read to 0xffff88808a323498 of 8 bytes by task 8444 on cpu 1:
 dev_uevent+0x21d/0x350 drivers/base/core.c:1670
 uevent_show+0x10d/0x1f0 drivers/base/core.c:1742
 dev_attr_show+0x35/0x90 drivers/base/core.c:1446
 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+0x16d/0x590 fs/read_write.c:479
 ksys_read+0xce/0x180 fs/read_write.c:607
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/28 14:44 upstream 92ed30191993 cb93dc6a .config console log report ci2-upstream-kcsan-gce
2020/07/15 19:53 upstream e9919e11e219 ada108d0 .config console log report ci2-upstream-kcsan-gce
2020/07/14 22:15 upstream e9919e11e219 6f458026 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.