]> xenbits.xensource.com Git - xen.git/commit
x86/setup: correct off-by-1 in module mapping
authorJan Beulich <jbeulich@suse.com>
Thu, 20 Mar 2025 11:55:32 +0000 (12:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 20 Mar 2025 11:55:32 +0000 (12:55 +0100)
commitc607822b5ae946cfc26efd9dd6ffb45f041e2dac
tree6b7d60185c27a57862b40fa71da773b4ce2a5910
parentc1badde6011ca8b626d64ccc61ce33f062468cb3
x86/setup: correct off-by-1 in module mapping

If a module's length is an exact multiple of PAGE_SIZE, the 2nd argument
passed to set_pdx_range() would be one larger than intended. Use
PFN_{UP,DOWN}() there instead.

Fixes: cd7cc5320bb2 ("x86/boot: add start and size fields to struct boot_module")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit: c3b54301fbe918c7e7e9c3b2dfe671c1ab79f882
master date: 2025-03-20 08:51:55 +0100
xen/arch/x86/setup.c