From: Simon Horman <horms@kernel.org>
To: Chen Haixiang <chenhaixiang3@huawei.com>
Cc: kexec@lists.infradead.org, louhongxiang@huawei.com,
wangbin224@huawei.com, yangyanchao6@huawei.com
Subject: Re: [PATCH] Before adding to usablemem_rgns, check if the memory range is already included.
Date: Mon, 21 Oct 2024 11:25:06 +0100 [thread overview]
Message-ID: <20241021102506.GC402847@kernel.org> (raw)
In-Reply-To: <20241017123859.1377-1-chenhaixiang3@huawei.com>
On Thu, Oct 17, 2024 at 08:38:59PM +0800, Chen Haixiang wrote:
> When kexec_iomem_for_each_line() reads from /proc/iomem,
> concurrent modifications to /proc/iomem may lead to
> usablemem_rgns recording duplicate Crash kernel segments.
> This can result in the number of retrieved Crash kernel
> segments exceeding CRASH_MAX_RESERVED_RANGES, triggering
> a realloc of the crash_reserved_mem in usablemem_rgns,
> which could crash the process. We should ensure that each
> range added to usablemem_rgns is unique to prevent these issues.
Thanks Chen Haixiang,
This looks reasonable to me, but, as per Kernel submissions,
I will need an Signed-off-by line [1] in order to apply this patch.
[1] https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2024-10-21 10:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 12:38 [PATCH] Before adding to usablemem_rgns, check if the memory range is already included Chen Haixiang
2024-10-21 10:25 ` Simon Horman [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-21 11:57 chenhaixiang (A)
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=20241021102506.GC402847@kernel.org \
--to=horms@kernel.org \
--cc=chenhaixiang3@huawei.com \
--cc=kexec@lists.infradead.org \
--cc=louhongxiang@huawei.com \
--cc=wangbin224@huawei.com \
--cc=yangyanchao6@huawei.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