syzbot


KCSAN: data-race in ext4_ext_rm_leaf / ext4_mark_iloc_dirty

Status: auto-closed as invalid on 2021/11/27 06:39
Subsystems: ext4
[Documentation on labels]
First crash: 1274d, last: 1274d

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

write to 0xffff888104b504c0 of 8 bytes by task 7127 on cpu 0:
 ext4_ext_store_pblock fs/ext4/ext4_extents.h:257 [inline]
 ext4_ext_rm_leaf+0x6c9/0xd40 fs/ext4/extents.c:2678
 ext4_ext_remove_space+0x8f6/0x12b0 fs/ext4/extents.c:2920
 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4382
 ext4_truncate+0x76e/0xa80 fs/ext4/inode.c:4204
 ext4_evict_inode+0xa54/0xdb0 fs/ext4/inode.c:287
 evict+0x1c8/0x3c0 fs/inode.c:588
 iput_final fs/inode.c:1664 [inline]
 iput+0x430/0x580 fs/inode.c:1690
 dentry_unlink_inode+0x273/0x290 fs/dcache.c:376
 d_delete+0x78/0xe0 fs/dcache.c:2505
 vfs_rmdir+0x2e6/0x300 fs/namei.c:3984
 do_rmdir+0x18d/0x330 fs/namei.c:4032
 __do_sys_rmdir fs/namei.c:4051 [inline]
 __se_sys_rmdir fs/namei.c:4049 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4049
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104b504c4 of 4 bytes by task 502 on cpu 1:
 ext4_do_update_inode fs/ext4/inode.c:5059 [inline]
 ext4_mark_iloc_dirty+0xce1/0x1700 fs/ext4/inode.c:5683
 ext4_orphan_del+0x593/0x730 fs/ext4/orphan.c:297
 ext4_evict_inode+0xb1e/0xdb0 fs/ext4/inode.c:318
 evict+0x1c8/0x3c0 fs/inode.c:588
 iput_final fs/inode.c:1664 [inline]
 iput+0x430/0x580 fs/inode.c:1690
 dentry_unlink_inode+0x273/0x290 fs/dcache.c:376
 d_delete+0x78/0xe0 fs/dcache.c:2505
 vfs_rmdir+0x2e6/0x300 fs/namei.c:3984
 do_rmdir+0x18d/0x330 fs/namei.c:4032
 __do_sys_rmdir fs/namei.c:4051 [inline]
 __se_sys_rmdir fs/namei.c:4049 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4049
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00007fcc -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 502 Comm: syz-executor.0 Not tainted 5.15.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/10/23 06:29 upstream 9c0c4d24ac00 282f03fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_mark_iloc_dirty
* Struck through repros no longer work on HEAD.