syzbot


KCSAN: data-race in dentry_lru_isolate / iterate_dir

Status: auto-closed as invalid on 2020/11/11 19:55
Subsystems: fs
[Documentation on labels]
First crash: 1308d, last: 1308d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / iterate_dir (2) fs 1 1124d 1124d 0/26 auto-closed as invalid on 2021/05/17 09:21

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

write to 0xffff888125d70000 of 4 bytes by task 2487 on cpu 0:
 d_lru_isolate fs/dcache.c:442 [inline]
 dentry_lru_isolate+0x9f/0x200 fs/dcache.c:1166
 __list_lru_walk_one+0xfb/0x320 mm/list_lru.c:222
 list_lru_walk_one+0x75/0x90 mm/list_lru.c:266
 list_lru_shrink_walk include/linux/list_lru.h:195 [inline]
 prune_dcache_sb+0x67/0xa0 fs/dcache.c:1220
 super_cache_scan+0x23b/0x2d0 fs/super.c:105
 do_shrink_slab+0x286/0x5c0 mm/vmscan.c:513
 shrink_slab+0xea/0x1c0 mm/vmscan.c:674
 shrink_node_memcgs+0x270/0x410 mm/vmscan.c:2653
 shrink_node+0x9ed/0x1230 mm/vmscan.c:2768
 kswapd_shrink_node mm/vmscan.c:3511 [inline]
 balance_pgdat+0x675/0xc20 mm/vmscan.c:3669
 kswapd+0x1ef/0x370 mm/vmscan.c:3926
 kthread+0x20d/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff888125d70000 of 4 bytes by task 5080 on cpu 1:
 fsnotify_parent include/linux/fsnotify.h:60 [inline]
 fsnotify_file include/linux/fsnotify.h:90 [inline]
 fsnotify_access include/linux/fsnotify.h:247 [inline]
 iterate_dir+0x24f/0x370 fs/readdir.c:69
 __do_sys_getdents fs/readdir.c:283 [inline]
 __se_sys_getdents+0x7f/0x190 fs/readdir.c:268
 __x64_sys_getdents+0x3f/0x50 fs/readdir.c:268
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5080 Comm: systemd-udevd Not tainted 5.9.0-rc8-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
2020/10/07 19:47 upstream c85fb28b6f99 1880b4a9 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.