Skip to content

x86: Cleanup max test CPUs

Sean Christopherson kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86: Fix out of bounds access when processing online_cpuslib/x86/apic.c+2 -20 replies
2/3x86: Declare online_cpus based on MAX_TEST_CPUSlib/x86/smp.c x86/cstart.S x86/cstart64.S+2 -40 replies
3/3x86: Bump max number of test CPUs to 255lib/x86/apic-defs.h+1 -11 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Xu
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/3] x86: Cleanup max test CPUs

Fix a bug Evgeny reported where init_apic_map() can cause random corruption due accessing random bytes far beyond the bounds of online_cpus. Take the opportunity to bump the max number of test CPUs to a realistic maximum, i.e. what kvm-unit-tests can support without a major rework.

Sean Christopherson (3):
x86: Fix out of bounds access when processing online_cpus
x86: Declare online_cpus based on MAX_TEST_CPUS
x86: Bump max number of test CPUs to 255

 lib/x86/apic-defs.h | 2 +-
 lib/x86/apic.c      | 4 ++--
 lib/x86/smp.c       | 2 --
 x86/cstart.S        | 2 +-
 x86/cstart64.S      | 2 +-
 5 files changed, 5 insertions(+), 7 deletions(-)
Signature · 1 line
2.22.0