android_kernel_xiaomi_sm8350/arch/x86_64/kernel
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
..
acpi Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2006-06-23 07:52:36 -07:00
cpufreq
aperture.c [PATCH] x86_64: Calgary IOMMU - introduce iommu_detected 2006-06-26 10:48:18 -07:00
apic.c [PATCH] x86_64: apic support for extended apic interrupt 2006-06-26 10:48:20 -07:00
asm-offsets.c
crash_dump.c
crash.c [PATCH] x86_64: use halt() instead of raw inline assembly 2006-06-26 10:48:18 -07:00
e820.c [PATCH] x86_64: Remove long obsolete CVS 2006-06-26 10:48:16 -07:00
early_printk.c [PATCH] Don't pass boot parameters to argv_init[] 2006-03-31 12:18:53 -08:00
entry.S [PATCH] x86_64: reliable stack trace support (x86-64 syscall 2006-06-26 10:48:17 -07:00
functionlist [PATCH] x86_64: Basic reorder infrastructure 2006-03-25 09:10:56 -08:00
genapic_cluster.c
genapic_flat.c [PATCH] x86_64: Use local APIC ID from local APIC instead of CPUID 2006-06-26 10:48:14 -07:00
genapic.c
head64.c [PATCH] x86_64: Remove long obsolete CVS 2006-06-26 10:48:16 -07:00
head.S
i387.c [PATCH] x86: make i387 mxcsr_feature_mask __read_mostly 2006-06-23 07:42:57 -07:00
i8259.c [PATCH] x86_64: x86_86 msi miss one entry handler 2006-06-26 10:48:17 -07:00
init_task.c
io_apic.c [PATCH] x86_64: Rename IOMMU option, fix help and mark option embedded. 2006-06-26 10:48:17 -07:00
ioport.c
irq.c
k8.c [PATCH] x86_64: Clean and enhance up K8 northbridge access code 2006-06-26 10:48:15 -07:00
kprobes.c [PATCH] kprobes: bad manipulation of 2 byte opcode on x86_64 2006-05-21 12:59:21 -07:00
ldt.c
machine_kexec.c
Makefile [PATCH] x86_64: Calgary IOMMU - Calgary specific bits 2006-06-26 10:48:19 -07:00
mce_amd.c [PATCH] x86_64: Mark mce_amd cpu notifier __cpuinit/__cpuinitdata 2006-06-26 10:48:20 -07:00
mce_intel.c
mce.c [PATCH] x86_64: mce_amd relocate sysfs files 2006-06-26 10:48:20 -07:00
module.c [PATCH] x86_64: x86_64 version of the smp alternative patch. 2006-06-26 10:48:14 -07:00
mpparse.c [PATCH] x86_64: avoid IRQ0 ioapic pin collision 2006-05-08 09:34:56 -07:00
nmi.c [PATCH] x86_64: nmi watchdog header cleanup 2006-06-26 10:48:16 -07:00
pci-calgary.c [PATCH] x86_64: Calgary IOMMU - Calgary specific bits 2006-06-26 10:48:19 -07:00
pci-dma.c [PATCH] x86_64: Calgary IOMMU - Calgary specific bits 2006-06-26 10:48:19 -07:00
pci-gart.c [PATCH] x86_64: moving phys_proc_id and cpu_core_id to cpuinfo_x86 2006-06-26 10:48:19 -07:00
pci-nommu.c [PATCH] x86_64: check_addr() cleanups 2006-06-26 10:48:20 -07:00
pci-swiotlb.c [PATCH] x86_64: Calgary IOMMU - introduce iommu_detected 2006-06-26 10:48:18 -07:00
pmtimer.c [PATCH] x86_64: fix last_tsc calculation of PM timer 2006-05-30 20:31:05 -07:00
process.c [PATCH] i386/x86-64/ia64: Move polling flag into thread_info_status 2006-06-26 10:48:21 -07:00
ptrace.c [PATCH] drop task argument of audit_syscall_{entry,exit} 2006-05-01 06:06:18 -04:00
reboot.c
relocate_kernel.S
setup64.c [PATCH] x86_64: Remove long obsolete CVS 2006-06-26 10:48:16 -07:00
setup.c [PATCH] x86_64: x86_64 setup.c - printing cmp related boottime information 2006-06-26 10:48:21 -07:00
signal.c [PATCH] x86_64: Remove bogus RED-PEN comment in signal.c 2006-06-26 10:48:20 -07:00
smp.c [PATCH] x86_64: Fix fast check in safe_smp_processor_id 2006-06-26 10:48:21 -07:00
smpboot.c [PATCH] x86_64: moving phys_proc_id and cpu_core_id to cpuinfo_x86 2006-06-26 10:48:19 -07:00
suspend_asm.S
suspend.c
sys_x86_64.c
syscall.c
tce.c [PATCH] x86_64: Calgary IOMMU - Calgary specific bits 2006-06-26 10:48:19 -07:00
time.c [PATCH] x86_64: Update copyright in time.c 2006-06-26 10:48:19 -07:00
trampoline.S
traps.c [PATCH] i386/x86-64: fall back to old-style call trace if no unwinding 2006-06-26 10:48:18 -07:00
vmlinux.lds.S [PATCH] x86_64: reliable stack trace support (x86-64) 2006-06-26 10:48:17 -07:00
vsmp.c
vsyscall.c [PATCH] x86_64: fix unlikely profiling & vsyscalls on x86_64 2006-06-26 10:48:16 -07:00
x8664_ksyms.c [PATCH] No arch-specific strpbrk implementations 2006-04-11 06:18:40 -07:00