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 X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CB9CC433FE for ; Sat, 18 Sep 2021 15:55:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E80C61268 for ; Sat, 18 Sep 2021 15:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240004AbhIRP4r (ORCPT ); Sat, 18 Sep 2021 11:56:47 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:55839 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237245AbhIRP4q (ORCPT ); Sat, 18 Sep 2021 11:56:46 -0400 Received: by mail-il1-f200.google.com with SMTP id m15-20020a056e021c2f00b0022c598b86c3so27971242ilh.22 for ; Sat, 18 Sep 2021 08:55:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=XMxetvyBy6RpfXzI/o6mtRK4n4vUfY7++UdwikUvFsw=; b=ULbHXqLzk+K6S4Svj7gt7jREoWVJ8ETREjCkkFwFblx1C1ISLvbpSYNHBAGFf+XowQ CZxl89UMFy5Zrg0CeKD+kGsMevK6bwCda07H1lySJshLETYbe6EksVg+gRRR0wTWW2a8 DEHdVdRVFnW2E7EFRlIkX2BTv8MJfvVg8LHoeqDFe9oRjtalgDMzGJtRTc2A36Glftrh 1prAxJw3WB3BlI/0lDEhWjz98F6qTvFvhFoutpOhBhaV1fMCisMfS8xjpOYu95h4tQv6 0S4rVcut7/7tW3B1ZwV/DetTlRKdPUY9xzPYXBRJ7g9Wq6UtRzcN9lfY+GOIvbHTDDUB 3drw== X-Gm-Message-State: AOAM532AroeuorxoFaREDOK66ohjmoATYJodn2ZSbQjyl6tBS01yT8eF VGUNhDhWf+6mfhJsUc8ZtgYL4DEEBD3L6suCBPcL5osKHNp6 X-Google-Smtp-Source: ABdhPJxI/Osky+DPZVWKJ/FxBMXlSNNAWN8E4vrFXWNoBIBvWBo4DYsZeQDGGphRTDLILgtfqQERIw5zLOG1zu4eF+Amf6/OkzUY MIME-Version: 1.0 X-Received: by 2002:a05:6638:130f:: with SMTP id r15mr251077jad.141.1631980522116; Sat, 18 Sep 2021 08:55:22 -0700 (PDT) Date: Sat, 18 Sep 2021 08:55:22 -0700 In-Reply-To: <000000000000fe7dd005cc2d77c0@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004d23aa05cc471360@google.com> Subject: Re: [syzbot] kernel BUG in vmf_insert_pfn_prot From: syzbot To: airlied@linux.ie, christian.koenig@amd.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linaro-mm-sig-owner@lists.linaro.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com, tzimmermann@suse.de Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 9004fd387338 Add linux-next specific files for 20210917 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11e1691d300000 kernel config: https://syzkaller.appspot.com/x/.config?x=45d5ac72f31f29f3 dashboard link: https://syzkaller.appspot.com/bug?extid=2d4f8693f438d2bd4bdb 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=13ad5527300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13beef77300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2d4f8693f438d2bd4bdb@syzkaller.appspotmail.com ------------[ cut here ]------------ kernel BUG at mm/memory.c:2103! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6537 Comm: syz-executor894 Not tainted 5.15.0-rc1-next-20210917-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:vmf_insert_pfn_prot+0x248/0x450 mm/memory.c:2103 Code: 0f 0b e8 6b d0 ca ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 b7 d5 ca ff 49 83 ff 20 0f 85 a5 fe ff ff e8 48 d0 ca ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 37 d0 ca ff 4d 21 ee 4c 89 RSP: 0000:ffffc90002c5fbd0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff9200058bf7c RCX: 0000000000000000 RDX: ffff888014d81c80 RSI: ffffffff81ab3e18 RDI: 0000000000000003 RBP: ffff88806ec18318 R08: 0000000000000020 R09: ffffc90002c5fbb7 R10: ffffffff81ab3e09 R11: 0000000000000000 R12: 0000000020000000 R13: 000000000001a305 R14: 0000000008140476 R15: 0000000000000020 FS: 00007fd624da5700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000600 CR3: 000000006e41e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1e3/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:564 __do_fault+0x10d/0x4d0 mm/memory.c:3848 do_cow_fault mm/memory.c:4184 [inline] do_fault mm/memory.c:4285 [inline] handle_pte_fault mm/memory.c:4541 [inline] __handle_mm_fault+0x370e/0x5120 mm/memory.c:4676 handle_mm_fault+0x1c8/0x790 mm/memory.c:4774 do_user_addr_fault+0x48b/0x11c0 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x7fd624db0238 Code: c0 75 63 48 8d 75 0c b9 40 42 0f 00 ba 81 00 00 00 c7 45 0c 01 00 00 00 bf ca 00 00 00 31 c0 e8 0e 2a 04 00 eb 85 0f 1f 40 00 <4c> 89 24 25 00 06 00 20 45 31 c0 31 c9 31 c0 c6 04 25 08 06 00 20 RSP: 002b:00007fd624da5320 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007fd624e7b3e8 RCX: 00007fd624df2c59 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fd624e7b3e8 RBP: 00007fd624e7b3e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 3162662f7665642f R13: 00007ffe82f363ff R14: 00007fd624da5400 R15: 0000000000022000 Modules linked in: ---[ end trace 0e8bfa618299b282 ]--- RIP: 0010:vmf_insert_pfn_prot+0x248/0x450 mm/memory.c:2103 Code: 0f 0b e8 6b d0 ca ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 b7 d5 ca ff 49 83 ff 20 0f 85 a5 fe ff ff e8 48 d0 ca ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 37 d0 ca ff 4d 21 ee 4c 89 RSP: 0000:ffffc90002c5fbd0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff9200058bf7c RCX: 0000000000000000 RDX: ffff888014d81c80 RSI: ffffffff81ab3e18 RDI: 0000000000000003 RBP: ffff88806ec18318 R08: 0000000000000020 R09: ffffc90002c5fbb7 R10: ffffffff81ab3e09 R11: 0000000000000000 R12: 0000000020000000 R13: 000000000001a305 R14: 0000000008140476 R15: 0000000000000020 FS: 00007fd624da5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f27acc516c0 CR3: 000000006e41e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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 X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAED3C433F5 for ; Sun, 19 Sep 2021 07:54:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6BFC60F5B for ; Sun, 19 Sep 2021 07:54:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A6BFC60F5B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 640A56E197; Sun, 19 Sep 2021 07:54:28 +0000 (UTC) Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by gabe.freedesktop.org (Postfix) with ESMTPS id EB0AA6E0EB for ; Sat, 18 Sep 2021 15:55:22 +0000 (UTC) Received: by mail-il1-f199.google.com with SMTP id x7-20020a920607000000b002302afca41bso28100638ilg.6 for ; Sat, 18 Sep 2021 08:55:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=XMxetvyBy6RpfXzI/o6mtRK4n4vUfY7++UdwikUvFsw=; b=tUxmNA1e2N/ggL9Ero98hlVaZ8Vpf0n+kKiIGTHwBjpQ/Inj3ZfSWT5GvStvLQRlM7 owBGvZRzBA8LMwHhdqL7SZAt4nMAXPcZi6CHkdmp7CM86w1RDgZbJv/UqFBN9BgUwrcp tZX1Ro1yp5AdTzJ3xzo7Mi5OrSw+l8dtt57YysScrldqDmnVHH1l8xxizyJBgkWioJxE 2eMbcnkGJ7dv6oL4S0PMC9/TDXUfj9Pt412i8MsjJ1gLlCjM0UREKAxNqaUxcJbexC1g 32c6UfXOnXzWNu5jix7ujVUZV2Ks79TiQV9zFq13KVzy9oZ01G8HpkKB7yrslpiixxDu GOPw== X-Gm-Message-State: AOAM533E0TxiPVJnVY7He7EGfSG0cBW9r8ca9TSPwOr+0p3bl6a2rQN/ 7qvmcmAlC9Df/S8SSVMXQUBccXxdnKGm8sQqaVkpDEiTEO6P X-Google-Smtp-Source: ABdhPJxI/Osky+DPZVWKJ/FxBMXlSNNAWN8E4vrFXWNoBIBvWBo4DYsZeQDGGphRTDLILgtfqQERIw5zLOG1zu4eF+Amf6/OkzUY MIME-Version: 1.0 X-Received: by 2002:a05:6638:130f:: with SMTP id r15mr251077jad.141.1631980522116; Sat, 18 Sep 2021 08:55:22 -0700 (PDT) Date: Sat, 18 Sep 2021 08:55:22 -0700 In-Reply-To: <000000000000fe7dd005cc2d77c0@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004d23aa05cc471360@google.com> Subject: Re: [syzbot] kernel BUG in vmf_insert_pfn_prot From: syzbot To: airlied@linux.ie, christian.koenig@amd.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linaro-mm-sig-owner@lists.linaro.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, sumit.semwal@linaro.org, syzkaller-bugs@googlegroups.com, tzimmermann@suse.de Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Sun, 19 Sep 2021 07:54:26 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" syzbot has found a reproducer for the following issue on: HEAD commit: 9004fd387338 Add linux-next specific files for 20210917 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11e1691d300000 kernel config: https://syzkaller.appspot.com/x/.config?x=45d5ac72f31f29f3 dashboard link: https://syzkaller.appspot.com/bug?extid=2d4f8693f438d2bd4bdb 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=13ad5527300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13beef77300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2d4f8693f438d2bd4bdb@syzkaller.appspotmail.com ------------[ cut here ]------------ kernel BUG at mm/memory.c:2103! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6537 Comm: syz-executor894 Not tainted 5.15.0-rc1-next-20210917-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:vmf_insert_pfn_prot+0x248/0x450 mm/memory.c:2103 Code: 0f 0b e8 6b d0 ca ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 b7 d5 ca ff 49 83 ff 20 0f 85 a5 fe ff ff e8 48 d0 ca ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 37 d0 ca ff 4d 21 ee 4c 89 RSP: 0000:ffffc90002c5fbd0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff9200058bf7c RCX: 0000000000000000 RDX: ffff888014d81c80 RSI: ffffffff81ab3e18 RDI: 0000000000000003 RBP: ffff88806ec18318 R08: 0000000000000020 R09: ffffc90002c5fbb7 R10: ffffffff81ab3e09 R11: 0000000000000000 R12: 0000000020000000 R13: 000000000001a305 R14: 0000000008140476 R15: 0000000000000020 FS: 00007fd624da5700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000600 CR3: 000000006e41e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: drm_gem_shmem_fault+0x1e3/0x290 drivers/gpu/drm/drm_gem_shmem_helper.c:564 __do_fault+0x10d/0x4d0 mm/memory.c:3848 do_cow_fault mm/memory.c:4184 [inline] do_fault mm/memory.c:4285 [inline] handle_pte_fault mm/memory.c:4541 [inline] __handle_mm_fault+0x370e/0x5120 mm/memory.c:4676 handle_mm_fault+0x1c8/0x790 mm/memory.c:4774 do_user_addr_fault+0x48b/0x11c0 arch/x86/mm/fault.c:1390 handle_page_fault arch/x86/mm/fault.c:1475 [inline] exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1531 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x7fd624db0238 Code: c0 75 63 48 8d 75 0c b9 40 42 0f 00 ba 81 00 00 00 c7 45 0c 01 00 00 00 bf ca 00 00 00 31 c0 e8 0e 2a 04 00 eb 85 0f 1f 40 00 <4c> 89 24 25 00 06 00 20 45 31 c0 31 c9 31 c0 c6 04 25 08 06 00 20 RSP: 002b:00007fd624da5320 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007fd624e7b3e8 RCX: 00007fd624df2c59 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fd624e7b3e8 RBP: 00007fd624e7b3e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 3162662f7665642f R13: 00007ffe82f363ff R14: 00007fd624da5400 R15: 0000000000022000 Modules linked in: ---[ end trace 0e8bfa618299b282 ]--- RIP: 0010:vmf_insert_pfn_prot+0x248/0x450 mm/memory.c:2103 Code: 0f 0b e8 6b d0 ca ff 4d 89 f7 bf 20 00 00 00 41 83 e7 28 4c 89 fe e8 b7 d5 ca ff 49 83 ff 20 0f 85 a5 fe ff ff e8 48 d0 ca ff <0f> 0b 49 be ff ff ff ff ff ff 0f 00 e8 37 d0 ca ff 4d 21 ee 4c 89 RSP: 0000:ffffc90002c5fbd0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff9200058bf7c RCX: 0000000000000000 RDX: ffff888014d81c80 RSI: ffffffff81ab3e18 RDI: 0000000000000003 RBP: ffff88806ec18318 R08: 0000000000000020 R09: ffffc90002c5fbb7 R10: ffffffff81ab3e09 R11: 0000000000000000 R12: 0000000020000000 R13: 000000000001a305 R14: 0000000008140476 R15: 0000000000000020 FS: 00007fd624da5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f27acc516c0 CR3: 000000006e41e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400