Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-18 Thread Josh Poimboeuf
On Thu, Jul 18, 2019 at 03:36:47PM -0700, Nick Desaulniers wrote: > On Tue, Jul 16, 2019 at 4:03 PM Josh Poimboeuf wrote: > > > > On Wed, Jul 17, 2019 at 12:05:14AM +0200, Arnd Bergmann wrote: > > > On Tue, Jul 16, 2019 at 10:24 PM 'Nick Desaulniers' via Clang Built > > > Linux wrote: > > > > > >

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-18 Thread Nick Desaulniers
On Tue, Jul 16, 2019 at 4:03 PM Josh Poimboeuf wrote: > > On Wed, Jul 17, 2019 at 12:05:14AM +0200, Arnd Bergmann wrote: > > On Tue, Jul 16, 2019 at 10:24 PM 'Nick Desaulniers' via Clang Built > > Linux wrote: > > > > > > On Fri, Jul 12, 2019 at 1:41 PM Arnd Bergmann wrote: > > > > > > > > On Fr

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-16 Thread Josh Poimboeuf
On Wed, Jul 17, 2019 at 12:05:14AM +0200, Arnd Bergmann wrote: > On Tue, Jul 16, 2019 at 10:24 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Fri, Jul 12, 2019 at 1:41 PM Arnd Bergmann wrote: > > > > > > On Fri, Jul 12, 2019 at 6:59 PM 'Nick Desaulniers' via Clang Built > > > Lin

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-16 Thread Arnd Bergmann
On Tue, Jul 16, 2019 at 10:24 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Fri, Jul 12, 2019 at 1:41 PM Arnd Bergmann wrote: > > > > On Fri, Jul 12, 2019 at 6:59 PM 'Nick Desaulniers' via Clang Built > > Linux wrote: > > > > The issue still needs to get fixed in clang regardless. T

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-16 Thread Nick Desaulniers
On Fri, Jul 12, 2019 at 1:41 PM Arnd Bergmann wrote: > > On Fri, Jul 12, 2019 at 6:59 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > The issue still needs to get fixed in clang regardless. There are other > > > noreturn functions in the kernel and this problem could easily pop back >

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 6:59 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > The issue still needs to get fixed in clang regardless. There are other > > noreturn functions in the kernel and this problem could easily pop back > > up. > > Sure, thanks for the report. Arnd, can you help us g

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Nick Desaulniers
On Fri, Jul 12, 2019 at 7:29 AM Josh Poimboeuf wrote: > > On Fri, Jul 12, 2019 at 04:19:02PM +0200, Arnd Bergmann wrote: > > On Fri, Jul 12, 2019 at 3:57 PM Josh Poimboeuf wrote: > > > > > > On Fri, Jul 12, 2019 at 09:51:35AM +0200, Arnd Bergmann wrote: > > > > I no longer see any of the "can't f

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Josh Poimboeuf
On Fri, Jul 12, 2019 at 04:19:02PM +0200, Arnd Bergmann wrote: > On Fri, Jul 12, 2019 at 3:57 PM Josh Poimboeuf wrote: > > > > On Fri, Jul 12, 2019 at 09:51:35AM +0200, Arnd Bergmann wrote: > > > I no longer see any of the "can't find switch jump table" in last > > > nights randconfig > > > builds

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Arnd Bergmann
On Fri, Jul 12, 2019 at 3:57 PM Josh Poimboeuf wrote: > > On Fri, Jul 12, 2019 at 09:51:35AM +0200, Arnd Bergmann wrote: > > I no longer see any of the "can't find switch jump table" in last > > nights randconfig > > builds. I do see one other rare warning, see attached object file: > > > > fs/rei

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Josh Poimboeuf
On Fri, Jul 12, 2019 at 09:51:35AM +0200, Arnd Bergmann wrote: > I no longer see any of the "can't find switch jump table" in last > nights randconfig > builds. I do see one other rare warning, see attached object file: > > fs/reiserfs/do_balan.o: warning: objtool: replace_key()+0x158: stack > sta

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-12 Thread Arnd Bergmann
On Thu, Jul 11, 2019 at 11:29 PM Arnd Bergmann wrote: > > On Thu, Jul 11, 2019 at 11:05 PM 'Jann Horn' via Clang Built Linux > wrote: > > I was playing around with building the kernel with LLVM a few months > > ago and used this local patch, but didn't get around to submitting > > upstream becaus

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Josh Poimboeuf
On Thu, Jul 11, 2019 at 11:04:35PM +0200, Jann Horn wrote: > On Thu, Jul 11, 2019 at 11:00 PM Arnd Bergmann wrote: > > > > On Thu, Jul 11, 2019 at 7:26 PM Josh Poimboeuf wrote: > > > > > > On Thu, Jul 11, 2019 at 02:40:06PM +0200, Arnd Bergmann wrote: > > > > During randconfig testing with clang-

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Arnd Bergmann
On Thu, Jul 11, 2019 at 11:05 PM 'Jann Horn' via Clang Built Linux wrote: > I was playing around with building the kernel with LLVM a few months > ago and used this local patch, but didn't get around to submitting > upstream because I couldn't reproduce the problem for some reason. I > think the w

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Jann Horn
On Thu, Jul 11, 2019 at 11:00 PM Arnd Bergmann wrote: > > On Thu, Jul 11, 2019 at 7:26 PM Josh Poimboeuf wrote: > > > > On Thu, Jul 11, 2019 at 02:40:06PM +0200, Arnd Bergmann wrote: > > > During randconfig testing with clang-9, I came across an object file > > > that makes objtool segfault, see

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Arnd Bergmann
On Thu, Jul 11, 2019 at 7:26 PM Josh Poimboeuf wrote: > > On Thu, Jul 11, 2019 at 02:40:06PM +0200, Arnd Bergmann wrote: > > During randconfig testing with clang-9, I came across an object file > > that makes objtool segfault, see attachment. Let me know if you need > > more information to > > deb

Re: objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Josh Poimboeuf
On Thu, Jul 11, 2019 at 02:40:06PM +0200, Arnd Bergmann wrote: > During randconfig testing with clang-9, I came across an object file > that makes objtool segfault, see attachment. Let me know if you need > more information to > debug this. > > I also get a ton of objtool warnings building random

objtool crashes on clang output (drivers/hwmon/pmbus/adm1275.o)

2019-07-11 Thread Arnd Bergmann
During randconfig testing with clang-9, I came across an object file that makes objtool segfault, see attachment. Let me know if you need more information to debug this. I also get a ton of objtool warnings building random configurations, but Nick mentioned that there is still a bug related to asm