[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z28Y4XRagAT9DB3z@kbusch-mbp.dhcp.thefacebook.com>
Date: Fri, 27 Dec 2024 14:15:13 -0700
From: Keith Busch <kbusch@...nel.org>
To: Leo Stone <leocstone@...il.com>
Cc: hch@....de, sagi@...mberg.me, kch@...dia.com, csander@...estorage.com,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
syzbot+ff4aab278fa7e27e0f9e@...kaller.appspotmail.com
Subject: Re: [PATCH v3] nvmet: Don't overflow subsysnqn
On Wed, Dec 18, 2024 at 10:49:57AM -0800, Leo Stone wrote:
> nvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed
> size buffer, even though it is dynamically allocated to the size of the
> string.
>
> Create a new string with kstrndup instead of using the old buffer.
Thanks, applied to nvme-6.13.
Powered by blists - more mailing lists