alistair23-linux/arch
Petr Vandrovec ac909ec308 ACPI: Fix use-after-free in acpi_map_lsapic
When processor is being hot-added to the system, acpi_map_lsapic invokes
ACPI _MAT method to find APIC ID and flags, verifies that returned structure
is indeed ACPI's local APIC structure, and that flags contain MADT_ENABLED
bit.  Then saves APIC ID, frees structure - and accesses structure when
computing arguments for acpi_register_lapic call.  Which sometime leads
to acpi_register_lapic call being made with second argument zero, failing
to bring processor online with error 'Unable to map lapic to logical cpu
number'.

As lapic->lapic_flags & ACPI_MADT_ENABLED was already confirmed to be non-zero
few lines above, we can just pass unconditional ACPI_MADT_ENABLED to the
acpi_register_lapic.

Signed-off-by: Petr Vandrovec <petr@vmware.com>
Signed-off-by: Alok N Kataria <akataria@vmware.com>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2012-03-30 03:31:58 -04:00
..
alpha alpha: fix 32/64-bit bug in futex support 2012-03-05 15:49:43 -08:00
arm SH/R-Mobile fixes for 3.3-rc. 2012-03-12 22:47:20 -07:00
avr32
blackfin
c6x C6X: remove dead code from entry.S 2012-03-16 09:27:57 -04:00
cris
frv
h8300
hexagon
ia64
m32r
m68k
microblaze
mips MIPS: traps.c: Fix typo 2012-02-20 18:33:20 +01:00
mn10300
openrisc openrisc: Fix up audit_syscall_[entry|exit]() usage 2012-02-17 09:53:12 +01:00
parisc [PARISC] don't unconditionally override CROSS_COMPILE for 64 bit. 2012-02-28 09:39:28 -06:00
powerpc powerpc: Fix various issues with return to userspace 2012-02-22 16:48:53 +11:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2012-03-01 18:22:55 -08:00
score
sh sh: fix up the ubc clock definition for sh7785. 2012-03-07 15:28:32 +09:00
sparc sparc32: Add -Av8 to assembler command line. 2012-03-13 18:19:51 -07:00
tile arch/tile/configs: convert to minimal configs via "make savedefconfig" 2012-03-14 14:33:16 -04:00
um
unicore32
x86 ACPI: Fix use-after-free in acpi_map_lsapic 2012-03-30 03:31:58 -04:00
xtensa
.gitignore
Kconfig