From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E7E4C00140 for ; Sun, 21 Aug 2022 06:14:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 790E46B0073; Sun, 21 Aug 2022 02:14:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 740A88D0001; Sun, 21 Aug 2022 02:14:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 607F06B0075; Sun, 21 Aug 2022 02:14:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4DFAA6B0073 for ; Sun, 21 Aug 2022 02:14:26 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id E44731C671D for ; Sun, 21 Aug 2022 06:14:25 +0000 (UTC) X-FDA: 79822585290.01.00E1F7C Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by imf31.hostedemail.com (Postfix) with ESMTP id 93BFD20026 for ; Sun, 21 Aug 2022 06:14:25 +0000 (UTC) Received: by mail-il1-f199.google.com with SMTP id o5-20020a056e02102500b002ddcc65029cso6146420ilj.8 for ; Sat, 20 Aug 2022 23:14:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc; bh=eV2jx31Jf/FUCEOtEwL3jkzCecCxlxTQkyDn/NcBZ4E=; b=aIjolBqn2Ow4/w8dl4BRRcpd1Q3XPBmXFkx6royRUZg36TdiHlzwXFvFVC1aoeQNv2 4dKByAGiXbJFk8Gx90cL171jpQUgu3wi3wMRQliBSvumUcJMDhB1QqGg/sG8q8dFURs8 kfgAx3AE3P/xaU/d+vcG2VKXz4XlsYj+Y8Yi4oiy9oCcfI/WRkOc1jEtQ3Z++2eCFwaF pkWPdJGCo0DutAJI+nli8pSMLA+CUj8OeNY+MdThxL/+euFIjo+ZSxZQhXq9d+ucolz1 +jDoQtppa3QJyBUPvROJTmSKEbaewOGnalU5EJeB/29OqFW4UtFZRd23s/JBCtW7sLDW xU2A== X-Gm-Message-State: ACgBeo1r7mjdkUKMQvjRtDF1bG1KcwZ80x1NYmJDI654Jr9Fisri9Swd x0lu2PDHgnNlwe3fl0uW4tPDV/IIPkclh8sAPOc47Qmt02nd X-Google-Smtp-Source: AA6agR4n1vxDBlDIVXl2kq/W2IunDdEzgnnFA5ml8c2iICy746iKR27U6HDvybqXZAckDmd7aGCVm7+rgm5udNW4yRL+l3FYrTTi MIME-Version: 1.0 X-Received: by 2002:a05:6638:34a7:b0:346:dbd8:d4eb with SMTP id t39-20020a05663834a700b00346dbd8d4ebmr6788760jal.57.1661062464956; Sat, 20 Aug 2022 23:14:24 -0700 (PDT) Date: Sat, 20 Aug 2022 23:14:24 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002c73fd05e6ba3e0b@google.com> Subject: [syzbot] general protection fault in vma_is_shmem From: syzbot To: akpm@linux-foundation.org, hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661062465; a=rsa-sha256; cv=none; b=3HWXQOzTgnd1v0I5dzyujllFIsE8t2Vw4gnqWX6U2e/soFuN9k96XCe/qVNix8tM505UMW BLbT7ksHhaoa/Hrv5uC7CMBWf5eEU8I/xKN0g0klHDE8KsncWZLftyvbp6bgSAtm6HFSVT aap8ZnIje9Mbl2VH5W+UpMO0bcA7UWw= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf31.hostedemail.com: domain of 3QM0BYwkbAAEtz0lbmmfsbqqje.hpphmfvtfsdpoufou.dpn@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.199 as permitted sender) smtp.mailfrom=3QM0BYwkbAAEtz0lbmmfsbqqje.hpphmfvtfsdpoufou.dpn@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661062465; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=eV2jx31Jf/FUCEOtEwL3jkzCecCxlxTQkyDn/NcBZ4E=; b=GIpWLXP4ID8UiS8XQ17zDQzp3Kn3SzxQ7hJGbmtoeIQQPCdPiPvFMxf77B2OVST9qrFw9k 8Mw29pUGYi7UPEHr3CecnTgatpGw4Mkxz3Fl926gG1yrk8OPIvVWvR235QFOADRZoXmJQx 5qPmdJ3fZZGxvzZiZbLCp/iyEIRh6Bk= Authentication-Results: imf31.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf31.hostedemail.com: domain of 3QM0BYwkbAAEtz0lbmmfsbqqje.hpphmfvtfsdpoufou.dpn@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.199 as permitted sender) smtp.mailfrom=3QM0BYwkbAAEtz0lbmmfsbqqje.hpphmfvtfsdpoufou.dpn@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspam-User: X-Stat-Signature: 1fwsc89afo9djzd3kryyfmexb8u6w53d X-Rspamd-Queue-Id: 93BFD20026 X-Rspamd-Server: rspam06 X-HE-Tag: 1661062465-758197 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following issue on: HEAD commit: 95d10484d66e Add linux-next specific files for 20220817 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=15133023080000 kernel config: https://syzkaller.appspot.com/x/.config?x=2f5fa747986be53a dashboard link: https://syzkaller.appspot.com/bug?extid=681bbbb80445ead3c040 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1100a92d080000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=123d1867080000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+681bbbb80445ead3c040@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000012: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000090-0x0000000000000097] CPU: 1 PID: 3607 Comm: syz-executor359 Not tainted 6.0.0-rc1-next-20220817-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:vma_is_shmem+0x21/0x40 mm/shmem.c:254 Code: 73 02 e9 20 fc ff ff 66 90 53 48 89 fb e8 07 2c cf ff 48 8d bb 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 10 48 81 bb 90 00 00 00 20 8f f7 89 5b 0f 94 c0 c3 RSP: 0018:ffffc900037cfb68 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000012 RSI: ffffffff81ace949 RDI: 0000000000000090 RBP: ffff888071b00720 R08: 0000000000000006 R09: 00000000000000e4 R10: 0000000000008001 R11: 0000000000000000 R12: 00000000000000e4 R13: ffff888071b00000 R14: dffffc0000000000 R15: 0000000000000000 FS: 0000555556ab5300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa3c8f13260 CR3: 00000000718f5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: io_pin_pages+0x25f/0x430 io_uring/rsrc.c:1207 io_sqe_buffer_register+0x14e/0x13b0 io_uring/rsrc.c:1254 io_sqe_buffers_register.cold+0x351/0x445 io_uring/rsrc.c:1346 __io_uring_register io_uring/io_uring.c:3711 [inline] __do_sys_io_uring_register+0x96d/0x1110 io_uring/io_uring.c:3878 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f548fcdfbb9 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc644b88f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f548fcdfbb9 RDX: 0000000020000080 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f548fca3d60 R08: 0000000010000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 00007f548fca3df0 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:vma_is_shmem+0x21/0x40 mm/shmem.c:254 Code: 73 02 e9 20 fc ff ff 66 90 53 48 89 fb e8 07 2c cf ff 48 8d bb 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 10 48 81 bb 90 00 00 00 20 8f f7 89 5b 0f 94 c0 c3 RSP: 0018:ffffc900037cfb68 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000012 RSI: ffffffff81ace949 RDI: 0000000000000090 RBP: ffff888071b00720 R08: 0000000000000006 R09: 00000000000000e4 R10: 0000000000008001 R11: 0000000000000000 R12: 00000000000000e4 R13: ffff888071b00000 R14: dffffc0000000000 R15: 0000000000000000 FS: 0000555556ab5300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa3c8f13260 CR3: 00000000718f5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 73 02 jae 0x4 2: e9 20 fc ff ff jmpq 0xfffffc27 7: 66 90 xchg %ax,%ax 9: 53 push %rbx a: 48 89 fb mov %rdi,%rbx d: e8 07 2c cf ff callq 0xffcf2c19 12: 48 8d bb 90 00 00 00 lea 0x90(%rbx),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 75 10 jne 0x40 30: 48 81 bb 90 00 00 00 cmpq $0xffffffff89f78f20,0x90(%rbx) 37: 20 8f f7 89 3b: 5b pop %rbx 3c: 0f 94 c0 sete %al 3f: c3 retq --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches