[PATCH RFC 30/38] powerpc/pseries/lparcfg: return h_get_ppp()'s status as a long

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 3 06:48:26 PST 2026


> h_get_ppp() returns the status of the H_GET_PPP hcall as an unsigned
> int. update_ppp() hands it on as its ssize_t result, and
> lparcfg_write() turns the hcall statuses it knows into an errno and
> returns anything else as it is. So when H_GET_PPP fails, say with
> H_PARAMETER (-4), the status comes back as 4294967292 and a write to
> /proc/powerpc/lparcfg reports that many bytes written.
> 
> Return the status as the long it is. lparcfg_write() then treats it
> like the status of H_SET_PPP and an unknown one is at least negative.
> Before commit 11529396ea31 ("powerpc/pseries: Split processor
> entitlement retrieval and gathering to helper routines") a failed
> H_GET_PPP turned into -EIO.
> 
> Reported-by: Chris Mason <mason at kernel.org>
> Fixes: 11529396ea31 ("powerpc/pseries: Split processor entitlement retrieval and gathering to helper routines")
> 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/20261102-work-procfs-bugfixes-v1-0-59422ed3e465@kernel.org?part=30




More information about the kexec mailing list