lkml.org 
[lkml]   [2016]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: UBSAN: run-time undefined behavior sanity checker
On Mon, Feb 01, 2016 at 07:08:46PM +0300, Andrey Ryabinin wrote:

> > > > tried it on hangs the same way, really early. Any thoughts on how to chase this down ?
> > > Try to disable instrumentation for early code, like in the patch bellow.
> > This didn't help.
>
> So after I enabled UBSAN_ALIGNMENT in your config, the kernel didn't boot.
> That is because unaligned access happens before lockdep_init() so ubsan callback takes the
> spinlock before locked_init() which is not allowed.

> Could you try it without CONFIG_DEBUG_LOCKDEP?
> Or alternatively with patch like this:

Tried with the patch, seems to work fine now.

thanks,
Dave

\
 
 \ /
  Last update: 2016-02-01 23:41    [W:0.062 / U:0.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site