syzbot


KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (3)

Status: auto-closed as invalid on 2021/11/16 12:09
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 417d, last: 417d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (2) 1 479d 479d 0/24 auto-closed as invalid on 2021/09/15 11:45
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode 25 826d 897d 0/24 auto-closed as invalid on 2020/10/02 18:58
upstream KCSAN: data-race in __ext4_update_other_inode_time / clear_inode (4) 3 348d 370d 0/24 auto-closed as invalid on 2022/01/24 08:32

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __ext4_update_other_inode_time / clear_inode

write to 0xffff8881345e23b0 of 8 bytes by task 1158 on cpu 1:
 clear_inode+0xef/0x130 fs/inode.c:550
 ext4_clear_inode+0x27/0x100 fs/ext4/super.c:1400
 ext4_free_inode+0x19e/0xa80 fs/ext4/ialloc.c:278
 ext4_evict_inode+0xb7e/0xdb0 fs/ext4/inode.c:332
 evict+0x1c8/0x3c0 fs/inode.c:588
 iput_final fs/inode.c:1664 [inline]
 iput+0x430/0x580 fs/inode.c:1690
 do_unlinkat+0x2d4/0x540 fs/namei.c:4176
 __do_sys_unlink fs/namei.c:4217 [inline]
 __se_sys_unlink fs/namei.c:4215 [inline]
 __x64_sys_unlink+0x2c/0x30 fs/namei.c:4215
 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 0xffff8881345e23b0 of 8 bytes by task 23668 on cpu 0:
 inode_is_dirtytime_only include/linux/fs.h:2471 [inline]
 __ext4_update_other_inode_time+0x48/0x5c0 fs/ext4/inode.c:4914
 ext4_update_other_inodes_time fs/ext4/inode.c:4957 [inline]
 ext4_do_update_inode fs/ext4/inode.c:5091 [inline]
 ext4_mark_iloc_dirty+0x1286/0x1700 fs/ext4/inode.c:5683
 __ext4_mark_inode_dirty+0x4ec/0x5c0 fs/ext4/inode.c:5879
 ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5908
 __mark_inode_dirty+0x77/0x6a0 fs/fs-writeback.c:2398
 mark_inode_dirty include/linux/fs.h:2452 [inline]
 generic_write_end+0x157/0x180 fs/buffer.c:2202
 ext4_da_write_end+0x4cc/0x5e0 fs/ext4/inode.c:3062
 generic_perform_write+0x251/0x3e0 mm/filemap.c:3781
 ext4_buffered_write_iter+0x305/0x400 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x11f0
 call_write_iter include/linux/fs.h:2163 [inline]
 aio_write+0x2b4/0x390 fs/aio.c:1578
 io_submit_one+0x86f/0x13b0 fs/aio.c:1880
 __do_sys_io_submit fs/aio.c:1939 [inline]
 __se_sys_io_submit+0x105/0x270 fs/aio.c:1909
 __x64_sys_io_submit+0x3f/0x50 fs/aio.c:1909
 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: 0x0000000000000000 -> 0x0000000000000060

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

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/12 12:04 upstream fa5878760579 838e7e2c .config log report info KCSAN: data-race in __ext4_update_other_inode_time / clear_inode
* Struck through repros no longer work on HEAD.