[PATCH v3] drivers/perf: arm_spe: Use perf_allow_kernel() for permissions

Will Deacon will at kernel.org
Fri Aug 30 09:12:11 PDT 2024


On Tue, 27 Aug 2024 15:51:12 +0100, James Clark wrote:
> Use perf_allow_kernel() for 'pa_enable' (physical addresses),
> 'pct_enable' (physical timestamps) and context IDs. This means that
> perf_event_paranoid is now taken into account and LSM hooks can be used,
> which is more consistent with other perf_event_open calls. For example
> PERF_SAMPLE_PHYS_ADDR uses perf_allow_kernel() rather than just
> perfmon_capable().
> 
> [...]

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

[1/1] drivers/perf: arm_spe: Use perf_allow_kernel() for permissions
      https://git.kernel.org/arm64/c/5e9629d0ae97

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list