syzbot


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

Status: auto-closed as invalid on 2021/05/17 09:21
Subsystems: fs
[Documentation on labels]
First crash: 1111d, last: 1111d
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 fs 1 1295d 1295d 0/26 auto-closed as invalid on 2020/11/11 19:55

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

write to 0xffff8880112fca80 of 4 bytes by task 2121 on cpu 0:
 d_lru_isolate fs/dcache.c:442 [inline]
 dentry_lru_isolate+0x9f/0x200 fs/dcache.c:1199
 __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:1253
 super_cache_scan+0x23e/0x2e0 fs/super.c:105
 do_shrink_slab+0x28b/0x550 mm/vmscan.c:512
 shrink_slab+0xea/0x1c0 mm/vmscan.c:673
 shrink_node_memcgs+0x28a/0x420 mm/vmscan.c:2655
 shrink_node+0x9fa/0x1220 mm/vmscan.c:2770
 kswapd_shrink_node mm/vmscan.c:3513 [inline]
 balance_pgdat+0x6a5/0xc50 mm/vmscan.c:3671
 kswapd+0x1f3/0x340 mm/vmscan.c:3928
 kthread+0x20b/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

read to 0xffff8880112fca80 of 4 bytes by task 4832 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/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4832 Comm: systemd-udevd Tainted: G        W         5.12.0-rc6-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/09 21:53 upstream 17e7124aad76 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / iterate_dir
* Struck through repros no longer work on HEAD.