Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1407086rwb; Fri, 13 Jan 2023 11:51:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtREhHlYjk+Nvilty/9sF34vpdKSQ4RT8XW0WVJDtQbDd9zw0mNfew/66TEyj6I6luJcK8k X-Received: by 2002:a05:6a20:cf49:b0:b6:b9f:7e62 with SMTP id hz9-20020a056a20cf4900b000b60b9f7e62mr11031882pzb.17.1673639486937; Fri, 13 Jan 2023 11:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673639486; cv=none; d=google.com; s=arc-20160816; b=lVIyRYku8Zcb0GDoBJd975jY/7p8UfBQ8bzySyXzRGAns7k87hyLAl0vH3XU6XZA7H ujM9ojSiLklv68n06XchmIRKzDxIDOXjMfK7CqI37wLuau6pRz8Q5KxEPTgZ697iQrVO SzuPxrP8rFatXguruMzfqZpQjRUFkLlzSmzmJU2adcZOWF3Ad+wzRZNe9ErqQvXGbvHu F1/GkU12qWb57WbxP8wqPseFreaQrxmw1LNaalp39z+Mtjx4VtRge80EKaxt15X7/UAX fU8DJqhscDkHowjFhA/G9chA5tA4tA5JqFijiFoDD/g7C71ykBAPo5bYvswk7bds99fx +GRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4tKkC5Rwurt2ZhtzC0EGoN3QFl/QAxePJEFzuAxRsKY=; b=XC69gyruIho/nHBqnHuEZp8CFk9v1WzieJlKiYk4RYVZCt0/XLHZUgOpNBCA11LuvB C/9jvH3Rnhvi8SDoiUh5AxBPMkmpbxrOS0KIWMAzcZ5J/1Ut57ThfczoUyyb6EEzFsJC ZYSZA4fD2UGYZMq8daunPJS4ZJRCM1B3z2zR5eAoi4t/Xke4BfrtqBXEu/SFbUyf1o1b GQ0XOFAFoWiD8YEz9UrP8HUbq+aIk29wszebeVGVGjQXb7Shxdo2E3OV0fpBEz81lMp8 NTE/fWLdi6wx09YeVGfogP7SR3bKONEZHlPokvANKCQEHFJuxkoRXJ5n73qrT2dz3j3U 2Z5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XXBtn1pR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m132-20020a633f8a000000b00476e640ddfesi21989749pga.80.2023.01.13.11.51.18; Fri, 13 Jan 2023 11:51:26 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=XXBtn1pR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjAMTpI (ORCPT + 52 others); Fri, 13 Jan 2023 14:45:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjAMToi (ORCPT ); Fri, 13 Jan 2023 14:44:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6760B892F8; Fri, 13 Jan 2023 11:44:05 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 066C162309; Fri, 13 Jan 2023 19:44:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B342C433F0; Fri, 13 Jan 2023 19:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673639044; bh=WGId6XhZAVnIZkoLZ+WhwPO8RltJnG9lEuEO0M2xGlQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XXBtn1pRh6QL9rlBAAnnp9ALNAglQ/gcV7FBa7iFQppj9Je1nYqEI9gwcTGbdNStv uD+RzAgWsmCZJwp0Z4ZeFSQJ9KIXr1gzm3Tv0pfaS4jRCWQzVYs9kor3ALLwzzYSmM M3yuwW0wPGDwZG0rUyKOn0qbapbx/Aqc6f1lzz3p0HiP17lkWb8soH6NuPnlpRwdsn 3IZ0sKbW/pd92HhyTH3KMh4iuWdf4OTt50gx6Odg4TXc1tKtSK3h1BpdGf6ZQoULp2 xEqMVrOpUrH5CScp7Vwb6YphvK9wFuSkVn6UvgIoiU3CYthL5fpA62Xi/Nup6w78UR aH326HslpkK/w== Date: Fri, 13 Jan 2023 19:43:58 +0000 From: Mark Brown To: Matthew Wilcox Cc: Naresh Kamboju , open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Kefeng Wang , Andrew Morton , Arnd Bergmann , Anders Roxell Subject: Re: next: BUG: kernel NULL pointer dereference, address: 0000000000000008 - RIP: 0010:do_wp_page Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="D0i8bOacOOmVqGFC" Content-Disposition: inline In-Reply-To: X-Cookie: I know how to do SPECIAL EFFECTS!! X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --D0i8bOacOOmVqGFC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 13, 2023 at 03:53:44PM +0000, Matthew Wilcox wrote: > Uh, are you compiling your kernels without debuginfo? The results > from syzbot & 0day are much more useful: FWIW here's a decode from arm64 (the boards I sampled all looked very similar): <1>Unable to handle kernel NULL pointer dereference at virtual address 0000= 000000000008 <1>Mem abort info: <1> ESR =3D 0x0000000096000005 <1> EC =3D 0x25: DABT (current EL), IL =3D 32 bits <1> SET =3D 0, FnV =3D 0 <1> EA =3D 0, S1PTW =3D 0 <1> FSC =3D 0x05: level 1 translation fault <1>Data abort info: <1> ISV =3D 0, ISS =3D 0x00000005 <1> CM =3D 0, WnR =3D 0 <1>user pgtable: 4k pages, 39-bit VAs, pgdp=3D00000000422b3000 <1>[0000000000000008] pgd=3D0000000000000000, p4d=3D0000000000000000, pud= =3D0000000000000000 <0>Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP <4>Modules linked in: <4>CPU: 3 PID: 58 Comm: modprobe Not tainted 6.2.0-rc3-next-20230113 #2 <4>Hardware name: Libre Computer Board ALL-H3-CC H5 (DT) <4>pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=3D--) <4>pc : do_wp_page (include/linux/page-flags.h:251 mm/memory.c:3047 mm/memo= ry.c:3425)=20 <4>lr : do_wp_page (mm/memory.c:3046 mm/memory.c:3425)=20 <4>sp : ffffffc00972bc50 <4>x29: ffffffc00972bc50 x28: ffffff80022e8000 x27: ffffff8002f9c060 <4>x26: 0000000000000002 x25: ffffff80022b4990 x24: 0000000000000000 <4>x23: ffffff8002f9c000 x22: 0000000000000000 x21: 0000000000000000 <4>x20: 0000000000000a55 x19: ffffffc00972bd38 x18: 0000000000000000 <4>x17: 0000000000000000 x16: 0000000000000000 x15: ffffff80022bfa00 <4>x14: ffffff8002f9c000 x13: ffffffc008b3bc88 x12: 0000007f9b02bfff <4>x11: 0000007f9ad49fc0 x10: ffffff80022bfa0c x9 : ffffff80022bfa00 <4>x8 : ffffff80022bfa50 x7 : ffffff8002f9c000 x6 : 0000000000000000 <4>x5 : 0000000000041362 x4 : 0000007f9ad49000 x3 : ffffff80022b4990 <4>x2 : 0000000000100073 x1 : ffffff80022e8000 x0 : 0000000000000a55 <4>Call trace: <4> do_wp_page (include/linux/page-flags.h:251 mm/memory.c:3047 mm/memory.c= :3425)=20 <4> __handle_mm_fault (mm/memory.c:4937 mm/memory.c:5061)=20 <4> handle_mm_fault (mm/memory.c:5207)=20 <4> do_page_fault (arch/arm64/mm/fault.c:512 arch/arm64/mm/fault.c:612)=20 <4> do_mem_abort (arch/arm64/mm/fault.c:831)=20 <4> el0_da (arch/arm64/include/asm/daifflags.h:28 arch/arm64/kernel/entry-c= ommon.c:133 arch/arm64/kernel/entry-common.c:142 arch/arm64/kernel/entry-co= mmon.c:516)=20 <4> el0t_64_sync_handler (arch/arm64/kernel/entry-common.c:659)=20 <4> el0t_64_sync (arch/arm64/kernel/entry.S:584)=20 <0>Code: aa1503f8 b9402a60 aa1503f6 b90063e0 (f94006a0) All code =3D=3D=3D=3D=3D=3D=3D=3D 0: aa1503f8 .word 0xaa1503f8 4: b9402a60 .word 0xb9402a60 8: aa1503f6 .word 0xaa1503f6 c: b90063e0 .word 0xb90063e0 10:* f94006a0 .word 0xf94006a0 <-- trapping instruction Code starting with the faulting instruction =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 0: f94006a0 .word 0xf94006a0 <4>---[ end trace 0000000000000000 ]--- The disassembly is disappointing, I didn't peer at why that is. --D0i8bOacOOmVqGFC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmPBtH4ACgkQJNaLcl1U h9DpNQf8Czyt/u5BaDQFeT7muEUj/6kfPqMQpWolFNms89VS+F2rJ3V//xXRH37b uP8Tus+06LoMBDLMQeLHAArx6LI7l5axOmTt7d2FrDhSGuBOxGP5HG91e/kfWDet PFlhsSPkDJbR/BUG2GEWZD/O1B0gzNE9Qfu0NMTxE+yHu8Rrr5VRPwUch6kCpQxo K43yEJ+ipfRKPXM4sIl80Z+LRHywJGfQKiPjqlgcjMigZnSUUVkMh+71uke0mBbm 96kqwUQmijUJSFzmaKyZ160r4O37jtyHz4EF8+xKO2Rzm5NtANX0/wrIU54GOPsF RDFAOPEo04q1VTOXo/swQLcb+wiSOw== =tRsG -----END PGP SIGNATURE----- --D0i8bOacOOmVqGFC--