]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/CPU/AMD: Do not check CPUID max ext level before parsing SMP info
authorBorislav Petkov <bp@suse.de>
Fri, 15 Jun 2018 18:48:39 +0000 (20:48 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 10 Aug 2018 22:56:37 +0000 (18:56 -0400)
commit7aaeab5b55e5b6c785e3ccc4fbee697953b3d886
tree199bf6dfd609d55d1288f1bb518556fa9690cb55
parente2591e855ca8f9456f7a912d999fe6aba832899b
x86/CPU/AMD: Do not check CPUID max ext level before parsing SMP info

Old code used to check whether CPUID ext max level is >= 0x80000008 because
that last leaf contains the number of cores of the physical CPU.  The three
functions called there now do not depend on that leaf anymore so the check
can go.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Orabug: 28220674
CVE: CVE-2018-3620

(cherry picked from commit 119bff8a9c9bb00116a844ec68be7bc4b1c768f5)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Conflicts:
arch/x86/kernel/cpu/amd.c
Contextual: we only have two functions
arch/x86/kernel/cpu/amd.c