Re: [PATCH 01/11] params: bound array element output to the caller's page buffer
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 22:15:59 EST
Hi Anshuman and Kees,
Yes, the bounded copy in 01/11 can leave part of the last element.
The intention was to keep writes inside the sysfs page, not to define
a partial element as a valid representation. Mainline still calls the
element getter at buffer + off; the truncating copy you're asking
about is in the proposed series.
I'd prefer not to publish a partial element as if it were a complete
one. Staging each element first lets us check that the separator and
the whole element fit before changing the output. I'd coordinate that
choice with Kees's series rather than submit a second version of the
same bounds fix independently.
Thanks,
Pengpeng