lkml.org 
[lkml]   [2020]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-next: Tree for Mar 18 (objtool)
On Wed, Mar 18, 2020 at 09:05:42PM +0100, Peter Zijlstra wrote:
> On Wed, Mar 18, 2020 at 01:23:52PM -0500, Josh Poimboeuf wrote:

> > 545ed6816b72 ("ubsan: add trap instrumentation option")
> >
> > Kees, any idea why that commit causes at least some BUG() statements to
> > output an extra UD2?
>
> "Built-in Function: void __builtin_trap (void)
>
> This function causes the program to exit abnormally. GCC implements
> this function by using a target-dependent mechanism (such as
> intentionally executing an illegal instruction) or by calling abort.
> The mechanism used may vary from release to release so you should
> not rely on any particular implementation."
>
> Sounds encouraging :-(

Kees, can you tell the GCC/LLVM folks that now you've used it in the
kernel we have very definite expectations of the implementation. Them
changing it is no longer an option.

\
 
 \ /
  Last update: 2020-03-19 12:12    [W:0.110 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site