Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1187985rwb; Fri, 13 Jan 2023 09:00:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXs5gRzrP5kaLLVlWOywAQO/ohZc36eowhIZS7HB83g/qYpmiRP8ZIs6FI/XULqkbjhOO+e4 X-Received: by 2002:a62:1684:0:b0:587:8d47:acdd with SMTP id 126-20020a621684000000b005878d47acddmr17542974pfw.34.1673629215270; Fri, 13 Jan 2023 09:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673629215; cv=none; d=google.com; s=arc-20160816; b=HIeYc5CgahclT/NI5De3GFGqFn7hT6z2l7lIQJLedpu+zKcUJsxYTCvwZavt1TjE7c u1MTkvNzt12868xDRNbW1Oa3Jf/O2aYCfBvaynXDUbpy9z8KSIto8BHehai16vQe5tfI rliiDVtNxi0kEdXbQgPkmjVaB8VNE2LP2J2PE3Te/Hr+2JYZmI2W2eHJMGstpWeC9TI+ ergOZIk7RGrXyTCSkLw+RtxZ+i8QpXr+CXUqjhp+okQ0TuOkehRTZJq0AkaX3ZPp0kWa 3sI0A7FNHgVPw3NZhZC3LfSiR3S5Zhi6nm/R0r0fohNgW4/z36YOdiqZYPAh1VyH1Ra3 FKoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=C6Lr+L/LblDc+yJNt4wnXXxJYLKQypjal3HX7Zk/JBs=; b=HEDMANZieJsg8wpQDFRRTegrc8XjT0061CSiNXEgBs4yDdNH8QsYgqtVzEwmoWPhyD tVYulr/nt3jo9j95Y2vyJWahkZvuzUKVnuHf9iP0SFRhWTIvTtR72c8iaRmFSdh470Q9 Nzl/tyJjp0mnapgtcseVgDH5mS0tePnmvR6BoNmQFTa/sJIEBPgv3Pa7XLfPbLk4nRXr 2X5H6RhewKkWAgbHILjadIRPg/Jh6kHsXvkw4sXBJm8ZWLBU9zRbY+fssTNr3cnWHjPM lORyULlTHoprrtI2TAYcbP1Vqz7TLo8x6UzgAMGDLCe39hrhJAe5yfD9Ln5IlQrgbTAD gypg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IQFN/OGI"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056a00150f00b00576950b449asi20766698pfu.351.2023.01.13.09.00.08; Fri, 13 Jan 2023 09:00:15 -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=@linaro.org header.s=google header.b="IQFN/OGI"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229379AbjAMQn6 (ORCPT + 51 others); Fri, 13 Jan 2023 11:43:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjAMQnI (ORCPT ); Fri, 13 Jan 2023 11:43:08 -0500 Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F38063F62 for ; Fri, 13 Jan 2023 08:41:30 -0800 (PST) Received: by mail-ua1-x932.google.com with SMTP id bx24so548458uab.4 for ; Fri, 13 Jan 2023 08:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C6Lr+L/LblDc+yJNt4wnXXxJYLKQypjal3HX7Zk/JBs=; b=IQFN/OGInODCXa4DHXL6w34lhdPc1uMskQ5g7tFJ0oHfQYVPZoDjRMxAFWls6ofeWI Cc192jIOfJM4wAyYcKAzsILPmuH/oreySiel5v2C3xqH4k0ub7n9d9vDVs5g9waeUXgX kxFNOB1d1SEzSPi1CiaUfgjIUzSpfz0061je3FuODY/reLKaXtqBRgCCv2bNKGY0kgDu kg0ue1bkJsKsUnApNAYnZK2GQkeZzEiLoL3zVScbH/htfTDt4RbLoXpGVSjVF0K9pZkk M/oghv0bs48g7pHRF1czjSowPm9mhKnPNjFmkrPVvHGuHD6SMZykgiyvnpewOvDcA/mV eT2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C6Lr+L/LblDc+yJNt4wnXXxJYLKQypjal3HX7Zk/JBs=; b=CEaYqfxLa+YhzKVo6umS8ylkpJgSwmSLIOxswJsPOk+Yrj5tFN6AP8gOu1GpsQXN7y uCV3JNHD4Ehi299zMo2c2AeFJTOYTtI8HMAWVeWzwcTa/VH69rBjHv76xjnfDOMHj9d5 /SJNDB1iI9U5w1YadqsizzSFcxWxevlM/5G+8SfbOKt4b3zvDUpl5lSvWeUmjrms5kxU XKJBsF7MDqVtSIY+RRa0oCeby8nPopHMCswrXR4jD4gcA5Sspim07hKkrHmTd44yFPX6 AN9Z4YMUKo01s68UIxquudSodNeqPymj/vbg69aKGkShEGDeEkBgNsB10jiUNdSU1rl2 S+GQ== X-Gm-Message-State: AFqh2kqLGxD6shiek7yZ+eIVrNEGVTvYOZ80vtOYXStu8UCA9GV6GqLk R3glIf0las0k21IcH3JqTJDEs0fBkKKtaHxoO+9l7A== X-Received: by 2002:ab0:3102:0:b0:5a4:c264:fb05 with SMTP id e2-20020ab03102000000b005a4c264fb05mr5531047ual.22.1673628089580; Fri, 13 Jan 2023 08:41:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Fri, 13 Jan 2023 22:11:18 +0530 Message-ID: Subject: Re: next: BUG: kernel NULL pointer dereference, address: 0000000000000008 - RIP: 0010:do_wp_page To: Matthew Wilcox Cc: open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, regressions@lists.linux.dev, Kefeng Wang , Mark Brown , Andrew Morton , Arnd Bergmann , Anders Roxell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Fri, 13 Jan 2023 at 21:23, Matthew Wilcox wrote: > > On Fri, Jan 13, 2023 at 09:14:15PM +0530, Naresh Kamboju wrote: > > Hi Matthew, > > > > On Fri, 13 Jan 2023 at 19:32, Matthew Wilcox wrote: > > > > > > On Fri, Jan 13, 2023 at 06:53:01PM +0530, Naresh Kamboju wrote: > > > > Linux next tag 20230113 boot failed on x86_64, arm64, arm and i386. > > > > > > Why are you still not running these stack dumps through > > > scripts/decode_stacktrace.sh ? That seems like it's much easier for you > > > to do than expecting everybody who might be interested in investigating > > > your reports to pull down enough of the build artifacts to make it work. > > > > Hope this will help you. > > > > # ./scripts/decode_stacktrace.sh vmlinux < input.txt > output.txt > > > > stack dumps: > > ------------------ > > [ 15.945626] BUG: kernel NULL pointer dereference, address: 0000000000000008 > > [ 15.952588] #PF: supervisor read access in kernel mode > > [ 15.957720] #PF: error_code(0x0000) - not-present page > > [ 15.962850] PGD 8000000103213067 P4D 8000000103213067 PUD 103212067 PMD 0 > > [ 15.969724] Oops: 0000 [#1] PREEMPT SMP PTI > > [ 15.973909] CPU: 3 PID: 1 Comm: init Not tainted 6.2.0-rc3-next-20230113 #1 > > [ 15.980869] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS > > 2.0b 07/27/2017 > > [ 15.988336] RIP: 0010:do_wp_page (memory.c:?) > > Uh, are you compiling your kernels without debuginfo? We have a large set of build combinations with and without debug info. > The results > from syzbot & 0day are much more useful: > > https://lore.kernel.org/linux-mm/Y8FnAwWOxLrfoWTN@casper.infradead.org/T/#u > > for an example. > > > [ 16.087446] Call Trace: > > [ 16.089893] > > [ 16.091991] ? trace_preempt_off (??:?) > > [ 16.096087] ? __handle_mm_fault (memory.c:?) > > [ 16.100439] __handle_mm_fault (memory.c:?) > > [ 16.104617] handle_mm_fault (??:?) > > [ 16.108457] do_user_addr_fault (fault.c:?) > > [ 16.112642] exc_page_fault (??:?) > > [ 16.116394] asm_exc_page_fault (??:?) > > [ 16.120408] RIP: 0033:0x7fe169dbf31e > > > Call Trace: > > > > wp_page_copy mm/memory.c:3047 [inline] > > do_wp_page+0x749/0x3880 mm/memory.c:3425 > > handle_pte_fault mm/memory.c:4937 [inline] > > __handle_mm_fault+0x2183/0x3eb0 mm/memory.c:5061 > > handle_mm_fault+0x1b6/0x850 mm/memory.c:5207 > > do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1407 > > handle_page_fault arch/x86/mm/fault.c:1498 [inline] > > exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1554 > > asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 > > RIP: 0033:0x7f92c0e2df98 > > See how much more useful that is? From next time I will send regression email reports with decode_stacktrace.sh For example: Here is the decode stack trace from arm64 with filename and line number, [ 0.288009] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 [ 0.288618] Mem abort info: [ 0.288812] ESR = 0x0000000096000006 [ 0.289069] EC = 0x25: DABT (current EL), IL = 32 bits [ 0.289427] SET = 0, FnV = 0 [ 0.289634] EA = 0, S1PTW = 0 [ 0.289851] FSC = 0x06: level 2 translation fault [ 0.290181] Data abort info: [ 0.290382] ISV = 0, ISS = 0x00000006 [ 0.290640] CM = 0, WnR = 0 [ 0.290846] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000100931000 [ 0.291273] [0000000000000008] pgd=0800000101910003, p4d=0800000101910003, pud=0800000101911003, pmd=0000000000000000 [ 0.292007] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP [ 0.292428] Modules linked in: [ 0.292639] CPU: 1 PID: 1 Comm: init Not tainted 6.2.0-rc3-next-20230113 #1 [ 0.293100] Hardware name: linux,dummy-virt (DT) [ 0.293409] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 0.293874] pc : _compound_head (include/linux/page-flags.h:251) [ 0.294186] lr : do_wp_page (include/linux/rmap.h:156 mm/memory.c:3057 mm/memory.c:3425) [ 0.294443] sp : ffff80000803bbf0 [ 0.294669] x29: ffff80000803bbf0 x28: ffff0000c02d0000 x27: 0000000000000a55 [ 0.295140] x26: ffff0000c0980000 x25: ffff0000c0980000 x24: 0000000000000000 [ 0.295621] x23: 0000000000000a55 x22: ffff0000c0932c60 x21: ffff0000c0932c60 [ 0.296122] x20: 0000000000000000 x19: ffff80000803bd18 x18: 0000000000000000 [ 0.296620] x17: 0000000000000000 x16: 0000000000000000 x15: ffff0000c1938400 [ 0.297121] x14: ffff0000c0980000 x13: ffffdec19c918600 x12: 0000ffff86e83fff [ 0.297621] x11: 0000ffff86c86000 x10: 1fffe00018327081 x9 : ffffdec19c3ec4e8 [ 0.298124] x8 : ffff80000803bb38 x7 : 0000000000000000 x6 : 0000000000000001 [ 0.298624] x5 : ffffdec19dbbf000 x4 : ffffdec19dbbf2e8 x3 : 0000000000000000 [ 0.299125] x2 : ffff0000c02d0000 x1 : ffff0000c02d0000 x0 : 0000000000000000 [ 0.299627] Call trace: [ 0.299804] _compound_head (include/linux/page-flags.h:251) [ 0.300059] __handle_mm_fault (mm/memory.c:4937 mm/memory.c:5061) [ 0.300359] handle_mm_fault (mm/memory.c:5207) [ 0.300640] do_page_fault (arch/arm64/mm/fault.c:512 arch/arm64/mm/fault.c:612) [ 0.300909] do_mem_abort (arch/arm64/mm/fault.c:831) [ 0.301161] el0_da (arch/arm64/include/asm/daifflags.h:28 arch/arm64/kernel/entry-common.c:133 arch/arm64/kernel/entry-common.c:142 arch/arm64/kernel/entry-common.c:516) [ 0.301379] el0t_64_sync_handler (arch/arm64/kernel/entry-common.c:659) [ 0.301684] el0t_64_sync (arch/arm64/kernel/entry.S:584) [ 0.301952] Code: d65f03c0 d4210000 d503201f d503201f (f9400401) All code ======== 0:* c0 03 5f rolb $0x5f,(%rbx) <-- trapping instruction 3: d6 (bad) 4: 00 00 add %al,(%rax) 6: 21 d4 and %edx,%esp 8: 1f (bad) 9: 20 03 and %al,(%rbx) b: d5 (bad) c: 1f (bad) d: 20 03 and %al,(%rbx) f: d5 (bad) 10: 01 04 40 add %eax,(%rax,%rax,2) 13: f9 stc Code starting with the faulting instruction =========================================== 0: 01 04 40 add %eax,(%rax,%rax,2) 3: f9 stc [ 0.302379] ---[ end trace 0000000000000000 ]--- [ 0.302718] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Thank you. Best regards Naresh Kamboju