[bug report] nvme_auth: kmemleak observed with blktests nvme/tcp nvme/062
Maurizio Lombardi
mlombard at bsdbackstore.eu
Thu Apr 24 07:14:35 PDT 2025
On Thu Apr 24, 2025 at 2:53 PM CEST, Yi Zhang wrote:
> Hi
> I found this kmemleak when running the blktests on the latest
> linux-block/for-next, please help check it and let me know if you need
> any test/info for it, thanks.
I believe the issue lies in the nvmet_auth_insert_psk() function.
The tls_psk pointer is allocated but only freed in case of an error,
unlike in nvme_auth_secure_concat(), where it is always properly deallocated.
Maurizio
More information about the Linux-nvme
mailing list