syzbot


KCSAN: data-race in __dput_to_list / dput

Status: auto-obsoleted due to no activity on 2022/10/26 01:04
Subsystems: fs
[Documentation on labels]
First crash: 582d, last: 582d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dput_to_list / dput (2) fs 1 328d 328d 0/26 auto-obsoleted due to no activity on 2023/07/07 12:52
upstream KCSAN: data-race in __dput_to_list / dput (3) fs 1 288d 288d 0/26 auto-obsoleted due to no activity on 2023/08/15 19:19

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __dput_to_list / dput

write to 0xffff888121b0ef00 of 4 bytes by task 1848 on cpu 1:
 d_lru_del fs/dcache.c:437 [inline]
 __dput_to_list+0xab/0x240 fs/dcache.c:926
 shrink_dentry_list+0x19c/0x380 fs/dcache.c:1200
 shrink_dcache_parent+0x4d/0x1b0
 vfs_rmdir+0x27f/0x2f0 fs/namei.c:4102
 do_rmdir+0x178/0x300 fs/namei.c:4159
 __do_sys_unlinkat fs/namei.c:4339 [inline]
 __se_sys_unlinkat fs/namei.c:4333 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4333
 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+0x63/0xcd

read to 0xffff888121b0ef00 of 4 bytes by task 20597 on cpu 0:
 fast_dput fs/dcache.c:774 [inline]
 dput+0x31/0x1f0 fs/dcache.c:900
 path_put+0x1b/0x30 fs/namei.c:558
 free_fs_struct fs/fs_struct.c:91 [inline]
 exit_fs+0xab/0xd0 fs/fs_struct.c:108
 do_exit+0x583/0x16e0 kernel/exit.c:791
 do_group_exit+0xa5/0x160 kernel/exit.c:925
 get_signal+0xf54/0x1020 kernel/signal.c:2857
 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166
 exit_to_user_mode_prepare+0x69/0x90 kernel/entry/common.c:201
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:307
 irqentry_exit+0xe/0x40 kernel/entry/common.c:408
 exc_general_protection+0x321/0x4b0 arch/x86/kernel/traps.c:719
 asm_exc_general_protection+0x22/0x30

value changed: 0x00280000 -> 0x00200100

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20597 Comm: syz-executor.3 Not tainted 6.0.0-rc6-syzkaller-00009-g60891ec99e14-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/21 00:58 upstream 60891ec99e14 c4b8ccfd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / dput
* Struck through repros no longer work on HEAD.