syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/14 03:33
Subsystems: fs
[Documentation on labels]
First crash: 389d, last: 389d
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 1099d 1099d 0/26 auto-closed as invalid on 2021/06/03 17:49
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk fs 1 1318d 1318d 0/26 auto-closed as invalid on 2020/10/27 03:28
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (3) fs 2 1186d 1206d 0/26 auto-closed as invalid on 2021/03/08 07:19
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (2) fs 2 1260d 1242d 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 0xffff8881c344ecc0 of 4 bytes by task 29007 on cpu 0:
 d_lru_shrink_move fs/dcache.c:480 [inline]
 dentry_lru_isolate+0x143/0x210 fs/dcache.c:1257
 __list_lru_walk_one+0x180/0x3b0 mm/list_lru.c:231
 list_lru_walk_one+0x80/0xa0 mm/list_lru.c:276
 list_lru_shrink_walk include/linux/list_lru.h:194 [inline]
 prune_dcache_sb+0x76/0xb0 fs/dcache.c:1280
 super_cache_scan+0x26c/0x310 fs/super.c:104
 do_shrink_slab+0x2a0/0x640 mm/vmscan.c:853
 shrink_slab_memcg mm/vmscan.c:922 [inline]
 shrink_slab+0x2bc/0x520 mm/vmscan.c:1001
 shrink_node_memcgs mm/vmscan.c:6439 [inline]
 shrink_node+0xaf5/0x14f0 mm/vmscan.c:6473
 shrink_zones mm/vmscan.c:6711 [inline]
 do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6773
 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7088
 reclaim_high+0xca/0x110 mm/memcontrol.c:2403
 mem_cgroup_handle_over_high+0x8c/0x1a0 mm/memcontrol.c:2588
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0x9b/0xe0 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff8881c344ecc0 of 4 bytes by task 29009 on cpu 1:
 link_path_walk+0x32f/0x7e0 fs/namei.c:2283
 path_openat+0x19b/0x1d00 fs/namei.c:3711
 do_filp_open+0xf6/0x200 fs/namei.c:3742
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1348
 do_sys_open fs/open.c:1364 [inline]
 __do_sys_openat fs/open.c:1380 [inline]
 __se_sys_openat fs/open.c:1375 [inline]
 __x64_sys_openat+0xf3/0x120 fs/open.c:1375
 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

value changed: 0x0028000c -> 0x0000800c

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 29009 Comm: syz-executor.5 Not tainted 6.3.0-rc5-syzkaller-00202-ga79d5c76f705 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/09 03:29 upstream a79d5c76f705 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / link_path_walk
* Struck through repros no longer work on HEAD.