Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755199AbbGQRAo (ORCPT ); Fri, 17 Jul 2015 13:00:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36995 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754430AbbGQQ5l (ORCPT ); Fri, 17 Jul 2015 12:57:41 -0400 From: Josh Poimboeuf To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: Michal Marek , Peter Zijlstra , Andy Lutomirski , Borislav Petkov , Linus Torvalds , Andi Kleen , Pedro Alves , x86@kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 12/21] sched: Add __schedule() to stackvalidate whitelist Date: Fri, 17 Jul 2015 11:47:28 -0500 Message-Id: <6decd725802447eb2ba0c914c3d70610a606c2b7.1437150175.git.jpoimboe@redhat.com> In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1654 Lines: 45 stackvalidate reports the following warnings for __schedule(): stackvalidate: kernel/sched/core.o: __schedule()+0x3e7: duplicate frame pointer save stackvalidate: kernel/sched/core.o: __schedule()+0x424: sibling call from callable instruction with changed frame pointer stackvalidate: kernel/sched/core.o: __schedule()+0x431: call without frame pointer save/setup stackvalidate: kernel/sched/core.o: __schedule()+0x8b8: frame pointer state mismatch stackvalidate: kernel/sched/core.o: __schedule()+0x447: frame pointer state mismatch __schedule() is obviously a special case which is allowed to do unusual things with the frame pointer. Add it to the stackvalidate whitelist. This results in no actual changes to the generated code. Signed-off-by: Josh Poimboeuf --- kernel/sched/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 78b4bad10..9f49eae 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -74,6 +74,7 @@ #include #include #include +#include #include #include @@ -3059,6 +3060,7 @@ static void __sched __schedule(void) balance_callback(rq); } +STACKVALIDATE_IGNORE_FUNC(__schedule); static inline void sched_submit_work(struct task_struct *tsk) { -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/