KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del (2)

7 views
Skip to first unread message

syzbot

unread,
Nov 8, 2021, 2:34:26 PM11/8/21
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e851dfae4371 Merge tag 'kgdb-5.16-rc1' of git://git.kernel..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1447b89eb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=4c26351b9e72587a
dashboard link: https://syzkaller.appspot.com/bug?extid=766df5fe37c3450cc3f6
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [adilger...@dilger.ca linux...@vger.kernel.org linux-...@vger.kernel.org ty...@mit.edu]

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+766df5...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in ext4_mark_iloc_dirty / ext4_orphan_del

write to 0xffff888104a70a1c of 4 bytes by task 509 on cpu 0:
ext4_orphan_del+0x579/0x730 fs/ext4/orphan.c:296
ext4_evict_inode+0xb9f/0xf10 fs/ext4/inode.c:318
evict+0x1aa/0x410 fs/inode.c:588
iput_final fs/inode.c:1664 [inline]
iput+0x3fa/0x510 fs/inode.c:1690
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/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888104a70a1c of 4 bytes by task 499 on cpu 1:
ext4_do_update_inode fs/ext4/inode.c:5007 [inline]
ext4_mark_iloc_dirty+0x47b/0x16e0 fs/ext4/inode.c:5683
__ext4_mark_inode_dirty+0x4ec/0x5f0 fs/ext4/inode.c:5879
ext4_dirty_inode+0x86/0xa0 fs/ext4/inode.c:5908
__mark_inode_dirty+0x72/0x6c0 fs/fs-writeback.c:2399
mark_inode_dirty_sync include/linux/fs.h:2456 [inline]
dquot_free_space include/linux/quotaops.h:382 [inline]
dquot_free_block include/linux/quotaops.h:392 [inline]
ext4_free_blocks+0x157d/0x1b00 fs/ext4/mballoc.c:6084
ext4_remove_blocks+0x7fb/0xa10 fs/ext4/extents.c:2506
ext4_ext_rm_leaf+0x68e/0xe70 fs/ext4/extents.c:2672
ext4_ext_remove_space+0x956/0x1450 fs/ext4/extents.c:2920
ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4382
ext4_truncate+0x76e/0xae0 fs/ext4/inode.c:4204
ext4_evict_inode+0xad5/0xf10 fs/ext4/inode.c:287
evict+0x1aa/0x410 fs/inode.c:588
iput_final fs/inode.c:1664 [inline]
iput+0x3fa/0x510 fs/inode.c:1690
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/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x000004cc -> 0x000004fb

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 499 Comm: syz-executor.1 Tainted: G W 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 15, 2021, 1:27:15 PM12/15/21
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages