Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c

2016-09-11 Thread Meelis Roos
> Does this fix it? Yes, thank you! > diff --git a/arch/powerpc/include/asm/cpu_has_feature.h > b/arch/powerpc/include/asm/cpu_has_feature.h > index 2ef55f8968a2..b312b152461b 100644 > --- a/arch/powerpc/include/asm/cpu_has_feature.h > +++ b/arch/powerpc/include/asm/cpu_has_feature.h > @@ -15,7

Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c

2016-09-10 Thread Aneesh Kumar K.V
gt; [0.00] UBSAN: Undefined behaviour in > arch/powerpc/kernel/cputable.c:2240:25 > [0.00] shift exponent 32 is too large for 32-bit type 'long unsigned > int' > [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted > 4.8.0-rc5-00075-gd71f058 #106 > [0.

Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c

2016-09-10 Thread Michael Ellerman
gt; [0.00] UBSAN: Undefined behaviour in > arch/powerpc/kernel/cputable.c:2240:25 > [0.00] shift exponent 32 is too large for 32-bit type 'long unsigned > int' > [0.00] CPU: 0 PID: 0 Comm: swapper Not tainted > 4.8.0-rc5-00075-gd71f058 #106 > [0.

UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c

2016-09-09 Thread Meelis Roos
Got this on my PowerPC G4 (533 MHz, PowerPC 7410, PowerMac3,4 platform), with gcc version 5.3.1 20160509 (Debian 5.3.1-19): [0.00] [0.00] UBSAN: Undefined behaviour in arch/powerpc/kernel