Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5046034rwb; Tue, 6 Sep 2022 17:44:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6GVyJM/qMBJ0gUttLtrOw5ms2k/BIr9oMJFwE68KRBlAT7Fpt2PqF0/y7RVZ3osBmpjD51 X-Received: by 2002:a17:90a:2b03:b0:200:acc9:422c with SMTP id x3-20020a17090a2b0300b00200acc9422cmr3745565pjc.157.1662511464186; Tue, 06 Sep 2022 17:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662511464; cv=none; d=google.com; s=arc-20160816; b=r9r7l5HNPvfv/laWy+uefLiQ53JLu8Hvab+Xq8Bw+8c9ULukDLUf+yI9Fsk63L7RNi CwSXJUceMDPpEzuNC7yqTZbhg3SOdcgGCjzMgpNSjwjGXyCvk70x/Y+dRXOB54OXaGpE 3UpTVHOy7wMudQrc1fgidUnoZu1GR91Dr9tUZGBP1W96wDVDrVe4aPaM/UGnpRvpTkgd N87k1CjefU2OJQjE3JhCvE3At/E2x0iR3o1Klky4pRyHWISLiTILsn/vIR7aNlSjMlcn Go2DMc6vd8YFgysSwM0uc9DEfqGunNczNnmuW0pxfX+GjhSXyNl7vyRhckfKvCRfrSFU N1cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=k4LfDmctmuvB0+emHNUy+Iz3J3tACujIfAEIIFhyt/o=; b=zag3C52+v4O1jHuqHSKYc3FN4X/UTHMZ1kQp8XucCDGCbHUaqdmsxoGa7V5unz1GMa i47AIDWHPLH9iAZrjLWRkZw2OK8615CAzLUvNmcfNXGi+9Ci22Kkyh3uY+5+iDgxL/Pb aYzoMsA7Knf6KNUMYBYmTuAYcLdZKgPREAzDLZA+yiynhS2CZdr4UGqd7A4TIGkgDJQe AHKwmPM57vOlb1szg5tbc4jEbJeb1zEOlvSI/YyHh/sxodIENtR6apKSg31Iqe9swO/+ JF/aBnHwcxnSsRc+S7Rw8aqw7agY9hJr8IGtLj5LkDqzXwdJ07LleWXTGSwD3UjRNZ2s y2Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=TIVMP6mY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i184-20020a6387c1000000b00434d8692854si1484801pge.541.2022.09.06.17.44.12; Tue, 06 Sep 2022 17:44:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=TIVMP6mY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229502AbiIGAW2 (ORCPT + 99 others); Tue, 6 Sep 2022 20:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIGAW0 (ORCPT ); Tue, 6 Sep 2022 20:22:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18B535FD3; Tue, 6 Sep 2022 17:22:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BA252B81AD5; Wed, 7 Sep 2022 00:22:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27797C433C1; Wed, 7 Sep 2022 00:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1662510139; bh=TYWpPceGQUQ3nUCdRp3xaZF6BK9txggkZUQFe6i+Vs4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TIVMP6mYzzT7hfQg6d6B2fGnVkgOWIf8Sa7mG47TYUdRKFuNNjAZlTQ+1X7XJSXVj xJ0SWxeB6RfX2pmwosNN6e1wOPqGgh3L/24hcSDqTW8zPlo3eLAIk5rsvRg1RtrZXG o7dFQaWCJA3qBTCFncDwxnOCaI90brg75nftLVgE= Date: Tue, 6 Sep 2022 17:22:18 -0700 From: Andrew Morton To: syzbot Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com, Jason Gunthorpe , John Hubbard , Alistair Popple , Ralph Campbell , Alex Sierra , Dan Williams Subject: Re: [syzbot] usb-testing boot error: BUG: unable to handle kernel paging request in follow_page_mask Message-Id: <20220906172218.b50521a3caf73095983a907e@linux-foundation.org> In-Reply-To: <00000000000098580e05e8033b9a@google.com> References: <00000000000098580e05e8033b9a@google.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (cc some of the gup.c developers) On Tue, 06 Sep 2022 07:44:25 -0700 syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 4e55e22d3d9a USB: hcd-pci: Drop the unused id parameter fr.. > git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing > console output: https://syzkaller.appspot.com/x/log.txt?x=16b2d4d7080000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3cb39b084894e9a5 > dashboard link: https://syzkaller.appspot.com/bug?extid=6b3a1fd733d73b7a14d7 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/05f931abacee/disk-4e55e22d.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/9b749a498398/vmlinux-4e55e22d.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+6b3a1fd733d73b7a14d7@syzkaller.appspotmail.com > > BUG: unable to handle page fault for address: ffffeefda00001ff Thanks. A bit strange that it came from the USB tree, but I assume this bug originates from Linus's current. > #PF: supervisor read access in kernel mode > #PF: error_code(0x0000) - not-present page > PGD 0 P4D 0 > Oops: 0000 [#1] PREEMPT SMP KASAN > CPU: 1 PID: 687 Comm: kworker/u4:0 Not tainted 6.0.0-rc1-syzkaller-00049-g4e55e22d3d9a #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 > RIP: 0010:native_pud_val arch/x86/include/asm/pgtable_types.h:347 [inline] > RIP: 0010:pud_none arch/x86/include/asm/pgtable.h:829 [inline] > RIP: 0010:follow_pud_mask mm/gup.c:730 [inline] > RIP: 0010:follow_p4d_mask mm/gup.c:782 [inline] > RIP: 0010:follow_page_mask+0x1a9/0x1c90 mm/gup.c:846 > Code: 00 80 88 ff ff 4c 01 e8 4d 89 e5 49 c1 ed 1b 41 81 e5 f8 0f 00 00 49 01 c5 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 18 00 00 4d 8b 75 00 31 ff 49 83 e6 9f 4c 89 > RSP: 0000:ffffc90001e7fb10 EFLAGS: 00010a06 > RAX: dffffc0000000000 RBX: ffff88810e732500 RCX: 0000000000000000 > RDX: 1ffff2fda00001ff RSI: ffffffff8167fdbd RDI: 0000000000000007 > RBP: ffffc90001e7fc48 R08: 0000000000000007 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 00007fffffffefc0 > R13: ffff97ed00000ff8 R14: 0000000000000000 R15: 0000000000002017 > FS: 0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffeefda00001ff CR3: 0000000007825000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > __get_user_pages+0x3f2/0x1020 mm/gup.c:1193 > __get_user_pages_locked mm/gup.c:1399 [inline] > __get_user_pages_remote+0x18f/0x830 mm/gup.c:2109 > get_user_pages_remote+0x84/0xc0 mm/gup.c:2182 > get_arg_page+0xe4/0x2a0 fs/exec.c:222 > copy_string_kernel+0x169/0x460 fs/exec.c:639 > copy_strings_kernel+0xb3/0x190 fs/exec.c:655 > kernel_execve+0x377/0x500 fs/exec.c:2001 > call_usermodehelper_exec_async+0x2e3/0x580 kernel/umh.c:112 > ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 > > Modules linked in: > CR2: ffffeefda00001ff > ---[ end trace 0000000000000000 ]--- > RIP: 0010:native_pud_val arch/x86/include/asm/pgtable_types.h:347 [inline] > RIP: 0010:pud_none arch/x86/include/asm/pgtable.h:829 [inline] > RIP: 0010:follow_pud_mask mm/gup.c:730 [inline] > RIP: 0010:follow_p4d_mask mm/gup.c:782 [inline] > RIP: 0010:follow_page_mask+0x1a9/0x1c90 mm/gup.c:846 > Code: 00 80 88 ff ff 4c 01 e8 4d 89 e5 49 c1 ed 1b 41 81 e5 f8 0f 00 00 49 01 c5 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 d4 18 00 00 4d 8b 75 00 31 ff 49 83 e6 9f 4c 89 > RSP: 0000:ffffc90001e7fb10 EFLAGS: 00010a06 > RAX: dffffc0000000000 RBX: ffff88810e732500 RCX: 0000000000000000 > RDX: 1ffff2fda00001ff RSI: ffffffff8167fdbd RDI: 0000000000000007 > RBP: ffffc90001e7fc48 R08: 0000000000000007 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000000 R12: 00007fffffffefc0 > R13: ffff97ed00000ff8 R14: 0000000000000000 R15: 0000000000002017 > FS: 0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffeefda00001ff CR3: 0000000007825000 CR4: 00000000003506e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > ---------------- > Code disassembly (best guess): > 0: 00 80 88 ff ff 4c add %al,0x4cffff88(%rax) > 6: 01 e8 add %ebp,%eax > 8: 4d 89 e5 mov %r12,%r13 > b: 49 c1 ed 1b shr $0x1b,%r13 > f: 41 81 e5 f8 0f 00 00 and $0xff8,%r13d > 16: 49 01 c5 add %rax,%r13 > 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax > 20: fc ff df > 23: 4c 89 ea mov %r13,%rdx > 26: 48 c1 ea 03 shr $0x3,%rdx > * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction > 2e: 0f 85 d4 18 00 00 jne 0x1908 > 34: 4d 8b 75 00 mov 0x0(%r13),%r14 > 38: 31 ff xor %edi,%edi > 3a: 49 83 e6 9f and $0xffffffffffffff9f,%r14 > 3e: 4c rex.WR > 3f: 89 .byte 0x89 > > > --- > 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.