On Tue, 16 Jul 2024 at 07:36, Nathan Chancellor <nat...@kernel.org> wrote: > > Our continuous integration notices a crash when booting User Mode Linux > after commit e3c92e81711d ("runtime constants: add x86 architecture > support")
Ahh. Yes, UML should *not* be using the x86-specific (or any "native") runtime constants, and that was never the intent. But it turns out UML ends up just blindly getting it, because it ends up using the native architecture header files here when it exists. How very annoying. I'm not entirely sure how to tell UML to use the generic header and not the native one. Hmm... Does this simple (whitespace-damaged) patch fix it for you? --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild @@ -19,6 +19,7 @@ generic-y += param.h generic-y += parport.h generic-y += percpu.h generic-y += preempt.h +generic-y += runtime-const.h generic-y += softirq_stack.h generic-y += switch_to.h generic-y += topology.h basically telling UML to not use the runtime-const.h file from the native architecture.. Somebody who knows UML better can probably confirm whether this is the right way to say "don't use the low-level architecture file". Linus