[lvc-project] [PATCH] ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails

Namjae Jeon linkinjeon at kernel.org
Mon Feb 5 14:45:25 MSK 2024


2024-02-05 20:19 GMT+09:00, Fedor Pchelkin <pchelkin at ispras.ru>:
> ksmbd_iov_pin_rsp_read() doesn't free the provided aux buffer if it
> fails. Seems to be the caller's responsibility to clear the buffer in
> error case.
>
> Found by Linux Verification Center (linuxtesting.org).
>
> Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound")
> Cc: stable at vger.kernel.org
> Signed-off-by: Fedor Pchelkin <pchelkin at ispras.ru>
Applied it to #ksmbd-for-next-next.
Thanks for your patch!



More information about the lvc-project mailing list