Hello,
syzbot found the following issue on:
HEAD commit: 509a1542 Merge tag '5.10-rc6-smb3-fixes' of git://git.samb..
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=142f773b500000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c949fed53798f819
dashboard link:
https://syzkaller.appspot.com/bug?extid=02b90571fc99c41a895f
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [
linux-...@vger.kernel.org linux-...@vger.kernel.org vi...@zeniv.linux.org.uk]
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+02b905...@syzkaller.appspotmail.com
==================================================================
BUG: KCSAN: data-race in __xa_set_mark / find_get_pages_range_tag
write to 0xffff88813554ffa8 of 8 bytes by task 13789 on cpu 1:
instrument_write include/linux/instrumented.h:42 [inline]
__instrument_read_write_bitop include/asm-generic/bitops/instrumented-non-atomic.h:79 [inline]
__test_and_set_bit include/asm-generic/bitops/instrumented-non-atomic.h:95 [inline]
node_set_mark lib/xarray.c:93 [inline]
xas_set_mark lib/xarray.c:882 [inline]
__xa_set_mark+0xef/0x1b0 lib/xarray.c:1898
__set_page_dirty+0x17e/0x1d0 fs/buffer.c:609
mark_buffer_dirty+0x126/0x230 fs/buffer.c:1137
__block_commit_write fs/buffer.c:2084 [inline]
block_write_end+0x13d/0x230 fs/buffer.c:2162
generic_write_end+0x5b/0x250 fs/buffer.c:2176
ext4_da_write_end+0x59b/0x760 fs/ext4/inode.c:3102
generic_perform_write+0x23e/0x3a0 mm/filemap.c:3340
ext4_buffered_write_iter+0x2e5/0x3d0 fs/ext4/file.c:270
ext4_dio_write_iter fs/ext4/file.c:571 [inline]
ext4_file_write_iter+0xede/0x1090 fs/ext4/file.c:662
call_write_iter include/linux/fs.h:1903 [inline]
new_sync_write fs/read_write.c:518 [inline]
vfs_write+0x6d4/0x7c0 fs/read_write.c:605
ksys_write+0xce/0x180 fs/read_write.c:658
__do_sys_write fs/read_write.c:670 [inline]
__se_sys_write fs/read_write.c:667 [inline]
__x64_sys_write+0x3e/0x50 fs/read_write.c:667
do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
read to 0xffff88813554ffa8 of 8 bytes by task 13785 on cpu 0:
xas_find_chunk include/linux/xarray.h:1660 [inline]
xas_next_marked include/linux/xarray.h:1691 [inline]
find_get_pages_range_tag+0x35c/0x600 mm/filemap.c:2102
pagevec_lookup_range_tag+0x37/0x50 mm/swap.c:1161
mpage_prepare_extent_to_map+0x18a/0x630 fs/ext4/inode.c:2569
ext4_writepages+0x96b/0x1e30 fs/ext4/inode.c:2790
do_writepages+0x7b/0x150 mm/page-writeback.c:2352
__filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422
__filemap_fdatawrite mm/filemap.c:430 [inline]
filemap_flush+0x1f/0x30 mm/filemap.c:457
ext4_alloc_da_blocks+0x4a/0x100 fs/ext4/inode.c:3156
ext4_release_file+0x5b/0x1d0 fs/ext4/file.c:142
__fput+0x243/0x4d0 fs/file_table.c:281
____fput+0x11/0x20 fs/file_table.c:314
task_work_run+0x8e/0x110 kernel/task_work.c:151
tracehook_notify_resume include/linux/tracehook.h:188 [inline]
exit_to_user_mode_loop kernel/entry/common.c:164 [inline]
exit_to_user_mode_prepare+0x13c/0x170 kernel/entry/common.c:191
syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:266
do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13785 Comm: syz-executor.4 Not tainted 5.10.0-rc6-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.