]> xenbits.xensource.com Git - xen.git/commit
x86/ioapic: Fix signed shifts in io_apic.c
authorMatthew Barnes <matthew.barnes@cloud.com>
Thu, 4 Jul 2024 12:19:57 +0000 (14:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Jul 2024 12:19:57 +0000 (14:19 +0200)
commit5afa8fea8e64dfab24650400f168d212208a318c
tree58a3447c9e94eaa107525d5c2eb37d73bfa24ab8
parentfd4a15b1f7a7d6bb6a1bd60fce548782ff39f4e1
x86/ioapic: Fix signed shifts in io_apic.c

There exists bitshifts in the IOAPIC code where signed integers are
shifted to the left by up to 31 bits, which is undefined behaviour.

This patch fixes this by changing the integers from signed to unsigned.

Signed-off-by: Matthew Barnes <matthew.barnes@cloud.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: c5746b021e573184fb92b601a0e93a295485054e
master date: 2024-06-21 15:09:26 +0100
xen/arch/x86/io_apic.c