]> xenbits.xensource.com Git - xen.git/commit
libxc/x86: correct overflow avoidance check in AMD CPUID handling
authorJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 13:50:58 +0000 (15:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 25 Sep 2019 13:50:58 +0000 (15:50 +0200)
commitc9c7ac508b3f65f7d5f9685893096a1b22d8b176
tree75757eb01e7ca5c4401de5f164c906467aab3347
parentf93abf0315efef861270c25d83c8047fd6a54ec4
libxc/x86: correct overflow avoidance check in AMD CPUID handling

Commit df29d03f1d ("libxc/x86: avoid certain overflows in CPUID APIC ID
adjustments" introduced a one bit too narrow mask when checking whether
multiplying by 1 (in particular in leaf 1) would result in overflow.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libxc/xc_cpuid_x86.c