Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbdGZR5Y (ORCPT ); Wed, 26 Jul 2017 13:57:24 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:33251 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbdGZR5W (ORCPT ); Wed, 26 Jul 2017 13:57:22 -0400 Message-ID: <1501091840.1196.12.camel@gmail.com> Subject: Re: [PATCH] fortify: Use WARN instead of BUG for now From: Daniel Micay To: Kees Cook Cc: Andrew Morton , Linus Torvalds , Dan Williams , Mika Westerberg , Al Viro , David Howells , Heikki Krogerus , Bjorn Helgaas , Arnd Bergmann , Greg Kroah-Hartman , Mauro Carvalho Chehab , LKML Date: Wed, 26 Jul 2017 13:57:20 -0400 In-Reply-To: References: <20170726035036.GA76341@beast> <1501073531.1196.7.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.4 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 639 Lines: 12 > Maybe we could do two phases? One to s/BUG/WARN/ and the second to > improve the message? s/fortify_panic/fortify_overflow/ + use WARN + remove __noreturn makes sense as one commit. Still think the *option* of __noreturn + BUG should be kept there even just for measuring the size overhead. !COMPILE_TIME && EXPERT if it needs to be for now. If you're fully removing __noreturn then the entry in tools/objtool/check.c for __noreturn functions also won't make sense (either way it needs to use the new name). I think improving error messages should be done a bit differently though and it'll be easier to not tie these things together.