public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH 0/3] x86: Cleanup max test CPUs
@ 2019-09-06 16:34 Sean Christopherson
  2019-09-06 16:34 ` [kvm-unit-tests PATCH 1/3] x86: Fix out of bounds access when processing online_cpus Sean Christopherson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sean Christopherson @ 2019-09-06 16:34 UTC (permalink / raw)
  To: Paolo Bonzini, Radim Krčmář; +Cc: kvm, Evgeny Yakovlev

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(-)

-- 
2.22.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-09-10 14:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-06 16:34 [kvm-unit-tests PATCH 0/3] x86: Cleanup max test CPUs Sean Christopherson
2019-09-06 16:34 ` [kvm-unit-tests PATCH 1/3] x86: Fix out of bounds access when processing online_cpus Sean Christopherson
2019-09-06 16:34 ` [kvm-unit-tests PATCH 2/3] x86: Declare online_cpus based on MAX_TEST_CPUS Sean Christopherson
2019-09-06 16:34 ` [kvm-unit-tests PATCH 3/3] x86: Bump max number of test CPUs to 255 Sean Christopherson
2019-09-10 14:46   ` Paolo Bonzini
2019-09-10  7:57 ` [kvm-unit-tests PATCH 0/3] x86: Cleanup max test CPUs Peter Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox