KCSAN: data-race in ext4_mb_good_group / mb_free_blocks (2)

23 views
Skip to first unread message

syzbot

unread,
May 7, 2021, 5:04:24 AM5/7/21
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e4866123 Merge tag 's390-5.13-2' of git://git.kernel.org/p..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=149a8d93d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f2feef0c041bf9f0
dashboard link: https://syzkaller.appspot.com/bug?extid=e93ffebfde62aa5b6251
compiler: Debian clang version 11.0.1-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+e93ffe...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in ext4_mb_good_group / mb_free_blocks

write to 0xffff8881013ddb54 of 4 bytes by task 1774 on cpu 0:
mb_free_blocks+0x156/0xb40 fs/ext4/mballoc.c:1798
ext4_free_blocks+0x1418/0x1b50 fs/ext4/mballoc.c:5988
ext4_remove_blocks+0x61a/0x800 fs/ext4/extents.c:2498
ext4_ext_rm_leaf+0x670/0xd20 fs/ext4/extents.c:2664
ext4_ext_remove_space+0x901/0x1300 fs/ext4/extents.c:2912
ext4_ext_truncate+0xfe/0x170 fs/ext4/extents.c:4370
ext4_truncate+0x76e/0xa80 fs/ext4/inode.c:4262
ext4_evict_inode+0xa54/0xdb0 fs/ext4/inode.c:288
evict+0x1c8/0x3c0 fs/inode.c:584
iput_final fs/inode.c:1660 [inline]
iput+0x433/0x590 fs/inode.c:1686
dentry_unlink_inode+0x23a/0x260 fs/dcache.c:376
d_delete+0x78/0xe0 fs/dcache.c:2505
vfs_rmdir+0x2a6/0x2c0 fs/namei.c:3909
do_rmdir+0x14a/0x2e0 fs/namei.c:3958
__do_sys_rmdir fs/namei.c:3976 [inline]
__se_sys_rmdir fs/namei.c:3974 [inline]
__x64_sys_rmdir+0x2c/0x30 fs/namei.c:3974
do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff8881013ddb54 of 4 bytes by task 1780 on cpu 1:
ext4_mb_good_group+0x131/0x370 fs/ext4/mballoc.c:2427
ext4_mb_good_group_nolock fs/ext4/mballoc.c:2528 [inline]
ext4_mb_regular_allocator+0x1600/0x2520 fs/ext4/mballoc.c:2728
ext4_mb_new_blocks+0x74a/0x1fa0 fs/ext4/mballoc.c:5514
ext4_ext_map_blocks+0x1569/0x1f00 fs/ext4/extents.c:4238
ext4_map_blocks+0x70d/0xef0 fs/ext4/inode.c:638
ext4_getblk+0xb1/0x3d0 fs/ext4/inode.c:848
ext4_bread+0x28/0x130 fs/ext4/inode.c:900
ext4_append+0xd1/0x1c0 fs/ext4/namei.c:67
ext4_init_new_dir+0x177/0x500 fs/ext4/namei.c:2883
ext4_mkdir+0x329/0x760 fs/ext4/namei.c:2929
vfs_mkdir+0x2a4/0x370 fs/namei.c:3813
do_mkdirat+0x11d/0x200 fs/namei.c:3838
__do_sys_mkdir fs/namei.c:3856 [inline]
__se_sys_mkdir fs/namei.c:3854 [inline]
__x64_sys_mkdir+0x32/0x40 fs/namei.c:3854
do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1780 Comm: syz-executor.4 Tainted: G W 5.12.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,
Nov 30, 2021, 7:17:15 AM11/30/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