Re: [PATCH v2] fortify: Use WARN instead of BUG for now

From: Kees Cook
Date: Wed Jul 26 2017 - 17:33:25 EST


On Wed, Jul 26, 2017 at 12:55 PM, Josh Poimboeuf <jpoimboe@xxxxxxxxxx> wrote:
> On Wed, Jul 26, 2017 at 11:52:19AM -0700, Kees Cook wrote:
>> --- a/tools/objtool/check.c
>> +++ b/tools/objtool/check.c
>> @@ -156,7 +156,7 @@ static int __dead_end_function(struct objtool_file *file, struct symbol *func,
>> "kvm_spurious_fault",
>> "__reiserfs_panic",
>> "lbug_with_loc",
>> - "fortify_panic",
>> + "fortify_overflow",
>> };
>
> If the function is no longer '__noreturn' then this entry needs to be
> removed from the global_noreturns list.

Ah, dur, yes. Thanks! I see akpm has already merged this correction for -mm.

Thanks!

-Kees

--
Kees Cook
Pixel Security