[PATCH] nvme: null terminate nvme_tls_attrs

Christoph Hellwig hch at infradead.org
Tue Sep 24 02:05:06 PDT 2024


On Tue, Sep 24, 2024 at 06:01:34PM +0900, Shin'ichiro Kawasaki wrote:
> Commit 1e48b34c9bc7 ("nvme: split off TLS sysfs attributes into a
> separate group") introduced the struct attribute array nvme_tls_attrs.
> However, the array was not null terminated and caused BUG KASAN global-
> out-of-bounds. To avoid the BUG, null terminate the array.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the Linux-nvme mailing list