From: Quentin Casasnovas Date: Tue, 3 Feb 2015 12:00:22 +0000 (+0100) Subject: x86/microcode/intel: Guard against stack overflow in the loader X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~25^2~1^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84598bd7c851f8b0bf8cd0d7c3be0d73c432ff4;p=pandora-kernel.git 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 Cc: "H. Peter Anvin" Cc: Fenghua Yu Link: http://lkml.kernel.org/r/1422964824-22056-1-git-send-email-quentin.casasnovas@oracle.com Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed