Re: [PATCH] powerpc: use sysfs_emit{_at} in sysfs show functions
From: Madhavan Srinivasan
Date: Fri Jun 19 2026 - 18:02:39 EST
On Sun, 24 May 2026 15:00:03 +0200, Thorsten Blum wrote:
> Replace sprintf() with sysfs_emit() and sysfs_emit_at() in sysfs show
> functions, which are preferred for formatting sysfs output because they
> provide safer bounds checking.
>
> While the current code only emits strings that fit easily within
> PAGE_SIZE, use sysfs_emit() and sysfs_emit_at() to follow secure coding
> best practices.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc: use sysfs_emit{_at} in sysfs show functions
https://git.kernel.org/powerpc/c/ea8b474b5550d353a02f25a5813cb1682509d5e6
cheers