[PATCH RESEND v2 08/51] powerpc/pseries/lparcfg: don't drop the last byte of a write

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:29:02 PST 2026


> lparcfg_write() terminates its copy of the write by overwriting the
> last byte, so a write without a trailing newline loses its last
> character: "partition_entitled_capacity=5" is parsed as an empty value
> and fails with -EINVAL. Terminate behind the copy instead, and refuse a
> write that fills the whole buffer, which can't be terminated.
> 
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable at vger.kernel.org
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-bugfixes-v2-0-021c84d852e0@kernel.org?part=8




More information about the kexec mailing list