From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C694298CB2 for ; Mon, 9 Mar 2026 18:10:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773079847; cv=none; b=GbrOvZ0SWuQCGqwwKQ8EA8JBFjYLeRinkpFJ7NB7Ymrm/N0FYIlQc091Zb2JxgRvWRaiQhrAZJ8DdNCAVAZbqsidddPFKUcCaF2w3vkvAU41lSv11TH1pNMB3S9c7GpSKpib41Do5YBQyD8tOcy2GxUGKMhxNE74AZyhhn/0+rM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773079847; c=relaxed/simple; bh=WhckETqNPKHMxehnm56w4T3fFTBC/dfjqWC6vUsBJuA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pdEfJy7FM3SgdYyvEVOOFsddi8e1W7ssRtN0Iy3KZZmeeA70Mcq0641WN7oZ+cxWockx3t2JkQ4C0Bcqyct0Qjfiy+EgSiGFrPCIzIbnTtpyB9QWjcvuGoVSEyNna6lsqslCy9YbIo0rp/dhzhmrYZLyqAutXvw4Uq238DEdcJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eZ0/3kkA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eZ0/3kkA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AADEAC2BCAF; Mon, 9 Mar 2026 18:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773079847; bh=WhckETqNPKHMxehnm56w4T3fFTBC/dfjqWC6vUsBJuA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eZ0/3kkAidyR8HjNg7KlZV8dE8sTsNB3suGsCEt4H9SCF2oF1wZJ4eSCZTxeeu82l aI18bRihKQqbCnT8qHYNvjkAHNZ0eDkE0t9KGaBadmu2Gn4/FD0nUxpwyZY4mftseo vpEOMs8666dkfLtYUObeO7AbzFhUi/FUUfcBSYxxMPTP1xE6fxTnrxWnoXBDgLXhSG eFMukCMEs9hrTtd4UpI95mYADxDEx03NHdiHwsxu3hQpwHNehSZlgBbilUw4oos8Lr +fQhJdX5yED3g7vF8x8k2V4dhgFyiupoPrHgQFVldA0CuL5W9t0lmHtzi59hCNEzev 9bPWZWoG0KCwA== Date: Mon, 9 Mar 2026 12:10:43 -0600 From: Keith Busch To: Sungwoo Kim Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , Minwoo Im , Chao Shi , Weidong Zhu , Dave Tian , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix slab-out-of-bounds in nvme_dbbuf_set Message-ID: References: <20260308182059.2415316-2-iam@sung-woo.kim> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20260308182059.2415316-2-iam@sung-woo.kim> On Sun, Mar 08, 2026 at 02:20:59PM -0400, Sungwoo Kim wrote: > dev->online_queues is a count incremented in nvme_init_queue. > Thus, valid indices are 0 through dev->online_queues - 1. > > This patch fixes the loop condition to ensure the index stays > within the valid range. > Index 0 is excluded because it is the admin queue. Thanks, applied with some modifications to the changelog. The commit subject should start with 'nvme-pci:' for this subsystem, and you can go to 72 characters before wrapping the commit message.