linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] mips: ralink: mt7621: fix too-early kzalloc
@ 2022-11-03  5:05 John Thomson
  2022-11-03  5:05 ` [RFC PATCH 1/3] mips: ralink: mt7621: define MT7621_SYSC_BASE with __iomem John Thomson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John Thomson @ 2022-11-03  5:05 UTC (permalink / raw)
  To: Sergio Paracuellos, Arınç ÜNAL, John Crispin,
	Thomas Bogendoerfer
  Cc: linux-mips, linux-kernel

ralink mt7621 attempts to use kzalloc before normal memory management is
available.
Before v6.1-rc1, mt7621.c soc_dev_init silently failed to kzalloc and
returned in soc_dev_init, but continued to boot without the soc device
registered.
After, kernel crashes before it outputs any console messages

This was bisected to an mm/slub change (detailed in patch 3)

RFC due to
- probably a (much) better way to do this
- do not have mt7621 device with PCIe to test
  drivers/phy/ralink/phy-mt7621-pci.c
- should this reference a commit as Fixes?




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

end of thread, other threads:[~2022-11-05  6:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-03  5:05 [RFC PATCH 0/3] mips: ralink: mt7621: fix too-early kzalloc John Thomson
2022-11-03  5:05 ` [RFC PATCH 1/3] mips: ralink: mt7621: define MT7621_SYSC_BASE with __iomem John Thomson
2022-11-03  5:05 ` [RFC PATCH 2/3] mips: ralink: mt7621: soc queries and tests as functions John Thomson
2022-11-03  5:05 ` [RFC PATCH 3/3] mips: ralink: mt7621: do not use kzalloc too early John Thomson
2022-11-03 11:15   ` John Thomson
2022-11-03 17:25     ` Sergio Paracuellos
2022-11-04 12:29       ` Sergio Paracuellos
2022-11-04 21:12         ` John Thomson
2022-11-05  6:36           ` Sergio Paracuellos

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).