[PATCH] crashdump-x86.c:Add a check for the crash kernel range in exclude_region()

2024-03-21 Thread chenhaixiang
In some cases, such as start < mstart < mend < end when exclude_region(), this results in crash_memory_range[i].end becoming less than crash_memory_range[i].start, leading to incorrect address ranges. Adding a range check should be necessary. Signed-off-by: chenhaixiang chenhaixia...@h

Re: Question about Address Range Validation in Crash Kernel Allocation

2024-03-21 Thread chenhaixiang (A)
> > I'm sorry for the delay. Here are some details from the boot log and > /proc/iomem: > > The Boot log: > > [0.00] Linux version 6.8.0 (root@localhost.localdomain) (gcc (GCC) > 10.3.1, GNU ld (GNU Binutils) 2.37) #3 SMP PREEMPT_DYNAMIC Wed Mar 20 > 11:46:11 UTC 2024 > > [0.00]

Re: Question about Address Range Validation in Crash Kernel Allocation

2024-03-20 Thread chenhaixiang (A)
7:24am, chenhaixiang (A) wrote: > > Thank you for your reply! > > The kernel version on my machine is kernel-5.10, and the kexec-tools > > version is > kexec-tools-2.0.27. > > However, my issue seems to be a bit different. On my machine, I can see the > crashkernel memory segme

Re: Question about Address Range Validation in Crash Kernel Allocation

2024-03-19 Thread chenhaixiang (A)
: Reserved ``` I'm not sure if the crashkernel memory segment should not include other markings, and if not supported, whether kexec-tools should raise an error. Thanks Chen Haixiang -- On 03/19/24 at 9:38qm, Baoquan He wrote: > Hi, > > On 03/18/24 at 12:00pm, chenhaixiang (A) wrote:

Question about Address Range Validation in Crash Kernel Allocation

2024-03-18 Thread chenhaixiang (A)
Dear kexec Community Members, I encountered an issue while using kexec-tools on my x86_64 machine. When there is a segment marked as 'reserved' within the memory range allocated for the crash kernel in /proc/iomem,the output appears as follows: 2d4fd058-60efefff : System RAM 2d4fd058-58ff