From: Miquel Raynal <miquel.raynal@bootlin.com>
To: kernel test robot <oliver.sang@intel.com>
Cc: "Ansuel Smith" <ansuelsmth@gmail.com>,
"0day robot" <lkp@intel.com>, LKML <linux-kernel@vger.kernel.org>,
linux-mtd@lists.infradead.org, lkp@lists.01.org,
"Richard Weinberger" <richard@nod.at>,
"Vignesh Raghavendra" <vigneshr@ti.com>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Jens Axboe" <axboe@kernel.dk>, �ecki <rafal@milecki.pl>,
"Manivannan Sadhasivam" <mani@kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [mtd] a2af0cae87: BUG:kernel_NULL_pointer_dereference,address
Date: Thu, 9 Jun 2022 14:35:51 +0200 [thread overview]
Message-ID: <20220609143551.2c75d949@xps-13> (raw)
In-Reply-To: <20220608154404.GD31193@xsang-OptiPlex-9020>
Hi Ansuel,
oliver.sang@intel.com wrote on Wed, 8 Jun 2022 23:44:04 +0800:
> Greeting,
>
> FYI, we noticed the following commit (built with gcc-11):
>
> commit: a2af0cae87a0205f2f4b89da6e628229a2f8c47f ("[PATCH v5 3/3] mtd: core: introduce of support for dynamic partitions")
> url: https://github.com/intel-lab-lkp/linux/commits/Ansuel-Smith/Add-nvmem-support-for-dynamic-partitions/20220606-232755
> base: https://git.kernel.org/cgit/linux/kernel/git/mtd/linux.git mtd/next
> patch link: https://lore.kernel.org/linux-mtd/20220606151417.19227-4-ansuelsmth@gmail.com
>
> in testcase: boot
>
> on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
>
> caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
Can you look into this?
Thanks,
Miquèl
>
>
> +---------------------------------------------+------------+------------+
> | | 96a45c785b | a2af0cae87 |
> +---------------------------------------------+------------+------------+
> | boot_successes | 25 | 0 |
> | boot_failures | 0 | 12 |
> | BUG:kernel_NULL_pointer_dereference,address | 0 | 12 |
> | Oops:#[##] | 0 | 12 |
> | EIP:add_mtd_device | 0 | 12 |
> | Kernel_panic-not_syncing:Fatal_exception | 0 | 12 |
> +---------------------------------------------+------------+------------+
>
>
> If you fix the issue, kindly add following tag
> Reported-by: kernel test robot <oliver.sang@intel.com>
>
>
> [ 2.820056][ T1] BUG: kernel NULL pointer dereference, address: 00000360
> [ 2.821034][ T1] #PF: supervisor read access in kernel mode
> [ 2.821862][ T1] #PF: error_code(0x0000) - not-present page
> [ 2.822468][ T1] *pde = 00000000
> [ 2.822468][ T1] Oops: 0000 [#1]
> [ 2.822468][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.18.0-rc3-00074-ga2af0cae87a0 #1
> [ 2.822468][ T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
> [ 2.822468][ T1] EIP: add_mtd_device+0x32d/0x6a0
> [ 2.822468][ T1] Code: 01 ff ff ff 8d 50 ff 85 c2 0f 84 ec fe ff ff 31 c0 e9 ef fe ff ff 8d b4 26 00 00 00 00 8b 83 cc 03 00 00 3d 08 ff ff ff 74 0e <8b> 80 60 03 00 00 85 c0 0f 85 65 01 00 00 8b 7d 84 89 f8 e8 3b 61
> [ 2.822468][ T1] EAX: 00000000 EBX: c6eaa000 ECX: 00000001 EDX: 00000000
> [ 2.822468][ T1] ESI: 00000000 EDI: c6eaa0f8 EBP: c3f0becc ESP: c3f0be44
> [ 2.822468][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010213
> [ 2.822468][ T1] CR0: 80050033 CR2: 00000360 CR3: 0345a000 CR4: 000406d0
> [ 2.822468][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
> [ 2.822468][ T1] DR6: fffe0ff0 DR7: 00000400
> [ 2.822468][ T1] Call Trace:
> [ 2.822468][ T1] ? parse_ofoldpart_partitions+0x60/0x60
> [ 2.822468][ T1] ? mtd_part_of_parse+0x118/0x240
> [ 2.822468][ T1] ? mtd_part_of_parse+0x20e/0x240
> [ 2.822468][ T1] ? parse_mtd_partitions+0xfa/0x200
> [ 2.822468][ T1] mtd_device_parse_register+0x19f/0x2b0
> [ 2.822468][ T1] mtdram_init_device+0xb7/0x100
> [ 2.822468][ T1] init_mtdram+0x67/0xaf
> [ 2.822468][ T1] ? init_phram+0x54/0x54
> [ 2.822468][ T1] do_one_initcall+0x58/0x240
> [ 2.822468][ T1] ? rdinit_setup+0x38/0x38
> [ 2.822468][ T1] do_initcalls+0xf3/0x112
> [ 2.822468][ T1] kernel_init_freeable+0xbd/0xec
> [ 2.822468][ T1] ? rest_init+0x100/0x100
> [ 2.822468][ T1] kernel_init+0x12/0xf0
> [ 2.822468][ T1] ret_from_fork+0x1c/0x30
> [ 2.822468][ T1] Modules linked in:
> [ 2.822468][ T1] CR2: 0000000000000360
> [ 2.822468][ T1] ---[ end trace 0000000000000000 ]---
> [ 2.822468][ T1] EIP: add_mtd_device+0x32d/0x6a0
> [ 2.822468][ T1] Code: 01 ff ff ff 8d 50 ff 85 c2 0f 84 ec fe ff ff 31 c0 e9 ef fe ff ff 8d b4 26 00 00 00 00 8b 83 cc 03 00 00 3d 08 ff ff ff 74 0e <8b> 80 60 03 00 00 85 c0 0f 85 65 01 00 00 8b 7d 84 89 f8 e8 3b 61
> [ 2.822468][ T1] EAX: 00000000 EBX: c6eaa000 ECX: 00000001 EDX: 00000000
> [ 2.822468][ T1] ESI: 00000000 EDI: c6eaa0f8 EBP: c3f0becc ESP: c3f0be44
> [ 2.822468][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010213
> [ 2.822468][ T1] CR0: 80050033 CR2: 00000360 CR3: 0345a000 CR4: 000406d0
> [ 2.822468][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
> [ 2.822468][ T1] DR6: fffe0ff0 DR7: 00000400
> [ 2.822468][ T1] Kernel panic - not syncing: Fatal exception
> [ 2.822468][ T1] Kernel Offset: disabled
>
>
>
> To reproduce:
>
> # build kernel
> cd linux
> cp config-5.18.0-rc3-00074-ga2af0cae87a0 .config
> make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
> make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 INSTALL_MOD_PATH=<mod-install-dir> modules_install
> cd <mod-install-dir>
> find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
>
>
> git clone https://github.com/intel/lkp-tests.git
> cd lkp-tests
> bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email
>
> # if come across any failure that blocks the test,
> # please remove ~/.lkp and /lkp dir to run from a clean state.
>
>
>
next prev parent reply other threads:[~2022-06-09 12:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-06 15:14 [PATCH v5 0/3] Add nvmem support for dynamic partitions Ansuel Smith
2022-06-06 15:14 ` [PATCH v5 1/3] dt-bindings: mtd: partitions: Support label only partition Ansuel Smith
2022-06-09 18:32 ` Rob Herring
2022-06-09 19:57 ` Ansuel Smith
2022-06-10 17:02 ` Rob Herring
2022-06-11 12:36 ` Ansuel Smith
2022-06-13 19:25 ` Ansuel Smith
2022-06-06 15:14 ` [PATCH v5 2/3] dt-bindings: mtd: partitions: add additional example for qcom,smem-part Ansuel Smith
2022-06-09 18:33 ` Rob Herring
2022-06-06 15:14 ` [PATCH v5 3/3] mtd: core: introduce of support for dynamic partitions Ansuel Smith
2022-06-08 15:44 ` [mtd] a2af0cae87: BUG:kernel_NULL_pointer_dereference,address kernel test robot
2022-06-09 12:35 ` Miquel Raynal [this message]
2022-10-17 19:59 ` [PATCH v5 3/3] mtd: core: introduce of support for dynamic partitions han.xu
2022-10-17 21:52 ` Rafał Miłecki
2022-10-18 2:48 ` han.xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220609143551.2c75d949@xps-13 \
--to=miquel.raynal@bootlin.com \
--cc=ansuelsmth@gmail.com \
--cc=axboe@kernel.dk \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=lkp@intel.com \
--cc=lkp@lists.01.org \
--cc=mani@kernel.org \
--cc=oliver.sang@intel.com \
--cc=rafal@milecki.pl \
--cc=richard@nod.at \
--cc=robh+dt@kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).