syzbot


KCSAN: data-race in call_rcu / rcu_gp_kthread

Status: fixed on 2022/03/08 16:11
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+e08a83a1940ec3846cd5@syzkaller.appspotmail.com
Fix commit: 2431774f04d1 rcu: Mark accesses to rcu_state.n_force_qs
First crash: 1185d, last: 1185d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.15 000/177] 5.15.11-rc1 review 183 (183) 2021/12/21 23:14
[PATCH 5.10 00/99] 5.10.88-rc1 review 106 (106) 2021/12/21 23:13
[PATCH 5.4 00/71] 5.4.168-rc1 review 78 (78) 2021/12/21 23:13
[PATCH rcu 0/14] Miscellaneous fixes for v5.16 20 (20) 2021/09/16 16:53
[syzbot] KCSAN: data-race in call_rcu / rcu_gp_kthread 6 (7) 2021/07/20 16:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in call_rcu / rcu_gp_kthread

write to 0xffffffff837328a0 of 8 bytes by task 11 on cpu 0:
 rcu_gp_fqs kernel/rcu/tree.c:1949 [inline]
 rcu_gp_fqs_loop kernel/rcu/tree.c:2010 [inline]
 rcu_gp_kthread+0xd78/0xec0 kernel/rcu/tree.c:2169
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

read to 0xffffffff837328a0 of 8 bytes by task 30193 on cpu 1:
 __call_rcu_core kernel/rcu/tree.c:2946 [inline]
 __call_rcu kernel/rcu/tree.c:3062 [inline]
 call_rcu+0x4b0/0x6c0 kernel/rcu/tree.c:3109
 file_free fs/file_table.c:58 [inline]
 __fput+0x43e/0x4e0 fs/file_table.c:298
 ____fput+0x11/0x20 fs/file_table.c:313
 task_work_run+0xae/0x130 kernel/task_work.c:164
 get_signal+0x156c/0x15e0 kernel/signal.c:2581
 arch_do_signal_or_restart+0x2a/0x220 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x109/0x190 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:302
 do_syscall_64+0x49/0x90 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000000f57 -> 0x0000000000000f58

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 30193 Comm: syz-executor.5 Tainted: G        W         5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/12 12:57 upstream e73f0f0ee754 a4869c92 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in call_rcu / rcu_gp_kthread
* Struck through repros no longer work on HEAD.