# Re: \[PATCH\] powerpc/kexec\_file: Use inclusive range checks for excluded memory

- From: Madhavan Srinivasan \<maddy@linux.ibm.com\>
- Date: 2026-09-09 06:19:32 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2026/09/17535521
- Thread: https://ratatoskr.run/linuxppc-dev/2026/08/17392236/t.md

```text
On Mon, 10 Aug 2026 16:58:27 +0200, Thorsten Blum wrote:
> arch_check_excluded_range() checks if a kexec segment overlaps an
> excluded memory range.
> 
> Both ranges use inclusive end addresses, but the overlap check uses
> exclusive comparisons. This skips ranges with start == ->ranges[i].end
> or end == ->ranges[i].start. Use inclusive comparisons instead.
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/kexec_file: Use inclusive range checks for excluded memory
      https://git.kernel.org/powerpc/c/449f60f99f8f3cbe80a9bd2242945e827c5ed003

cheers

```
