syzbot


KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode (2)

Status: closed as invalid on 2022/05/13 11:20
Subsystems: ext4
[Documentation on labels]
First crash: 718d, last: 718d
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 ext4 5 859d 881d 0/26 auto-closed as invalid on 2022/01/23 05:11

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

write to 0xffff88811f915a70 of 8 bytes by task 1848 on cpu 1:
 ext4_ext_store_pblock fs/ext4/ext4_extents.h:257 [inline]
 ext4_ext_rm_leaf+0x711/0xf30 fs/ext4/extents.c:2710
 ext4_ext_remove_space+0x86a/0x1470 fs/ext4/extents.c:2952
 ext4_ext_truncate+0x11c/0x1a0 fs/ext4/extents.c:4412
 ext4_truncate+0x74d/0xab0 fs/ext4/inode.c:4238
 ext4_evict_inode+0xa1d/0xe40 fs/ext4/inode.c:286
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3f9/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4030
 do_rmdir+0x178/0x300 fs/namei.c:4078
 __do_sys_unlinkat fs/namei.c:4258 [inline]
 __se_sys_unlinkat fs/namei.c:4252 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4252
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88811f915a70 of 4 bytes by task 1831 on cpu 0:
 ext4_fill_raw_inode+0x980/0xea0 fs/ext4/inode.c:4390
 ext4_do_update_inode fs/ext4/inode.c:5131 [inline]
 ext4_mark_iloc_dirty+0x364/0x860 fs/ext4/inode.c:5724
 ext4_orphan_del+0x583/0x6f0 fs/ext4/orphan.c:297
 ext4_evict_inode+0xb77/0xe40 fs/ext4/inode.c:317
 evict+0x1aa/0x410 fs/inode.c:664
 iput_final fs/inode.c:1744 [inline]
 iput+0x3f9/0x580 fs/inode.c:1770
 d_delete_notify include/linux/fsnotify.h:261 [inline]
 vfs_rmdir+0x270/0x2f0 fs/namei.c:4030
 do_rmdir+0x178/0x300 fs/namei.c:4078
 __do_sys_unlinkat fs/namei.c:4258 [inline]
 __se_sys_unlinkat fs/namei.c:4252 [inline]
 __x64_sys_unlinkat+0xa0/0xb0 fs/namei.c:4252
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 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: 1831 Comm: syz-executor.2 Not tainted 5.18.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/09 01:13 upstream c5eb0a61238d e60b1103 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in ext4_ext_rm_leaf / ext4_fill_raw_inode
2022/05/08 21:52 upstream 379c72654524 e60b1103 .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.