syzbot


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

Status: auto-obsoleted due to no activity on 2023/07/09 13:37
Subsystems: kernfs
[Documentation on labels]
First crash: 337d, last: 337d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dentry_lru_isolate / step_into fs 1 725d 725d 0/26 auto-closed as invalid on 2022/06/16 15:50
upstream KCSAN: data-race in dentry_lru_isolate / step_into (2) fs 1 665d 665d 0/26 auto-closed as invalid on 2022/08/15 07:08
upstream KCSAN: data-race in dentry_lru_isolate / step_into (3) fs 1 566d 566d 0/26 auto-obsoleted due to no activity on 2022/11/22 05:54
upstream KCSAN: data-race in dentry_lru_isolate / step_into (4) fs 5 442d 526d 0/26 auto-obsoleted due to no activity on 2023/04/06 15:13

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

write to 0xffff888109fb0600 of 4 bytes by task 9006 on cpu 0:
 d_lru_shrink_move fs/dcache.c:480 [inline]
 dentry_lru_isolate+0x143/0x210 fs/dcache.c:1257
 __list_lru_walk_one+0x180/0x3b0 mm/list_lru.c:231
 list_lru_walk_one+0x80/0xa0 mm/list_lru.c:276
 list_lru_shrink_walk include/linux/list_lru.h:194 [inline]
 prune_dcache_sb+0x76/0xb0 fs/dcache.c:1280
 super_cache_scan+0x26c/0x310 fs/super.c:104
 do_shrink_slab+0x2a0/0x640 mm/vmscan.c:912
 shrink_slab_memcg mm/vmscan.c:982 [inline]
 shrink_slab+0x2d6/0x650 mm/vmscan.c:1062
 shrink_node_memcgs mm/vmscan.c:6469 [inline]
 shrink_node+0xadf/0x1500 mm/vmscan.c:6502
 shrink_zones mm/vmscan.c:6737 [inline]
 do_try_to_free_pages+0x40d/0xc80 mm/vmscan.c:6799
 try_to_free_mem_cgroup_pages+0x1e2/0x480 mm/vmscan.c:7114
 memory_max_write+0x156/0x270 mm/memcontrol.c:6590
 cgroup_file_write+0x16b/0x310 kernel/cgroup/cgroup.c:4071
 kernfs_fop_write_iter+0x1ca/0x2b0 fs/kernfs/file.c:334
 call_write_iter include/linux/fs.h:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x47b/0x780 fs/read_write.c:584
 ksys_write+0xeb/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888109fb0600 of 4 bytes by task 3066 on cpu 1:
 __d_entry_type include/linux/dcache.h:385 [inline]
 d_is_symlink include/linux/dcache.h:415 [inline]
 step_into+0x12f/0x800 fs/namei.c:1841
 walk_component+0x164/0x230 fs/namei.c:2004
 lookup_last fs/namei.c:2455 [inline]
 path_lookupat+0x10a/0x2a0 fs/namei.c:2479
 filename_lookup+0x126/0x300 fs/namei.c:2508
 vfs_statx+0xa9/0x300 fs/stat.c:238
 vfs_fstatat fs/stat.c:276 [inline]
 vfs_lstat include/linux/fs.h:2890 [inline]
 __do_sys_newlstat fs/stat.c:432 [inline]
 __se_sys_newlstat+0x6c/0x280 fs/stat.c:426
 __x64_sys_newlstat+0x31/0x40 fs/stat.c:426
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00680000 -> 0x00008000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 3066 Comm: syz-executor.1 Not tainted 6.4.0-rc4-syzkaller-00276-ge5282a7d8f6b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/04 13:28 upstream e5282a7d8f6b a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dentry_lru_isolate / step_into
* Struck through repros no longer work on HEAD.