[bug report] nvme_auth: kmemleak observed with blktests nvme/tcp nvme/062
Hannes Reinecke
hare at suse.de
Thu Apr 24 08:15:02 PDT 2025
On 4/24/25 16:14, Maurizio Lombardi wrote:
> 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.
>
No, it's an issue with the kernel config; we don't free the key if TLS
is disabled.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
More information about the Linux-nvme
mailing list