mirror_ubuntu-kernels/arch/x86/kernel/cpu/microcode
Quentin Casasnovas f84598bd7c x86/microcode/intel: Guard against stack overflow in the loader
mc_saved_tmp is a static array allocated on the stack, we need to make
sure mc_saved_count stays within its bounds, otherwise we're overflowing
the stack in _save_mc(). A specially crafted microcode header could lead
to a kernel crash or potentially kernel execution.

Signed-off-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1422964824-22056-1-git-send-email-quentin.casasnovas@oracle.com
Signed-off-by: Borislav Petkov <bp@suse.de>
2015-02-19 12:41:37 +01:00
..
amd_early.c x86, microcode: Reload microcode on resume 2014-12-06 13:03:03 +01:00
amd.c x86, microcode, AMD: Do not use smp_processor_id() in preemtible context 2014-12-01 11:51:05 +01:00
core_early.c x86, microcode: Reload microcode on resume 2014-12-06 13:03:03 +01:00
core.c x86, microcode: Reload microcode on resume 2014-12-06 13:03:03 +01:00
intel_early.c x86/microcode/intel: Guard against stack overflow in the loader 2015-02-19 12:41:37 +01:00
intel_lib.c x86, microcode: Move to a proper location 2014-01-13 20:00:12 +01:00
intel.c x86, microcode, intel: Rename apply_microcode and declare it static 2014-07-25 17:57:51 +02:00
Makefile x86, microcode: Move to a proper location 2014-01-13 20:00:12 +01:00