syzbot


KCSAN: data-race in __pm_runtime_resume / pm_runtime_work (2)

Status: moderation: reported on 2025/12/29 17:18
Subsystems: pm
[Documentation on labels]
Reported-by: syzbot+4e913557b88c24bb2448@syzkaller.appspotmail.com
First crash: 61d, last: 21d
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision Error
58c9a18c-18b5-4825-874b-e58be09e1a0b assessment-kcsan Benign: ✅  KCSAN: data-race in __pm_runtime_resume / pm_runtime_work (2) 2026/01/09 19:16 2026/01/09 19:16 2026/01/09 19:38 7519916073b761ced56a7b15fdeeb4674e8dc125
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __pm_runtime_resume / pm_runtime_work pm 6 1 1379d 1379d 0/29 auto-closed as invalid on 2022/06/26 14:24

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

write to 0xffff88810355fa68 of 2 bytes by task 3780 on cpu 0:
 pm_runtime_work+0x90/0x130 drivers/base/power/runtime.c:989
 process_one_work kernel/workqueue.c:3257 [inline]
 process_scheduled_works+0x4cd/0x9d0 kernel/workqueue.c:3340
 worker_thread+0x6bc/0x8b0 kernel/workqueue.c:3421
 kthread+0x488/0x510 kernel/kthread.c:463
 ret_from_fork+0x148/0x280 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246

read to 0xffff88810355fa68 of 2 bytes by task 4218 on cpu 1:
 __pm_runtime_resume+0x35/0x100 drivers/base/power/runtime.c:1190
 pm_runtime_get_active include/linux/pm_runtime.h:520 [inline]
 pm_runtime_resume_and_get include/linux/pm_runtime.h:539 [inline]
 usb_autoresume_device drivers/usb/core/driver.c:1760 [inline]
 usb_unbind_interface+0x57/0x570 drivers/usb/core/driver.c:441
 device_remove drivers/base/dd.c:573 [inline]
 __device_release_driver drivers/base/dd.c:1284 [inline]
 device_release_driver_internal+0x2fb/0x510 drivers/base/dd.c:1307
 device_release_driver+0x19/0x20 drivers/base/dd.c:1330
 usb_driver_release_interface+0xf0/0x100 drivers/usb/core/driver.c:640
 releaseintf drivers/usb/core/devio.c:834 [inline]
 proc_releaseinterface+0x105/0x2f0 drivers/usb/core/devio.c:2312
 usbdev_do_ioctl drivers/usb/core/devio.c:2762 [inline]
 usbdev_ioctl+0xdd7/0x1750 drivers/usb/core/devio.c:2827
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xce/0x140 fs/ioctl.c:583
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:583
 x64_sys_call+0x14b0/0x3000 arch/x86/include/generated/asm/syscalls_64.h:17
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xc0/0x2a0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0890 -> 0x0888

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 4218 Comm: syz.8.13110 Tainted: G        W           syzkaller #0 PREEMPT(voluntary) 
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/08 00:34 upstream e7aa57247700 4c131dc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __pm_runtime_resume / pm_runtime_work
2025/12/29 17:18 upstream 7839932417dd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __pm_runtime_resume / pm_runtime_work
* Struck through repros no longer work on HEAD.