mbox series

[stable-4.4,0/2] arm64: cpufeature: Fix truncating a feature value

Message ID 20191014123254.22002-1-suzuki.poulose@arm.com
Headers show
Series arm64: cpufeature: Fix truncating a feature value | expand

Message

Suzuki K Poulose Oct. 14, 2019, 12:32 p.m. UTC
This series fixes the issue with arm64_ftr_value() where the signed
fields are truncated to unsigned values corrupting the system wide
safe values.


Suzuki K Poulose (2):
  arm64: capabilities: Handle sign of the feature bit
  arm64: Rename cpuid_feature field extract routines

 arch/arm64/include/asm/cpufeature.h | 29 +++++++++++++++---------
 arch/arm64/kernel/cpufeature.c      | 35 ++++++++++++++++-------------
 arch/arm64/kernel/debug-monitors.c  |  2 +-
 arch/arm64/kvm/sys_regs.c           |  2 +-
 arch/arm64/mm/context.c             |  3 ++-
 5 files changed, 42 insertions(+), 29 deletions(-)

-- 
2.21.0

Comments

Sasha Levin Oct. 14, 2019, 11:28 p.m. UTC | #1
On Mon, Oct 14, 2019 at 01:32:52PM +0100, Suzuki K Poulose wrote:
>This series fixes the issue with arm64_ftr_value() where the signed

>fields are truncated to unsigned values corrupting the system wide

>safe values.


Queued both for 4.4, thanks!

-- 
Thanks,
Sasha