syzbot


KCSAN: data-race in dentry_lru_isolate / link_path_walk (3)

Status: auto-closed as invalid on 2021/03/08 07:19
Subsystems: fs
[Documentation on labels]
First crash: 1198d, last: 1178d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (4) fs 1 1091d 1091d 0/26 auto-closed as invalid on 2021/06/03 17:49
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (5) fs 1 381d 381d 0/26 auto-obsoleted due to no activity on 2023/05/14 03:33
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk fs 1 1310d 1310d 0/26 auto-closed as invalid on 2020/10/27 03:28
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (2) fs 2 1252d 1234d 0/26 auto-closed as invalid on 2020/12/24 05:06

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

write to 0xffff88800ca63000 of 4 bytes by task 13161 on cpu 1:
 d_lru_isolate fs/dcache.c:442 [inline]
 dentry_lru_isolate+0x9f/0x200 fs/dcache.c:1173
 __list_lru_walk_one+0xfb/0x320 mm/list_lru.c:222
 list_lru_walk_one+0x75/0x90 mm/list_lru.c:266
 list_lru_shrink_walk include/linux/list_lru.h:195 [inline]
 prune_dcache_sb+0x67/0xa0 fs/dcache.c:1227
 super_cache_scan+0x23e/0x2e0 fs/super.c:105
 do_shrink_slab+0x28b/0x550 mm/vmscan.c:511
 shrink_slab+0xea/0x1c0 mm/vmscan.c:672
 drop_slab_node mm/vmscan.c:706 [inline]
 drop_slab+0xe5/0x160 mm/vmscan.c:716
 drop_caches_sysctl_handler+0xd0/0x1a0 fs/drop_caches.c:65
 proc_sys_call_handler+0x3d3/0x520 fs/proc/proc_sysctl.c:591
 proc_sys_write+0x1e/0x30 fs/proc/proc_sysctl.c:617
 call_write_iter include/linux/fs.h:1901 [inline]
 do_iter_readv_writev+0x2cb/0x360 fs/read_write.c:740
 do_iter_write+0x112/0x4c0 fs/read_write.c:866
 vfs_writev fs/read_write.c:939 [inline]
 do_writev+0x201/0x480 fs/read_write.c:982
 __do_sys_writev fs/read_write.c:1055 [inline]
 __se_sys_writev fs/read_write.c:1052 [inline]
 __x64_sys_writev+0x41/0x50 fs/read_write.c:1052
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88800ca63000 of 4 bytes by task 8457 on cpu 0:
 link_path_walk+0x360/0x760 fs/namei.c:2148
 path_lookupat+0x7b/0x560 fs/namei.c:2335
 filename_lookup+0xf2/0x380 fs/namei.c:2369
 user_path_at_empty+0x3b/0x50 fs/namei.c:2649
 user_path_at include/linux/namei.h:59 [inline]
 vfs_statx+0x98/0x290 fs/stat.c:185
 vfs_fstatat fs/stat.c:207 [inline]
 vfs_lstat include/linux/fs.h:3122 [inline]
 __do_sys_newlstat fs/stat.c:362 [inline]
 __se_sys_newlstat+0x46/0x250 fs/stat.c:356
 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:356
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8457 Comm: syz-executor.2 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/01 07:12 upstream 1048ba83fb1c fc9fd31e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / link_path_walk
2021/01/12 02:43 upstream a0d54b4f5b21 2c1f2513 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.