Re: [PATCH] powerpc/pseries/lparcfg: size the scratch buffer to the system parameter payload
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 22:18:20 EST
Hi Nayna,
This was a static finding, not a crash or a particular firmware
payload. I don't have an example of a shipping system returning a
single token that long.
The size of the reply does bound any one token, but it does not
show that the token fits the smaller scratch buffer. In
parse_system_parameter_string(), w_idx advances until a delimiter. Is
there a PAPR limit on an individual vendor-defined token that the
parser can rely on? I would distinguish that from the maximum size of
the get-system-parameter buffer in the change description.
Thanks,
Pengpeng