syzbot


KCSAN: data-race in __dput_to_list / step_into

Status: auto-obsoleted due to no activity on 2022/10/09 05:43
Subsystems: fs
[Documentation on labels]
First crash: 598d, last: 598d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dput_to_list / step_into (2) fs 1 419d 419d 0/26 auto-obsoleted due to no activity on 2023/04/13 20:32

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

read-write to 0xffff8881353a7240 of 4 bytes by task 20537 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:831
 shrink_slab_memcg+0x1b9/0x440 mm/vmscan.c:900
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:979
 shrink_node_memcgs+0x28a/0x470 mm/vmscan.c:3182
 shrink_node+0x955/0x1200 mm/vmscan.c:3304
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3542
 do_try_to_free_pages+0x195/0x760 mm/vmscan.c:3601
 try_to_free_mem_cgroup_pages+0x1d1/0x420 mm/vmscan.c:3916
 reclaim_high+0xcd/0x110 mm/memcontrol.c:2335
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2520
 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+0x63/0xcd

read to 0xffff8881353a7240 of 4 bytes by task 20536 on cpu 0:
 __d_entry_type include/linux/dcache.h:384 [inline]
 d_is_symlink include/linux/dcache.h:414 [inline]
 step_into+0x121/0x7d0 fs/namei.c:1836
 walk_component fs/namei.c:1999 [inline]
 link_path_walk+0x53e/0x8a0 fs/namei.c:2320
 path_openat+0x19c/0x1b00 fs/namei.c:3687
 do_filp_open+0x105/0x220 fs/namei.c:3718
 do_sys_openat2+0xb5/0x2a0 fs/open.c:1311
 do_sys_open fs/open.c:1327 [inline]
 __do_sys_openat fs/open.c:1343 [inline]
 __se_sys_openat fs/open.c:1338 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1338
 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: 0x0020000c -> 0x0000800c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20536 Comm: syz-executor.3 Not tainted 6.0.0-rc3-syzkaller-00328-g42cf58c272ee-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/04 05:43 upstream 42cf58c272ee 28811d0a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __dput_to_list / step_into
* Struck through repros no longer work on HEAD.