From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@lists.ozlabs.org
Cc: hbathini@linux.ibm.com, sourabhjain@linux.ibm.com
Subject: Re: [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation
Date: Sun, 05 Feb 2023 20:41:47 +1100 [thread overview]
Message-ID: <167559010752.1647710.7373851723687940810.b4-ty@ellerman.id.au> (raw)
In-Reply-To: <20230130014707.541110-1-mpe@ellerman.id.au>
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
prev parent reply other threads:[~2023-02-05 9:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 1:47 [PATCH] powerpc/kexec_file: Fix division by zero in extra size estimation Michael Ellerman
2023-01-31 9:02 ` Sourabh Jain
2023-02-01 1:55 ` Michael Ellerman
2023-02-01 4:23 ` Sourabh Jain
2023-02-02 7:00 ` Hari Bathini
2023-02-05 9:41 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=167559010752.1647710.7373851723687940810.b4-ty@ellerman.id.au \
--to=patch-notifications@ellerman.id.au \
--cc=hbathini@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=sourabhjain@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).