]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/xen: Fix xen_e820_swap_entry_with_ram()
authorJuergen Gross <jgross@suse.com>
Tue, 5 May 2026 10:24:17 +0000 (12:24 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 14 May 2026 16:33:05 +0000 (18:33 +0200)
commit28e03f78e69cf6628b81f24777799778528a84c1
tree29866430b9ca9024c7d46cb72c85417424e586f2
parent11f152c0acaa924d93339000cb785d34e003aff5
x86/xen: Fix xen_e820_swap_entry_with_ram()

When swapping a not page-aligned E820 map entry with RAM, the start
address of the modified entry is calculated wrong (the offset into the
page is subtracted instead of being added to the page address).

Fixes: be35d91c8880 ("xen: tolerate ACPI NVS memory overlapping with Xen allocated memory")
Reported-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260505102417.208138-1-jgross@suse.com>
arch/x86/xen/setup.c