Skip to content

arm64: cpufeature: Add filter function to control

Srinivas Ramana linux-arm-kernel linux-arm-msm linux-doc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: Defer enabling pointer authentication on boot corearch/arm64/include/asm/pointer_auth.h arch/arm64/include/asm/stackprotector.h arch/arm64/kernel/head.S+11 -40 replies
2/3arm64: cpufeature: Add a filter function to cpufeaturearch/arm64/include/asm/cpufeature.h arch/arm64/kernel/cpufeature.c+17 -60 replies
3/3arm64: Enable control of pointer authentication using early paramDocumentation/admin-guide/kernel-parameters.txt arch/arm64/kernel/cpufeature.c+36 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] arm64: cpufeature: Add filter function to control

This patchset adds a control function for cpufeature framework so that the feature can be controlled at runtime.

Defer PAC on boot core and use the filter function added to disable PAC from command line. This will help toggling the feature on systems that do not support PAC or where PAC needs to be disabled at runtime, without modifying the core kernel.

The idea of adding the filter function for cpufeature is taken from
https://lore.kernel.org/linux-arm-kernel/[email protected]/
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Srinivas Ramana (3):
arm64: Defer enabling pointer authentication on boot core
arm64: cpufeature: Add a filter function to cpufeature
arm64: Enable control of pointer authentication using early param

 Documentation/admin-guide/kernel-parameters.txt |  6 +++
 arch/arm64/include/asm/cpufeature.h             |  8 +++-
 arch/arm64/include/asm/pointer_auth.h           | 10 +++++
 arch/arm64/include/asm/stackprotector.h         |  1 +
 arch/arm64/kernel/cpufeature.c                  | 53 +++++++++++++++++++------
 arch/arm64/kernel/head.S                        |  4 --
 6 files changed, 64 insertions(+), 18 deletions(-)
Signature · 1 line
2.7.4