diff options
| author | Bradley Morgan <include@grrlz.net> | 2026-06-19 19:37:18 +0300 |
|---|---|---|
| committer | Thomas Gleixner <tglx@kernel.org> | 2026-06-21 21:44:00 +0300 |
| commit | 86f436567f2516a0083b210bedc933544826a2c3 (patch) | |
| tree | aa671b2fef14701c1ee87dc90861297a52a2e8d2 /scripts/Makefile.thinlto | |
| parent | 673db10729fb121ea1b16fe57791a0cb9eac1eb5 (diff) | |
| download | linux-86f436567f2516a0083b210bedc933544826a2c3.tar.xz | |
cpu: hotplug: Bound hotplug states sysfs output
states_show() adds CPU hotplug state names into a single sysfs buffer
using sprintf(). With enough registered states, this can write past the
end of the PAGE_SIZE buffer.
Use sysfs_emit_at() so output is bounded.
Fixes: 98f8cdce1db5 ("cpu/hotplug: Add sysfs state interface")
Signed-off-by: Bradley Morgan <include@grrlz.net>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260619163719.12103-2-include@grrlz.net
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
