[PATCH v2] arm64: cpufeature: Warn if we attempt to read a zero width field

Will Deacon will at kernel.org
Mon Mar 7 14:03:28 PST 2022


On Mon, 7 Mar 2022 18:08:59 +0000, Mark Brown wrote:
> Add a WARN_ON_ONCE() when extracting a field if no width is specified. This
> should never happen outside of development since it will be triggered with
> or without the feature so long as the relevant ID register is present.  If
> the warning triggers hope that the field was the standard 4 bits wide and
> soldier on.
> 
> 
> [...]

Applied to arm64 (for-next/fpsimd), thanks!

[1/1] arm64: cpufeature: Warn if we attempt to read a zero width field
      https://git.kernel.org/arm64/c/f2c281204b47

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list