syzbot


KCSAN: data-race in dentry_lru_isolate / link_path_walk (4)

Status: auto-closed as invalid on 2021/06/03 17:49
Subsystems: fs
[Documentation on labels]
First crash: 1091d, last: 1091d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (5) fs 1 382d 382d 0/26 auto-obsoleted due to no activity on 2023/05/14 03:33
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk fs 1 1311d 1311d 0/26 auto-closed as invalid on 2020/10/27 03:28
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (3) fs 2 1178d 1199d 0/26 auto-closed as invalid on 2021/03/08 07:19
upstream KCSAN: data-race in dentry_lru_isolate / link_path_walk (2) fs 2 1253d 1234d 0/26 auto-closed as invalid on 2020/12/24 05:06

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

write to 0xffff88810298e900 of 4 bytes by task 735 on cpu 0:
 d_lru_isolate fs/dcache.c:442 [inline]
 dentry_lru_isolate+0x9f/0x280 fs/dcache.c:1199
 __list_lru_walk_one+0xfb/0x320 mm/list_lru.c:222
 list_lru_walk_one+0x75/0xc0 mm/list_lru.c:266
 list_lru_shrink_walk include/linux/list_lru.h:195 [inline]
 prune_dcache_sb+0x67/0xa0 fs/dcache.c:1253
 super_cache_scan+0x23e/0x2e0 fs/super.c:105
 do_shrink_slab+0x26e/0x4d0 mm/vmscan.c:512
 shrink_slab+0xea/0x1c0 mm/vmscan.c:673
 shrink_node_memcgs+0x28a/0x420 mm/vmscan.c:2655
 shrink_node+0x9ad/0x1170 mm/vmscan.c:2770
 kswapd_shrink_node mm/vmscan.c:3513 [inline]
 balance_pgdat+0x662/0xc00 mm/vmscan.c:3671
 kswapd+0x1f3/0x300 mm/vmscan.c:3928
 kthread+0x1d0/0x1f0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff88810298e900 of 4 bytes by task 1029 on cpu 1:
 __d_entry_type include/linux/dcache.h:394 [inline]
 d_can_lookup include/linux/dcache.h:409 [inline]
 link_path_walk+0x4d7/0x780 fs/namei.c:2279
 path_lookupat+0x7b/0x570 fs/namei.c:2420
 filename_lookup+0xff/0x390 fs/namei.c:2454
 user_path_at_empty+0x3b/0x50 fs/namei.c:2734
 user_path_at include/linux/namei.h:60 [inline]
 do_faccessat+0x260/0x510 fs/open.c:425
 __do_sys_access fs/open.c:484 [inline]
 __se_sys_access fs/open.c:482 [inline]
 __x64_sys_access+0x33/0x40 fs/open.c:482
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1029 Comm: systemd-udevd Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/29 17:42 upstream d72cd4ad4174 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / link_path_walk
* Struck through repros no longer work on HEAD.