[mm?] KCSAN: data-race in __anon_vma_prepare / lock_vma_under_rcu

8 views
Skip to first unread message

syzbot

unread,
May 9, 2023, 4:52:55 PM5/9/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ba0ad6ed89fd media: nxp: imx8-isi: fix buiding on 32-bit
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1647cb6c280000
kernel config: https://syzkaller.appspot.com/x/.config?x=a81ba1a41e5791df
dashboard link: https://syzkaller.appspot.com/bug?extid=49f596a3ce85cbea0bc0
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [ak...@linux-foundation.org linux-...@vger.kernel.org linu...@kvack.org]

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/8be433abffcb/disk-ba0ad6ed.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/1bf25c293961/vmlinux-ba0ad6ed.xz
kernel image: https://storage.googleapis.com/syzbot-assets/67b1f12d4d12/bzImage-ba0ad6ed.xz

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

==================================================================
BUG: KCSAN: data-race in __anon_vma_prepare / lock_vma_under_rcu

write to 0xffff88811db0ae38 of 8 bytes by task 31368 on cpu 1:
__anon_vma_prepare+0x144/0x2b0 mm/rmap.c:214
anon_vma_prepare include/linux/rmap.h:159 [inline]
do_anonymous_page mm/memory.c:4083 [inline]
do_pte_missing mm/memory.c:3645 [inline]
handle_pte_fault mm/memory.c:4947 [inline]
__handle_mm_fault mm/memory.c:5089 [inline]
handle_mm_fault+0x1fbd/0x2c60 mm/memory.c:5243
do_user_addr_fault arch/x86/mm/fault.c:1440 [inline]
handle_page_fault arch/x86/mm/fault.c:1534 [inline]
exc_page_fault+0x67e/0x780 arch/x86/mm/fault.c:1590
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
__put_user_4+0x11/0x20 arch/x86/lib/putuser.S:89
__sys_socketpair+0xba/0x420 net/socket.c:1712
__do_sys_socketpair net/socket.c:1778 [inline]
__se_sys_socketpair net/socket.c:1775 [inline]
__x64_sys_socketpair+0x52/0x60 net/socket.c:1775
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88811db0ae38 of 8 bytes by task 31366 on cpu 0:
lock_vma_under_rcu+0xb6/0x290 mm/memory.c:5288
do_user_addr_fault arch/x86/mm/fault.c:1341 [inline]
handle_page_fault arch/x86/mm/fault.c:1534 [inline]
exc_page_fault+0x16e/0x780 arch/x86/mm/fault.c:1590
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x0000000000000000 -> 0xffff888104da4d20

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 31366 Comm: syz-executor.1 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================


---
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.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages