]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/CPU: Modify detect_extended_topology() to return result
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Fri, 27 Apr 2018 21:48:00 +0000 (16:48 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 8 Aug 2018 12:08:07 +0000 (14:08 +0200)
commita8dba69260031ea73148c14758ed2f8d4c1ec1f1
tree1b0f76dffc6a59b840a9c31d1ecc613b16a6363d
parent72b7729016b07bdc4016963c0d6b76692af00025
x86/CPU: Modify detect_extended_topology() to return result

Current implementation does not communicate whether it can successfully
detect CPUID function 0xB information. Therefore, modify the function to
return success or error codes. This will be used by subsequent patches.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1524865681-112110-2-git-send-email-suravee.suthikulpanit@amd.com
CVE-2018-3620
CVE-2018-3646

(cherry picked from commit 6c4f5abaf3566dbf5b26e7b14f4392be400f12e3)
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/topology.c