Re: Remaining randconfig objtool warnings, linux-next-20200428

From: Kees Cook
Date: Tue Apr 28 2020 - 15:11:54 EST


On Tue, Apr 28, 2020 at 11:10:44AM -0500, Josh Poimboeuf wrote:
> On Tue, Apr 28, 2020 at 04:49:15PM +0200, Arnd Bergmann wrote:
> > I noticed the number of objtool warnings in randconfig kernels have gone down
> > recently, maybe it's possible to eliminate the remaining ones?
> >
> > Here are the ones I ran into recently, using gcc-9.3:
> >
> > ==> build/x86/0x3D2B5D6D_defconfig/log <==
> > arch/x86/kvm/vmx/vmx.o: warning: objtool: vmx_handle_exit_irqoff()+0x24: unreachable instruction
>
> This is a legit warning caused by CONFIG_UBSAN_TRAP +
> CONFIG_UBSAN_ALIGNMENT, I think Kees is going to do a fix.

Yup, I'm still on the hook for this; just a bit distracted. I'll get it
landed soon.

--
Kees Cook