syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/22 05:54
Subsystems: fs
[Documentation on labels]
First crash: 556d, last: 556d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / step_into fs 1 714d 714d 0/26 auto-closed as invalid on 2022/06/16 15:50
upstream KCSAN: data-race in dentry_lru_isolate / step_into (2) fs 1 655d 655d 0/26 auto-closed as invalid on 2022/08/15 07:08
upstream KCSAN: data-race in dentry_lru_isolate / step_into (5) kernfs 1 326d 326d 0/26 auto-obsoleted due to no activity on 2023/07/09 13:37
upstream KCSAN: data-race in dentry_lru_isolate / step_into (4) fs 5 431d 516d 0/26 auto-obsoleted due to no activity on 2023/04/06 15:13

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

write to 0xffff88810bad39c0 of 4 bytes by task 18495 on cpu 0:
 dentry_lru_isolate+0x182/0x200 fs/dcache.c:1232
 __list_lru_walk_one+0x17b/0x370 mm/list_lru.c:231
 list_lru_walk_one+0x7c/0xa0 mm/list_lru.c:276
 list_lru_shrink_walk include/linux/list_lru.h:194 [inline]
 prune_dcache_sb+0x67/0xa0 fs/dcache.c:1280
 super_cache_scan+0x24e/0x300 fs/super.c:104
 do_shrink_slab+0x2ad/0x600 mm/vmscan.c:842
 shrink_slab_memcg+0x1c2/0x3e0 mm/vmscan.c:911
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:990
 shrink_node_memcgs+0x28a/0x470 mm/vmscan.c:6076
 shrink_node+0x1d7/0x930 mm/vmscan.c:6105
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:6343
 do_try_to_free_pages+0x195/0x760 mm/vmscan.c:6405
 try_to_free_mem_cgroup_pages+0x1d1/0x420 mm/vmscan.c:6720
 reclaim_high+0xcd/0x110 mm/memcontrol.c:2389
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2574
 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 kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810bad39c0 of 4 bytes by task 18494 on cpu 1:
 __d_entry_type include/linux/dcache.h:385 [inline]
 d_is_symlink include/linux/dcache.h:415 [inline]
 step_into+0x121/0x7d0 fs/namei.c:1836
 walk_component+0x164/0x230 fs/namei.c:1999
 lookup_last fs/namei.c:2450 [inline]
 path_lookupat+0x11d/0x2b0 fs/namei.c:2474
 filename_lookup+0x133/0x310 fs/namei.c:2503
 user_path_at_empty+0x3e/0x110 fs/namei.c:2876
 user_path_at include/linux/namei.h:57 [inline]
 path_setxattr+0x88/0x370 fs/xattr.c:631
 __do_sys_setxattr fs/xattr.c:652 [inline]
 __se_sys_setxattr fs/xattr.c:648 [inline]
 __x64_sys_setxattr+0x69/0x80 fs/xattr.c:648
 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: 0x00280040 -> 0x00008000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 18494 Comm: syz-executor.3 Not tainted 6.1.0-rc1-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/18 05:45 upstream 9abf2313adc1 94744d21 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / step_into
* Struck through repros no longer work on HEAD.