syzbot


KCSAN: data-race in __queue_delayed_work / kvfree_call_rcu

Status: auto-obsoleted due to no activity on 2024/11/21 10:29
Subsystems: kernfs bpf
[Documentation on labels]
Reported-by: syzbot+2c284690cd00b12125e1@syzkaller.appspotmail.com
First crash: 85d, last: 70d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __queue_delayed_work / kvfree_call_rcu

read to 0xffff888237d1cce8 of 8 bytes by task 7320 on cpu 1:
 schedule_delayed_monitor_work kernel/rcu/tree.c:3520 [inline]
 kvfree_call_rcu+0x3b8/0x510 kernel/rcu/tree.c:3839
 kernfs_unlink_open_file+0x205/0x220 fs/kernfs/file.c:586
 kernfs_fop_release+0x167/0x1b0 fs/kernfs/file.c:765
 __fput+0x17a/0x6d0 fs/file_table.c:431
 __fput_sync+0x43/0x60 fs/file_table.c:516
 __do_sys_close fs/open.c:1565 [inline]
 __se_sys_close+0xf9/0x1a0 fs/open.c:1550
 __x64_sys_close+0x1f/0x30 fs/open.c:1550
 x64_sys_call+0x25cb/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:4
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888237d1cce8 of 8 bytes by task 3374 on cpu 0:
 __queue_delayed_work+0xc8/0x1a0 kernel/workqueue.c:2513
 queue_delayed_work_on+0xdf/0x190 kernel/workqueue.c:2552
 queue_delayed_work include/linux/workqueue.h:677 [inline]
 schedule_delayed_monitor_work kernel/rcu/tree.c:3525 [inline]
 kfree_rcu_monitor+0x5e8/0x660 kernel/rcu/tree.c:3643
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310
 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 3374 Comm: kworker/u8:7 Tainted: G        W          6.12.0-rc3-syzkaller-00087-gc964ced77262 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events_unbound kfree_rcu_monitor
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/17 10:28 upstream c964ced77262 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __queue_delayed_work / kvfree_call_rcu
2024/10/08 21:24 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __queue_delayed_work / kvfree_call_rcu
2024/10/01 22:50 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __queue_delayed_work / kvfree_call_rcu
* Struck through repros no longer work on HEAD.