On Mon, 30 Jan 2023 12:47:07 +1100, Michael Ellerman wrote: > In kexec_extra_fdt_size_ppc64() there's logic to estimate how much > extra space will be needed in the device tree for some memory related > properties. > > That logic uses the size of RAM divided by drmem_lmb_size() to do the > estimation. However drmem_lmb_size() can be zero if the machine has no > hotpluggable memory configured, which is the case when booting with qemu > and no maxmem=x parameter is passed (the default). > > [...]
Applied to powerpc/fixes. [1/1] powerpc/kexec_file: Fix division by zero in extra size estimation https://git.kernel.org/powerpc/c/7294194b47e994753a86eee8cf1c61f3f36458a3 cheers