syzbot


KCSAN: data-race in shrink_dentry_list / step_into (4)

Status: auto-obsoleted due to no activity on 2023/02/06 16:11
Subsystems: fs
[Documentation on labels]
First crash: 510d, last: 510d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in shrink_dentry_list / step_into (6) fs 1 112d 112d 0/26 auto-obsoleted due to no activity on 2024/03/03 06:03
upstream KCSAN: data-race in shrink_dentry_list / step_into fs 1 935d 935d 0/26 auto-closed as invalid on 2021/12/01 04:11
upstream KCSAN: data-race in shrink_dentry_list / step_into (7) fs 2 21d 56d 0/26 moderation: reported on 2024/03/24 15:55
upstream KCSAN: data-race in shrink_dentry_list / step_into (5) fs 3 229d 269d 0/26 auto-obsoleted due to no activity on 2023/11/06 20:19
upstream KCSAN: data-race in shrink_dentry_list / step_into (2) fs 3 615d 640d 0/26 auto-obsoleted due to no activity on 2022/10/17 16:38
upstream KCSAN: data-race in shrink_dentry_list / step_into (3) fs 1 572d 572d 0/26 auto-obsoleted due to no activity on 2022/11/29 05:37

Sample crash report:
==================================================================
BUG: KCSAN: data-race in shrink_dentry_list / step_into

read-write to 0xffff88810ae18600 of 4 bytes by task 3133 on cpu 1:
 d_shrink_del fs/dcache.c:448 [inline]
 shrink_dentry_list+0x16f/0x380 fs/dcache.c:1197
 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:843
 shrink_slab_memcg+0x1c2/0x3e0 mm/vmscan.c:912
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:991
 shrink_node_memcgs+0x277/0x450 mm/vmscan.c:6140
 shrink_node+0x1d7/0x930 mm/vmscan.c:6169
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:6407
 do_try_to_free_pages+0x195/0x760 mm/vmscan.c:6469
 try_to_free_mem_cgroup_pages+0x1d0/0x420 mm/vmscan.c:6786
 reclaim_high+0xd0/0x120 mm/memcontrol.c:2394
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2580
 resume_user_mode_work include/linux/resume_user_mode.h:58 [inline]
 exit_to_user_mode_loop+0xa5/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0x69/0x90 kernel/entry/common.c:203
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:309
 irqentry_exit+0xe/0x40 kernel/entry/common.c:412
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570

read to 0xffff88810ae18600 of 4 bytes by task 11650 on cpu 0:
 __follow_mount_rcu fs/namei.c:1480 [inline]
 handle_mounts fs/namei.c:1531 [inline]
 step_into+0xdc/0x7d0 fs/namei.c:1831
 walk_component fs/namei.c:1999 [inline]
 link_path_walk+0x53e/0x8a0 fs/namei.c:2320
 path_openat+0x19d/0x1b60 fs/namei.c:3710
 do_filp_open+0x105/0x220 fs/namei.c:3741
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1337
 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

value changed: 0x0028040c -> 0x0000800c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11650 Comm: syz-executor.1 Not tainted 6.2.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/26 15:54 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shrink_dentry_list / step_into
* Struck through repros no longer work on HEAD.