syzbot


KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode

Status: auto-closed as invalid on 2022/01/23 05:11
Subsystems: ext4
[Documentation on labels]
First crash: 896d, last: 873d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode (2) ext4 2 732d 732d 0/26 closed as invalid on 2022/05/13 11:20

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

write to 0xffff88811948f600 of 8 bytes by task 13140 on cpu 1:
 ext4_ext_store_pblock fs/ext4/ext4_extents.h:257 [inline]
 ext4_ext_rm_leaf+0x6e4/0xef0 fs/ext4/extents.c:2713
 ext4_ext_remove_space+0x956/0x14c0 fs/ext4/extents.c:2955
 ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4417
 ext4_truncate+0x76e/0xae0 fs/ext4/inode.c:4201
 ext4_evict_inode+0xad5/0xf10 fs/ext4/inode.c:287
 evict+0x1aa/0x410 fs/inode.c:590
 iput_final fs/inode.c:1670 [inline]
 iput+0x3ef/0x580 fs/inode.c:1696
 dentry_unlink_inode+0x23d/0x250 fs/dcache.c:376
 d_delete+0x78/0xa0 fs/dcache.c:2505
 vfs_rmdir+0x2bf/0x2e0 fs/namei.c:3982
 do_rmdir+0x18d/0x330 fs/namei.c:4030
 __do_sys_rmdir fs/namei.c:4049 [inline]
 __se_sys_rmdir fs/namei.c:4047 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88811948f600 of 4 bytes by task 13032 on cpu 0:
 ext4_fill_raw_inode+0x97f/0xea0 fs/ext4/inode.c:4353
 ext4_do_update_inode fs/ext4/inode.c:5094 [inline]
 ext4_mark_iloc_dirty+0x364/0x890 fs/ext4/inode.c:5694
 ext4_orphan_del+0x593/0x730 fs/ext4/orphan.c:297
 ext4_evict_inode+0xb9f/0xf10 fs/ext4/inode.c:318
 evict+0x1aa/0x410 fs/inode.c:590
 iput_final fs/inode.c:1670 [inline]
 iput+0x3ef/0x580 fs/inode.c:1696
 dentry_unlink_inode+0x23d/0x250 fs/dcache.c:376
 d_delete+0x78/0xa0 fs/dcache.c:2505
 vfs_rmdir+0x2bf/0x2e0 fs/namei.c:3982
 do_rmdir+0x18d/0x330 fs/namei.c:4030
 __do_sys_rmdir fs/namei.c:4049 [inline]
 __se_sys_rmdir fs/namei.c:4047 [inline]
 __x64_sys_rmdir+0x2c/0x30 fs/namei.c:4047
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13032 Comm: syz-executor.2 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/19 05:11 upstream 3f667b5d4053 44068e19 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
2021/12/16 13:20 upstream 2b14864acbaa 8dd6a5e3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
2021/12/04 17:34 upstream bbef3c7a63d2 a617004c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
2021/12/03 09:37 upstream 5f58da2befa5 61f86278 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
2021/11/26 09:04 upstream a4849f6000e2 63eeac02 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
* Struck through repros no longer work on HEAD.