syzbot


KCSAN: data-race in dentry_lru_isolate / lookup_fast (2)

Status: auto-closed as invalid on 2022/07/28 09:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 159d, last: 159d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / lookup_fast (3) 1 69d 69d 0/24 auto-obsoleted due to no activity on 2022/10/26 06:37
upstream KCSAN: data-race in dentry_lru_isolate / lookup_fast 1 292d 292d 0/24 auto-closed as invalid on 2022/03/16 21:21

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

write to 0xffff88815872f900 of 4 bytes by task 1839 on cpu 1:
 d_lru_shrink_move fs/dcache.c:480 [inline]
 dentry_lru_isolate+0x134/0x200 fs/dcache.c:1257
 __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:770
 shrink_slab_memcg+0x1b9/0x440 mm/vmscan.c:839
 shrink_slab+0x5c/0x1c0 mm/vmscan.c:918
 shrink_node_memcgs+0x27a/0x400 mm/vmscan.c:3124
 shrink_node+0x8c3/0x10f0 mm/vmscan.c:3245
 shrink_zones+0x2c1/0x5d0 mm/vmscan.c:3482
 do_try_to_free_pages+0x165/0x720 mm/vmscan.c:3540
 try_to_free_mem_cgroup_pages+0x1cd/0x420 mm/vmscan.c:3854
 reclaim_high+0xcd/0x110 mm/memcontrol.c:2333
 mem_cgroup_handle_over_high+0x75/0x120 mm/memcontrol.c:2517
 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+0x46/0xb0

read to 0xffff88815872f900 of 4 bytes by task 21776 on cpu 0:
 d_revalidate fs/namei.c:847 [inline]
 lookup_fast+0x172/0x360 fs/namei.c:1650
 walk_component+0x6b/0x280 fs/namei.c:2010
 lookup_last fs/namei.c:2469 [inline]
 path_lookupat+0x11d/0x2b0 fs/namei.c:2493
 filename_lookup+0x130/0x310 fs/namei.c:2522
 user_path_at_empty+0x3e/0x110 fs/namei.c:2895
 user_path_at include/linux/namei.h:57 [inline]
 __do_sys_chdir fs/open.c:514 [inline]
 __se_sys_chdir+0x56/0x150 fs/open.c:508
 __x64_sys_chdir+0x1b/0x20 fs/open.c:508
 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+0x46/0xb0

value changed: 0x00280000 -> 0x00008000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21776 Comm: syz-executor.3 Tainted: G        W         5.19.0-rc3-syzkaller-00048-gde5c208d533a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/23 09:16 upstream de5c208d533a 912f5df7 .config log report info KCSAN: data-race in dentry_lru_isolate / lookup_fast
* Struck through repros no longer work on HEAD.