diff options
author | Joseph Cihula <[email protected]> | 2009-03-30 14:03:01 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-04-03 19:48:41 +0200 |
commit | 9b7b89efa3bdaceaa2efb93e2d635391835da209 (patch) | |
tree | f98eb1e69b74b32098f8f2d3ae2deb8546b3fa82 /fs/jbd2/commit.c | |
parent | 6a491e2e3e52a64c6d88a192c56499d931842ac5 (diff) |
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 <[email protected]>
Tested-by: Chris Wright <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Cc: Tejun Heo <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions