From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752077AbdFOCSy (ORCPT ); Wed, 14 Jun 2017 22:18:54 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35811 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751732AbdFOCSx (ORCPT ); Wed, 14 Jun 2017 22:18:53 -0400 Date: Wed, 14 Jun 2017 19:18:51 -0700 From: Kees Cook To: linux-kernel@vger.kernel.org Cc: Josh Poimboeuf , Daniel Micay , Stephen Rothwell Subject: [PATCH] objtool: Add fortify_panic as __noreturn function Message-ID: <20170615021851.GA83998@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_FORTIFY_SOURCE implements fortify_panic() as a __noreturn function, so objtool needs to know about it too. Suggested-by: Daniel Micay Signed-off-by: Kees Cook Cc: Josh Poimboeuf --- tools/objtool/builtin-check.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index 282a60368b14..5f66697fe1e0 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -192,7 +192,8 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func, "complete_and_exit", "kvm_spurious_fault", "__reiserfs_panic", - "lbug_with_loc" + "lbug_with_loc", + "fortify_panic", }; if (func->bind == STB_WEAK) -- 2.7.4 -- Kees Cook Pixel Security