Re: [PATCH] arm64/cpufeature: Validate feature bits spacing in arm64_ftr_regs[]

2020-06-30 Thread Suzuki K Poulose
On 06/30/2020 02:49 AM, Anshuman Khandual wrote: On 06/29/2020 04:12 PM, Suzuki K Poulose wrote: On 06/16/2020 03:25 AM, Anshuman Khandual wrote: arm64_feature_bits for a register in arm64_ftr_regs[] are in a descending order as per their shift values. Validate that these features bits are de

Re: [PATCH] arm64/cpufeature: Validate feature bits spacing in arm64_ftr_regs[]

2020-06-29 Thread Anshuman Khandual
On 06/29/2020 04:12 PM, Suzuki K Poulose wrote: > On 06/16/2020 03:25 AM, Anshuman Khandual wrote: >> arm64_feature_bits for a register in arm64_ftr_regs[] are in a descending >> order as per their shift values. Validate that these features bits are >> defined correctly and do not overlap with e

Re: [PATCH] arm64/cpufeature: Validate feature bits spacing in arm64_ftr_regs[]

2020-06-29 Thread Suzuki K Poulose
On 06/16/2020 03:25 AM, Anshuman Khandual wrote: arm64_feature_bits for a register in arm64_ftr_regs[] are in a descending order as per their shift values. Validate that these features bits are defined correctly and do not overlap with each other. This check protects against any inadvertent erron