mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] init, hugetlb: fix early parameter ordering
@ 2026-09-17  6:28 Zhenghui Hao
  0 siblings, 0 replies; 10+ messages in thread
From: Zhenghui Hao @ 2026-09-17  6:28 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-parisc, linux-kernel

hugetlb records its command line parameters from early_param()
handlers and consumes them later from hugetlb_bootmem_alloc().

Commit d49004c5f0c1 ("arch, mm: consolidate initialization of nodes,
zones and memory map") moved that consumer into mm_core_init_early(),
which runs before the generic parse_early_param() call in
start_kernel().  Architectures that call parse_early_param() from
setup_arch() are not affected, but on parisc the parameters are then
recorded after they have already been consumed and are silently
dropped.

Patch 1/2 moves parse_early_param() before mm_core_init_early(),
together with jump_label_init() and static_call_init() so that the
"parameters may set static keys" guarantee still holds.

Patch 2/2 makes this class of ordering problem non-silent.  It cannot
fire once 1/2 is applied; if you would rather take only the fix,
please drop 2/2.

Not tested on parisc hardware.

Zhenghui Hao (2):
  init: parse early parameters before memory initialization
  hugetlb: report cmdline parameters recorded too late

 init/main.c  |  8 ++++----
 mm/hugetlb.c | 14 ++++++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)


base-commit: 9b87fdc9af2fbfcdb5c24a64139685ef80f6573f
-- 
2.53.0


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

end of thread, other threads:[~2026-09-17  9:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20260917062837.558251-1-zhenghui.hao@qq.com>
2026-09-17  6:28 ` [PATCH 1/2] init: parse early parameters before memory initialization Zhenghui Hao
2026-09-17  6:28 ` [PATCH 2/2] hugetlb: report cmdline parameters recorded too late Zhenghui Hao
2026-09-17  6:55 ` [PATCH 0/2] init, hugetlb: fix early parameter ordering Zhenghui Hao
2026-09-17  7:41   ` Mike Rapoport
2026-09-17  9:19     ` zhenghui.hao
2026-09-17  9:45       ` Mike Rapoport
     [not found]     ` <tencent_B4700AD229B1E6D517FC751924185FD3BB07@qq.com>
2026-09-17  9:21       ` Mike Rapoport
     [not found] ` <20260917065600.564083-1-zhenghui.hao@qq.com>
2026-09-17  6:55   ` [PATCH 1/2] init: parse early parameters before memory initialization Zhenghui Hao
2026-09-17  6:55   ` [PATCH 2/2] hugetlb: report cmdline parameters recorded too late Zhenghui Hao
2026-09-17  6:28 [PATCH 0/2] init, hugetlb: fix early parameter ordering Zhenghui Hao

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

all inboxes | Powered by JetHome®