syzbot


KCSAN: data-race in __ext4_unlink / ext4_mark_iloc_dirty

Status: auto-closed as invalid on 2021/03/29 14:13
Subsystems: ext4
[Documentation on labels]
First crash: 1158d, last: 1158d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ext4_unlink / ext4_mark_iloc_dirty

write to 0xffff88810db667e0 of 8 bytes by task 8368 on cpu 1:
 __ext4_unlink+0x4e3/0x6c0 fs/ext4/namei.c:3239
 ext4_unlink+0x1f1/0x3f0 fs/ext4/namei.c:3274
 vfs_unlink+0x232/0x3c0 fs/namei.c:3834
 do_unlinkat+0x28a/0x4d0 fs/namei.c:3898
 __do_sys_unlink fs/namei.c:3944 [inline]
 __se_sys_unlink fs/namei.c:3942 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:3942
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88810db667e0 of 8 bytes by task 8366 on cpu 0:
 ext4_encode_extra_time fs/ext4/ext4.h:891 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5079 [inline]
 ext4_mark_iloc_dirty+0x66d/0x16f0 fs/ext4/inode.c:5725
 ext4_orphan_del+0x314/0x4a0 fs/ext4/namei.c:3084
 ext4_evict_inode+0xb90/0xef0 fs/ext4/inode.c:318
 evict+0x1aa/0x410 fs/inode.c:577
 iput_final fs/inode.c:1653 [inline]
 iput+0x3fd/0x520 fs/inode.c:1679
 dentry_unlink_inode+0x210/0x220 fs/dcache.c:374
 d_delete+0x78/0xa0 fs/dcache.c:2477
 vfs_rmdir+0x284/0x2a0 fs/namei.c:3728
 do_rmdir+0x16e/0x300 fs/namei.c:3775
 __do_sys_rmdir fs/namei.c:3793 [inline]
 __se_sys_rmdir fs/namei.c:3791 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:3791
 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: 0 PID: 8366 Comm: syz-executor.3 Not tainted 5.11.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/02/22 14:06 upstream 31caf8b2a847 c26fb06b .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __ext4_unlink / ext4_mark_iloc_dirty
* Struck through repros no longer work on HEAD.