Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1480750

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

From Meelis Roos <mroos@linux.ee>
Newsgroups linux.kernel
Subject Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c
Date 2016-09-11 09:50 +0200
Message-ID <sg7Gx-3ey-7@gated-at.bofh.it> (permalink)
References <sfsk2-2dK-17@gated-at.bofh.it> <sfNeO-70F-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> 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 +15,7 @@ static inline bool early_cpu_has_feature(unsigned long feature)
>  #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECKS
>  #include <linux/jump_label.h>
>  
> -#define NUM_CPU_FTR_KEYS	64
> +#define NUM_CPU_FTR_KEYS	BITS_PER_LONG
>  
>  extern struct static_key_true cpu_feature_keys[NUM_CPU_FTR_KEYS];
>  
> 

-- 
Meelis Roos (mroos@linux.ee)

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c Michael Ellerman <mpe@ellerman.id.au> - 2016-09-10 12:00 +0200
  Re: UBSAN: Undefined behaviour in arch/powerpc/kernel/cputable.c Meelis Roos <mroos@linux.ee> - 2016-09-11 09:50 +0200

csiph-web