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

From: Will Deacon

Date: Tue May 19 2026 - 11:45:53 EST


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