[PATCH] arm64: proton-pack: use sysfs_emit in sysfs show functions

Will Deacon will at kernel.org
Tue May 19 08:23:10 PDT 2026


On Wed, 13 May 2026 13:57:55 +0200, Thorsten Blum wrote:
> Replace sprintf() with sysfs_emit() in sysfs show functions, which is
> preferred for formatting sysfs output because it provides safer bounds
> checking.
> 
> While the current code only emits fixed strings that fit easily within
> PAGE_SIZE, use sysfs_emit() to follow secure coding best practices.
> 
> [...]

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

[1/1] arm64: proton-pack: use sysfs_emit in sysfs show functions
      https://git.kernel.org/arm64/c/243c1d75a01e

Cheers,
-- 
Will

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



More information about the linux-arm-kernel mailing list