Hello,
syzbot found the following crash on:
HEAD commit: 7c30b859 Merge tag 'spi-fix-v5.8-rc3' of git://git.kernel...
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=1085226b100000
kernel config:
https://syzkaller.appspot.com/x/.config?x=ef2c2e4f6006998c
dashboard link:
https://syzkaller.appspot.com/bug?extid=ea059f72d48c885cbf40
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b)
CC: [
adilger...@dilger.ca linux...@vger.kernel.org linux-...@vger.kernel.org ty...@mit.edu]
Unfortunately, I don't have any reproducer for this crash yet.
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+ea059f...@syzkaller.appspotmail.com
==================================================================
BUG: KCSAN: data-race in ext4_free_inode / find_next_zero_bit
write to 0xffff888123ebf3f8 of 8 bytes by task 9044 on cpu 1:
instrument_write include/linux/instrumented.h:42 [inline]
__test_and_clear_bit include/asm-generic/bitops/instrumented-non-atomic.h:85 [inline]
__test_and_clear_bit_le include/asm-generic/bitops/le.h:95 [inline]
ext4_free_inode+0x574/0x9d0 fs/ext4/ialloc.c:310
ext4_evict_inode+0xaf7/0xc20 fs/ext4/inode.c:324
evict+0x19f/0x470 fs/inode.c:576
iput_final fs/inode.c:1652 [inline]
iput+0x44a/0x550 fs/inode.c:1678
do_unlinkat+0x2c9/0x4d0 fs/namei.c:3895
__do_sys_unlink fs/namei.c:3936 [inline]
__se_sys_unlink fs/namei.c:3934 [inline]
__x64_sys_unlink+0x2c/0x30 fs/namei.c:3934
do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
entry_SYSCALL_64_after_hwframe+0x44/0xa9
read to 0xffff888123ebf3f8 of 8 bytes by task 20201 on cpu 0:
_find_next_bit lib/find_bit.c:39 [inline]
find_next_zero_bit+0x3a/0xf0 lib/find_bit.c:87
find_next_zero_bit_le include/asm-generic/bitops/le.h:15 [inline]
find_inode_bit+0x30c/0x3a0 fs/ext4/ialloc.c:718
__ext4_new_inode+0xc84/0x2fc0 fs/ext4/ialloc.c:927
ext4_symlink+0x354/0x7e0 fs/ext4/namei.c:3303
vfs_symlink+0x218/0x2f0 fs/namei.c:3953
do_symlinkat+0xee/0x280 fs/namei.c:3980
__do_sys_symlink fs/namei.c:3999 [inline]
__se_sys_symlink fs/namei.c:3997 [inline]
__x64_sys_symlink+0x32/0x40 fs/namei.c:3997
do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20201 Comm: syz-executor.3 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.