Re: [PATCH] resource, kunit: add dependency on SPARSEMEM

From: Guenter Roeck
Date: Mon Sep 23 2024 - 12:25:38 EST


On 9/23/24 09:01, Geert Uytterhoeven wrote:
Hi Günter.

On Mon, Sep 23, 2024 at 4:55 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
On 9/23/24 06:47, Geert Uytterhoeven wrote:
On Mon, Sep 23, 2024 at 3:39 PM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
Interesting that you get that to boot. The q800 machine crashes for me
when trying to boot it in qemu with the latest upstream kernel, in function
__pte_offset_map_lock(). It bisects to commit 394290cba966 ("mm: turn
USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options").
Reverting that patch fixes the crash for me. I guess you are not seeing that ?

I never used qemu -M q800.
I have just verified that -M virt boots fine?

Not for me :-(

Run /sbin/init as init process
Unable to handle kernel NULL pointer dereference at virtual address 00000014
Oops: 00000000
PC: [<000ca784>] __pte_offset_map_lock+0x36/0x7e

This is with virt_defconfig.

Before, I was using my current development tree, which has lots of
local patches. So I retried with commit 394290cba966.
Boots fine into Debian:


Interesting. I have a lot of debug and kunit test options enabled. Turns out
I can boot cleanly with an unmodified virt_defconfig, but the crash is seen
if I enable the various debug and test options. I attached the defconfig
I used for reference.

Guenter

Attachment: defconfig.debug.gz
Description: application/gzip