syzbot


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

Status: auto-closed as invalid on 2022/06/17 17:19
Subsystems: fs
[Documentation on labels]
First crash: 762d, last: 728d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dput_to_list / link_path_walk (4) fs 1 270d 270d 0/26 auto-obsoleted due to no activity on 2023/09/18 22:37
upstream KCSAN: data-race in __dput_to_list / link_path_walk (3) fs 1 423d 423d 0/26 auto-obsoleted due to no activity on 2023/04/25 15:20
upstream KCSAN: data-race in __dput_to_list / link_path_walk fs 1 1010d 1010d 0/26 auto-closed as invalid on 2021/09/08 19:34

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

read-write to 0xffff8881379d3840 of 4 bytes by task 16031 on cpu 1:
 d_shrink_add fs/dcache.c:456 [inline]
 __dput_to_list+0x1eb/0x240 fs/dcache.c:928
 shrink_dentry_list+0x19c/0x380 fs/dcache.c:1200
 prune_dcache_sb+0x72/0xa0 fs/dcache.c:1282
 super_cache_scan+0x24e/0x300 fs/super.c:104
 do_shrink_slab+0x2ad/0x600 mm/vmscan.c:774
 shrink_slab_memcg+0x1b9/0x440 mm/vmscan.c:843
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:922
 shrink_node_memcgs+0x27a/0x400 mm/vmscan.c:3100
 shrink_node+0x8c3/0x1110 mm/vmscan.c:3221
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3458
 do_try_to_free_pages+0x165/0x720 mm/vmscan.c:3516
 try_to_free_mem_cgroup_pages+0x1cd/0x420 mm/vmscan.c:3830
 reclaim_high+0xcd/0x110 mm/memcontrol.c:2325
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2509
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0xa5/0x130 kernel/entry/common.c:169
 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881379d3840 of 4 bytes by task 16032 on cpu 0:
 link_path_walk+0x336/0x7a0 fs/namei.c:2309
 path_openat+0x199/0x1b30 fs/namei.c:3605
 do_filp_open+0x105/0x220 fs/namei.c:3636
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213
 do_sys_open fs/open.c:1229 [inline]
 __do_sys_openat fs/open.c:1245 [inline]
 __se_sys_openat fs/open.c:1240 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1240
 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+0x44/0xae

value changed: 0x0020000c -> 0x0000800c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16032 Comm: syz-executor.5 Not tainted 5.18.0-rc6-syzkaller-00085-gf3f19f939c11-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/12/2022
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/13 17:12 upstream f3f19f939c11 7ce5a022 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / link_path_walk
2022/04/09 10:29 upstream 1831fed55973 e22c3da3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / link_path_walk
* Struck through repros no longer work on HEAD.