android_kernel_xiaomi_sm8350/arch/x86_64
Andi Kleen 75bd665cc9 [PATCH] x86_64: Fix fast check in safe_smp_processor_id
The APIC ID returned by hard_smp_processor_id can be beyond
NR_CPUS and then overflow the x86_cpu_to_apic[] array.

Add a check for overflow. If it happens then the slow loop below
will catch.

Bug pointed out by Doug Thompson

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 10:48:21 -07:00
..
boot [PATCH] i386/x86-64: Fix isoimage when syslinux is in /usr/share 2006-06-26 10:48:19 -07:00
crypto [CRYPTO] aes: Fixed array boundary violation 2006-03-21 20:14:10 +11:00
ia32 [PATCH] x86_64: reliable stack trace support (x86-64 syscall 2006-06-26 10:48:17 -07:00
kernel [PATCH] x86_64: Fix fast check in safe_smp_processor_id 2006-06-26 10:48:21 -07:00
lib [PATCH] x86_64: remove dead do_softirq_thunk 2006-03-25 09:10:53 -08:00
mm [PATCH] x86_64: miscellaneous mm/init.c fixes 2006-06-26 10:48:20 -07:00
oprofile
pci [PATCH] x86_64: Clean and enhance up K8 northbridge access code 2006-06-26 10:48:15 -07:00
defconfig [PATCH] x86_64: Update defconfig 2006-06-26 10:48:14 -07:00
Kconfig [PATCH] x86_64: Calgary IOMMU - Calgary specific bits 2006-06-26 10:48:19 -07:00
Kconfig.debug [PATCH] x86_64: Rename IOMMU option, fix help and mark option embedded. 2006-06-26 10:48:17 -07:00
Makefile [PATCH] x86_64: fix CONFIG_REORDER 2006-04-09 11:53:53 -07:00