[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-1314562a9ae5f39f6f595656023c1baf970831ef@git.kernel.org>
Date: Tue, 18 Aug 2009 13:48:37 GMT
From: tip-bot for Hiroshi Shimamoto <h-shimamoto@...jp.nec.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, h-shimamoto@...jp.nec.com,
hpa@...or.com, mingo@...hat.com, tglx@...utronix.de, mingo@...e.hu
Subject: [tip:sched/core] sched, task_struct: stack_canary is not needed without CC_STACKPROTECTOR
Commit-ID: 1314562a9ae5f39f6f595656023c1baf970831ef
Gitweb: http://git.kernel.org/tip/1314562a9ae5f39f6f595656023c1baf970831ef
Author: Hiroshi Shimamoto <h-shimamoto@...jp.nec.com>
AuthorDate: Tue, 18 Aug 2009 15:06:02 +0900
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 18 Aug 2009 15:45:11 +0200
sched, task_struct: stack_canary is not needed without CC_STACKPROTECTOR
The field stack_canary is only used with CC_STACKPROTECTOR.
This patch reduces task_struct size without CC_STACKPROTECTOR.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@...jp.nec.com>
LKML-Reference: <4A8A44CA.2020701@...jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
include/linux/sched.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 195d72d..7bc2d92 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1237,8 +1237,10 @@ struct task_struct {
pid_t pid;
pid_t tgid;
+#ifdef CONFIG_CC_STACKPROTECTOR
/* Canary value for the -fstack-protector gcc feature */
unsigned long stack_canary;
+#endif
/*
* pointers to (original) parent process, youngest child, younger sibling,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists