Hello,
syzbot found the following issue on:
HEAD commit: b6505459 Linux 5.10-rc6
git tree: upstream
console output:
https://syzkaller.appspot.com/x/log.txt?x=175b011d500000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c949fed53798f819
dashboard link:
https://syzkaller.appspot.com/bug?extid=21d839363cab641121b1
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [
ak...@linux-foundation.org hu...@google.com linux-...@vger.kernel.org linu...@kvack.org]
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+21d839...@syzkaller.appspotmail.com
==================================================================
BUG: KCSAN: data-race in filemap_map_pages / shmem_write_end
write to 0xffff888131b6c180 of 8 bytes by task 11451 on cpu 1:
i_size_write include/linux/fs.h:871 [inline]
shmem_write_end+0x62/0x4d0 mm/shmem.c:2544
generic_perform_write+0x23e/0x3a0 mm/filemap.c:3340
__generic_file_write_iter+0x15c/0x330 mm/filemap.c:3458
generic_file_write_iter+0x75/0x130 mm/filemap.c:3490
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 0xffff888131b6c180 of 8 bytes by task 11454 on cpu 0:
i_size_read include/linux/fs.h:849 [inline]
filemap_map_pages+0x481/0x9a0 mm/filemap.c:2876
do_fault_around mm/memory.c:3967 [inline]
do_read_fault+0x233/0x760 mm/memory.c:4001
do_fault mm/memory.c:4134 [inline]
handle_pte_fault mm/memory.c:4374 [inline]
__handle_mm_fault mm/memory.c:4509 [inline]
handle_mm_fault+0xfeb/0x1770 mm/memory.c:4607
faultin_page mm/gup.c:885 [inline]
__get_user_pages+0x8ec/0xe50 mm/gup.c:1097
populate_vma_page_range mm/gup.c:1430 [inline]
__mm_populate+0x24d/0x340 mm/gup.c:1478
mm_populate include/linux/mm.h:2590 [inline]
vm_mmap_pgoff+0x133/0x170 mm/util.c:512
ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1634
do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11454 Comm: syz-executor.2 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.