syzbot


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

Status: auto-closed as invalid on 2022/08/15 07:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 145d, last: 145d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / step_into 1 204d 204d 0/24 auto-closed as invalid on 2022/06/16 15:50
upstream KCSAN: data-race in dentry_lru_isolate / step_into (3) 1 46d 46d 0/24 auto-obsoleted due to no activity on 2022/11/22 05:54

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

write to 0xffff8881238cbf00 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+0x69/0x90 kernel/entry/common.c:201
 irqentry_exit_to_user_mode+0x5/0x10 kernel/entry/common.c:307
 irqentry_exit+0xe/0x40 kernel/entry/common.c:408
 asm_exc_page_fault+0x27/0x30

read to 0xffff8881238cbf00 of 4 bytes by task 7078 on cpu 0:
 __follow_mount_rcu fs/namei.c:1473 [inline]
 handle_mounts fs/namei.c:1530 [inline]
 step_into+0xf4/0x760 fs/namei.c:1844
 walk_component+0x19a/0x280 fs/namei.c:2020
 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_mount fs/namespace.c:3380 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x24d/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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: 7078 Comm: syz-executor.1 Not tainted 5.19.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
==================================================================
FAT-fs (loop1): bogus number of reserved sectors
FAT-fs (loop1): Can't find a valid FAT filesystem

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/07/11 07:06 upstream 32346491ddf2 b5765a15 .config log report info KCSAN: data-race in dentry_lru_isolate / step_into
* Struck through repros no longer work on HEAD.