syzbot


KCSAN: data-race in __pm_runtime_resume / pm_runtime_work

Status: auto-closed as invalid on 2022/06/26 14:24
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 190d, last: 190d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __pm_runtime_resume / pm_runtime_work

write to 0xffff888103658a60 of 2 bytes by task 26072 on cpu 0:
 pm_runtime_work+0x99/0x130 drivers/base/power/runtime.c:952
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

read to 0xffff888103658a60 of 2 bytes by task 12796 on cpu 1:
 __pm_runtime_resume+0x34/0xf0 drivers/base/power/runtime.c:1126
 pm_runtime_get_sync include/linux/pm_runtime.h:420 [inline]
 usb_autoresume_device+0x20/0x60 drivers/usb/core/driver.c:1706
 usbdev_open+0xec/0x450 drivers/usb/core/devio.c:1046
 chrdev_open+0x362/0x3d0 fs/char_dev.c:414
 do_dentry_open+0x519/0x830 fs/open.c:824
 vfs_open+0x43/0x50 fs/open.c:958
 do_open fs/namei.c:3476 [inline]
 path_openat+0x16cf/0x1b30 fs/namei.c:3609
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0890 -> 0x0888

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12796 Comm: syz-executor.4 Tainted: G        W         5.18.0-rc7-syzkaller-00181-geaea45fc0e7b-dirty #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 2022/05/22 14:19 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in __pm_runtime_resume / pm_runtime_work
* Struck through repros no longer work on HEAD.