syzbot


KCSAN: data-race in __dput_to_list / link_path_walk (4)

Status: auto-obsoleted due to no activity on 2023/09/18 22:37
Subsystems: fs
[Documentation on labels]
First crash: 789d, last: 789d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dput_to_list / link_path_walk (3) fs 6 1 942d 942d 0/29 auto-obsoleted due to no activity on 2023/04/25 15:20
upstream KCSAN: data-race in __dput_to_list / link_path_walk (2) fs 6 2 1247d 1281d 0/29 auto-closed as invalid on 2022/06/17 17:19
upstream KCSAN: data-race in __dput_to_list / link_path_walk fs 6 1 1529d 1529d 0/29 auto-closed as invalid on 2021/09/08 19:34

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

write to 0xffff88811fcb8b40 of 4 bytes by task 3087 on cpu 0:
 d_lru_del fs/dcache.c:437 [inline]
 __dput_to_list+0xab/0x240 fs/dcache.c:926
 shrink_dentry_list+0x196/0x380 fs/dcache.c:1200
 shrink_dcache_parent+0x44/0x1a0
 vfs_rmdir+0x283/0x2f0 fs/namei.c:4204
 do_rmdir+0x194/0x310 fs/namei.c:4259
 __do_sys_unlinkat fs/namei.c:4437 [inline]
 __se_sys_unlinkat fs/namei.c:4431 [inline]
 __x64_sys_unlinkat+0xa4/0xb0 fs/namei.c:4431
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88811fcb8b40 of 4 bytes by task 9801 on cpu 1:
 link_path_walk+0x32f/0x7e0 fs/namei.c:2287
 path_parentat fs/namei.c:2526 [inline]
 __filename_parentat+0x13b/0x3c0 fs/namei.c:2550
 filename_parentat fs/namei.c:2568 [inline]
 do_unlinkat+0xa1/0x4f0 fs/namei.c:4368
 do_coredump+0x152e/0x1890 fs/coredump.c:675
 get_signal+0xd65/0xff0 kernel/signal.c:2867
 arch_do_signal_or_restart+0x89/0x2a0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310
 irqentry_exit+0x12/0x40 kernel/entry/common.c:413
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x00280000 -> 0x00200100

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 9801 Comm: syz-executor.4 Not tainted 6.5.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/14 22:31 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / link_path_walk
* Struck through repros no longer work on HEAD.