public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* SPI-NAND crash on linux-next
@ 2026-02-06 17:55 Fabio Estevam
  2026-02-07  3:31 ` Fabio Estevam
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2026-02-06 17:55 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger
  Cc: Vignesh Raghavendra, Tudor Ambarus, linux-mtd

Hi,

With kernel 6.19-rc8, the W25N02KVZEIR SPI NAND flash is correctly
detected on a Rockchip board:

[    2.012543] spi-nand spi0.0: Winbond SPI NAND was found.
[    2.018512] spi-nand spi0.0: 256 MiB, block size: 128 KiB, page
size: 2048, OOB size: 128
[    2.027874] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.035035] Creating 5 MTD partitions on "spi0.0":
[    2.040387] 0x000000000000-0x000000040000 : "env"
[    2.069278] 0x000000040000-0x000000140000 : "idblock"
[    2.077356] 0x000000140000-0x000000240000 : "uboot"
[    2.085266] 0x000000240000-0x000000a40000 : "boot"
[    2.095699] 0x000000a40000-0x000010000000 : "ubi"


When I try linux-next 20260205, it crashes:

[    1.963763] 8<--- cut here ---
[    1.967204] Unable to handle kernel NULL pointer dereference at
virtual address 00000004 when read
[    1.977285] [00000004] *pgd=00000000
[    1.981297] Internal error: Oops: 5 [#1] SMP ARM
[    1.986460] Modules linked in:
[    1.989876] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted
6.19.0-rc8-next-20260205-00011-g45de7a4ee41d #8 VOLUNTARY
[    2.001935] Hardware name: Generic DT based system
[    2.007288] PC is at spinand_match_and_init+0x13c/0x4a8
[    2.013137] LR is at 0x2
[    2.015966] pc : [<c07c9dfc>]    lr : [<00000002>]    psr: a0000053
[    2.022969] sp : d0811b50  ip : 00000000  fp : c0b66924
[    2.028808] r10: c0b66900  r9 : c195c7e4  r8 : c0b668f8
[    2.034646] r7 : c195c3cc  r6 : 00000000  r5 : c0b668b0  r4 : c195c040
[    2.041940] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : c101db48
[    2.049237] Flags: NzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM
Segment none
[    2.057312] Control: 10c5387d  Table: 0000406a  DAC: 00000051
[    2.063732] Register r0 information: non-slab/vmalloc memory
[    2.070062] Register r1 information: NULL pointer
[    2.075319] Register r2 information: NULL pointer
[    2.080577] Register r3 information: NULL pointer
[    2.085835] Register r4 information: slab kmalloc-4k start c195c000
pointer offset 64 size 4096
[    2.095577] Register r5 information: non-slab/vmalloc memory
[    2.101903] Register r6 information: NULL pointer
[    2.107161] Register r7 information: slab kmalloc-4k start c195c000
pointer offset 972 size 4096
[    2.116996] Register r8 information: non-slab/vmalloc memory
[    2.123322] Register r9 information: slab kmalloc-4k start c195c000
pointer offset 2020 size 4096
[    2.133253] Register r10 information: non-slab/vmalloc memory
[    2.139676] Register r11 information: non-slab/vmalloc memory
[    2.146099] Register r12 information: NULL pointer
[    2.151452] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    2.158167] Stack: (0xd0811b50 to 0xd0812000)
[    2.163038] 1b40:                                     00000002
c0b662cc c0b6228c c195c040
[    2.172181] 1b60: 00000002 c0b62290 00000002 c195c440 c0cc2990
c07ca1c4 c195c040 00000001
[    2.181316] 1b80: 00000000 c1d4f800 c1d4f800 c07ca4e4 c191e900
c0ad7764 00000080 00000dc0
[    2.190460] 1ba0: c191e900 c02dbdb8 00000000 00000000 c1bbbf80
c1d4f800 c1d4f800 c1bbbfc0
[    2.199603] 1bc0: c1d4f9a8 c0740a98 c1bbbf80 00000053 c1d4f800
c0741204 c1d4f800 00000000
[    2.208747] 1be0: c1d4fc00 b445b6c1 c1d4f800 00000000 c101c0f4
00000000 c1998740 c1013e5c
[    2.217891] 1c00: d0811d44 c073c000 c1d4f800 c101c0f4 c1d4f800
00000000 c1998740 c073c288
[    2.227033] 1c20: 60000053 c1013e5c c10972d4 c101c0f4 c1d4f800
00000000 c1998740 c073c468
[    2.236176] 1c40: 00000001 c101c0f4 d0811c9c c1d4f800 c1998740
c073c5d0 00000000 c1998700
[    2.245318] 1c60: d0811c9c c073c53c c1998740 c073a2dc c1d4fc84
c199876c c1d67cb8 b445b6c1
[    2.254463] 1c80: d0811d44 c1d4f800 00000001 c1d4f844 c1998700
c073c944 cffceae4 c1d4f800
[    2.263597] 1ca0: 00000001 b445b6c1 c1998700 c1d4f800 c1998700
c073cb9c c1d4f800 c1d4f800
[    2.272742] 1cc0: c1998700 c073b110 c1d4f800 00000000 cffce918
c1d4fc00 00000000 c0738cb8
[    2.281885] 1ce0: c0cc2990 c07ecaa4 c1d4f800 00000000 c189a410
b445b6c1 00000000 c1d4f800
[    2.291029] 1d00: c1d4fc00 c189a410 00000000 c0cc2828 00000001
c07ef0d8 00000000 c1d4f800
[    2.300171] 1d20: cffce90c c1d4fe1c c0cc2828 c07ef984 00000000
c191e900 00000004 c1d4fc00
[    2.309315] 1d40: ffffffff 047868c0 c1d67080 00000000 c189a410
a0000053 c189a5b8 c0740a98
[    2.318457] 1d60: c1d67080 c0e966e0 c189a410 c0741010 c0cb18b0
00003e00 cffce90c b445b6c1
[    2.327602] 1d80: 00000000 c1d4fc00 00000000 cffce90c cffce970
c0cc2cbc c189a510 00003e00
[    2.336744] 1da0: c0d3fa54 c07f0114 c1d67640 0000001f c19a2b80
c189a410 ffffffff c1cb8000
[    2.345887] 1dc0: c1d4fc00 c189a410 c189a410 c1d4ff40 c189a510
00003e00 c0d3fa54 c07f03e8
[    2.355030] 1de0: c1cb8000 c1d4fc00 c189a400 c07f5db8 00000000
00000000 c1d4ff40 c06c2e28
[    2.364174] 1e00: c189a410 c101fcf4 c101fcf4 00000000 c189a40f
c0ced088 c0e5c858 c073eb74
[    2.373316] 1e20: c189a410 00000000 c101fcf4 c073c000 c189a410
c101fcf4 c189a410 00000000
[    2.382460] 1e40: c189a40f c073c288 60000053 c0ced088 c10972d4
c101fcf4 c189a410 00000000
[    2.391603] 1e60: c189a40f c073c468 c189a410 c101fcf4 c189a454
00000001 c189a40f c073c6fc
[    2.400746] 1e80: 00000000 c101fcf4 c073c644 c181df00 c1d679b8
c073a028 c181df00 c181df58
[    2.409889] 1ea0: c1982934 b445b6c1 c0e2a8dc c101fcf4 c1d67980
00000000 c181df00 c073b314
[    2.419034] 1ec0: c0cc355c 00000000 c101fcf4 c0e2a8dc c0e5c838
c191e900 00000000 c073d788
[    2.428176] 1ee0: c104ce60 c0e2a8dc c0e5c838 c01109cc 00000492
00000000 c18b5385 c18b5300
[    2.437320] 1f00: c18b5384 c01572f4 c18a290c c0cc4298 000000ea
00000000 00000000 c0e004dc
[    2.446462] 1f20: 00000006 00000006 c191e900 c18b539b c18b53a6
b445b6c1 0000001b b445b6c1
[    2.455606] 1f40: c18b5300 c0e86768 c18b5300 c0e5c838 00000007
c104ce60 c0ced088 c0e0145c
[    2.464740] 1f60: 00000006 00000006 00000000 c0e004dc 000000ea
c0e004dc c0ad3fac c0f04f80
[    2.473885] 1f80: c0ad3fac 00000000 00000000 00000000 00000000
00000000 00000000 c0ad3fc4
[    2.483026] 1fa0: 00000000 c0ad3fac 00000000 c010014c 00000000
00000000 00000000 00000000
[    2.492170] 1fc0: 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[    2.501312] 1fe0: 00000000 00000000 00000000 00000000 00000013
00000000 00000000 00000000
[    2.510453] Call trace:
[    2.510464]  spinand_match_and_init from spinand_manufacturer_match+0x5c/0x7c
[    2.521273]  spinand_manufacturer_match from spinand_probe+0x300/0x870
[    2.528577]  spinand_probe from really_probe+0xc8/0x2c8
[    2.534424]  really_probe from __driver_probe_device+0x88/0x1a0
[    2.541044]  __driver_probe_device from driver_probe_device+0x30/0x104
[    2.548345]  driver_probe_device from __device_attach_driver+0x94/0x108
[    2.555742]  __device_attach_driver from bus_for_each_drv+0x84/0xdc
[    2.562759]  bus_for_each_drv from __device_attach+0xac/0x1d0
[    2.569189]  __device_attach from device_initial_probe+0x3c/0x48
[    2.575907]  device_initial_probe from bus_probe_device+0x28/0x7c
[    2.582726]  bus_probe_device from device_add+0x564/0x74c
[    2.588770]  device_add from __spi_add_device+0x14c/0x21c
[    2.594808]  __spi_add_device from of_register_spi_device+0x5c0/0x970
[    2.602017]  of_register_spi_device from spi_register_controller+0x3e0/0x6a0
[    2.609908]  spi_register_controller from
devm_spi_register_controller+0x14/0x58
[    2.618177]  devm_spi_register_controller from rockchip_sfc_probe+0x2b0/0x468
[    2.626163]  rockchip_sfc_probe from platform_probe+0x5c/0x98
[    2.632591]  platform_probe from really_probe+0xc8/0x2c8
[    2.638533]  really_probe from __driver_probe_device+0x88/0x1a0
[    2.645152]  __driver_probe_device from driver_probe_device+0x30/0x104
[    2.652452]  driver_probe_device from __driver_attach+0xb8/0x1bc
[    2.659162]  __driver_attach from bus_for_each_dev+0x70/0xc4
[    2.665493]  bus_for_each_dev from bus_add_driver+0xcc/0x1ec
[    2.671821]  bus_add_driver from driver_register+0x7c/0x114
[    2.678058]  driver_register from do_one_initcall+0x48/0x2b8
[    2.684393]  do_one_initcall from kernel_init_freeable+0x1dc/0x268
[    2.691314]  kernel_init_freeable from kernel_init+0x18/0x12c
[    2.697739]  kernel_init from ret_from_fork+0x14/0x28
[    2.703390] Exception stack(0xd0811fb0 to 0xd0811ff8)
[    2.709035] 1fa0:                                     00000000
00000000 00000000 00000000
[    2.718178] 1fc0: 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000
[    2.727321] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    2.734718] Code: e3500000 0a0000d9 e58405c8 e5952064 (e5923004)
[    2.741612] ---[ end trace 0000000000000000 ]---
[    2.817296] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    2.825900] ---[ end Kernel panic - not syncing: Attempted to kill
init! exitcode=0x0000000b ]---

I haven't started bisecting yet, but just wanted to report in case
someone has any suggestions.

Thanks,

Fabio Estevam

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SPI-NAND crash on linux-next
  2026-02-06 17:55 SPI-NAND crash on linux-next Fabio Estevam
@ 2026-02-07  3:31 ` Fabio Estevam
  2026-02-09  8:25   ` Miquel Raynal
  0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2026-02-07  3:31 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger
  Cc: Vignesh Raghavendra, Tudor Ambarus, linux-mtd

On Fri, Feb 6, 2026 at 2:55 PM Fabio Estevam <festevam@gmail.com> wrote:

> When I try linux-next 20260205, it crashes:
>
> [    1.963763] 8<--- cut here ---
> [    1.967204] Unable to handle kernel NULL pointer dereference at

This has been fixed by:

https://lore.kernel.org/linux-mtd/177038510238.1182336.10818314123558864993.b4-ty@bootlin.com/T/#t

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SPI-NAND crash on linux-next
  2026-02-07  3:31 ` Fabio Estevam
@ 2026-02-09  8:25   ` Miquel Raynal
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2026-02-09  8:25 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus, linux-mtd

Hi Fabio,

On 07/02/2026 at 00:31:28 -03, Fabio Estevam <festevam@gmail.com> wrote:

> On Fri, Feb 6, 2026 at 2:55 PM Fabio Estevam <festevam@gmail.com> wrote:
>
>> When I try linux-next 20260205, it crashes:
>>
>> [    1.963763] 8<--- cut here ---
>> [    1.967204] Unable to handle kernel NULL pointer dereference at
>
> This has been fixed by:
>
> https://lore.kernel.org/linux-mtd/177038510238.1182336.10818314123558864993.b4-ty@bootlin.com/T/#t

Sorry for the inconvenience, I tried to be as fast as I could when the
bug got reported/fixed but bleeding edge testers like you managed to
reproduce it!

Cheers,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-09  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-06 17:55 SPI-NAND crash on linux-next Fabio Estevam
2026-02-07  3:31 ` Fabio Estevam
2026-02-09  8:25   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox