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 <[email protected]>
---

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

Reply via email to