Re: [PATCH] params: bound array element output to the caller's page buffer

From: Pengpeng Hou

Date: Thu Apr 23 2026 - 18:49:52 EST


Hi Petr,

Thanks, that makes sense.

I agree that adding an explicit size argument to kernel_param_ops::get()
would be the cleaner interface. My patch was trying to keep the fix
local to param_array_get(), since changing the callback signature would
touch all current implementations.

My inclination would be to keep the immediate fix local to
param_array_get() first, since that seems more suitable for a bug fix and
doesn't require touching every current ->get() implementation.

If you'd rather take the interface cleanup first, I'm happy to work on a
larger series that extends ->get() with a size argument and then uses it
in param_array_get().

Thanks,
Pengpeng