linux/arch
Joseph Cihula 9b7b89efa3 x86: disable stack-protector for __restore_processor_state()
The __restore_processor_state() fn restores %gs on resume from S3.  As
such, it cannot be protected by the stack-protector guard since %gs will
not be correct on function entry.

There are only a few other fns in this file and it should not negatively
impact kernel security that they will also have the stack-protector
guard removed (and so it's not worth moving them to another file).

Without this change, S3 resume on a kernel built with
CONFIG_CC_STACKPROTECTOR_ALL=y will fail.

Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Tested-by: Chris Wright <chrisw@sous-sol.org>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Tejun Heo <tj@kernel.org>
LKML-Reference: <49D13385.5060900@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-04-03 19:48:41 +02:00
..
alpha Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
arm Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
avr32 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
blackfin Simplify copy_thread() 2009-04-02 19:04:51 -07:00
cris Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2009-04-02 21:09:10 -07:00
frv Simplify copy_thread() 2009-04-02 19:04:51 -07:00
h8300 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
ia64 ia64: implement interrupt-enabling rwlocks 2009-04-02 19:05:11 -07:00
m32r Simplify copy_thread() 2009-04-02 19:04:51 -07:00
m68k Simplify copy_thread() 2009-04-02 19:04:51 -07:00
m68knommu Simplify copy_thread() 2009-04-02 19:04:51 -07:00
mips Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
mn10300 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
parisc Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
powerpc Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2009-04-02 21:09:10 -07:00
s390 Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
sh Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
sparc Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
um Simplify copy_thread() 2009-04-02 19:04:51 -07:00
x86 x86: disable stack-protector for __restore_processor_state() 2009-04-03 19:48:41 +02:00
xtensa Simplify copy_thread() 2009-04-02 19:04:51 -07:00
.gitignore
Kconfig dma-debug: add Kconfig entry 2009-03-05 14:36:50 +01:00