[PATCH v2 1/1] net/iavf: remove global adminq response buffer
Burakov, Anatoly
anatoly.burakov at intel.com
Thu Feb 26 11:52:14 CET 2026
On 2/26/2026 11:41 AM, Anatoly Burakov wrote:
> In many places where we are calling down into virtchnl, we are using a
> globally allocated adminq response buffer. This is unnecessary, so replace
> with adminq buffers allocated on stack.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
Changes from v1:
Stats query was passing in a pointer-to-pointer and storing pointer to
global adminq response buffer as output parameter, so changing that to a
local buffer resulted in storing a pointer to a buffer that was stack
allocated (i.e. introduced a use-after-free).
I've changed that to allocate the stats structure on the stack and write
into that, instead of returning a pointer to output buffer and reading
from it.
--
Thanks,
Anatoly
More information about the dev
mailing list