diff options
author | Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> | 2022-04-16 02:45:32 +0000 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-05-01 22:40:29 +0200 |
commit | 7a116a2dd32d96869f0f93bac00b900859ba0434 (patch) | |
tree | d44ee6f1edfd17e6f0ad6468f035c91cd9f706b3 /net/ipv6/ioam6.c | |
parent | daf3af4705ba8f49d33ea9b7bafdc9fd9efd49e0 (diff) | |
download | linux-7a116a2dd32d96869f0f93bac00b900859ba0434.tar.gz linux-7a116a2dd32d96869f0f93bac00b900859ba0434.tar.bz2 linux-7a116a2dd32d96869f0f93bac00b900859ba0434.zip |
x86/apic: Do apic driver probe for "nosmp" use case
For the "nosmp" use case, the APIC initialization code selects
"APIC_SYMMETRIC_IO_NO_ROUTING" as the default interrupt mode and avoids
probing APIC drivers.
This works well for the default APIC modes, but for the x2APIC case the
probe function is required to allocate the cluster_hotplug mask. So in the
APIC_SYMMETRIC_IO_NO_ROUTING case when the x2APIC is initialized it
dereferences a NULL pointer and the kernel crashes.
This was observed on a TDX platform where x2APIC is enabled and "nosmp"
command line option is allowed.
To fix this issue, probe APIC drivers via default_setup_apic_routing() for
the APIC_SYMMETRIC_IO_NO_ROUTING interrupt mode too.
Suggested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/a64f864e1114bcd63593286aaf61142cfce384ea.1650076869.git.sathyanarayanan.kuppuswamy@intel.com
Diffstat (limited to 'net/ipv6/ioam6.c')
0 files changed, 0 insertions, 0 deletions