[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ff7b76d3-2983-44d1-8db7-20629bfbf89c@suse.de>
Date: Wed, 6 Sep 2023 13:00:19 +0200
From: Hannes Reinecke <hare@...e.de>
To: Daniel Wagner <dwagner@...e.de>, linux-nvme@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org, Sagi Grimberg <sagi@...mberg.me>,
Jason Gunthorpe <jgg@...pe.ca>,
James Smart <james.smart@...adcom.com>,
Chaitanya Kulkarni <kch@...dia.com>,
Christoph Hellwig <hch@....de>
Subject: Re: [RFC v1 1/4] nvmet-trace: avoid dereferencing pointer too early
On 8/29/23 11:13, Daniel Wagner wrote:
> The first command issued from the host to the target is the fabrics
> connect command. At this point, neither the target queue nor the
> controller have been allocated. But we already try to trace this command
> in nvmet_req_init.
>
> Reported by KASAN.
>
> Signed-off-by: Daniel Wagner <dwagner@...e.de>
>
> ---
> drivers/nvme/target/trace.c | 6 +++---
> drivers/nvme/target/trace.h | 24 +++++++++++++-----------
> 2 files changed, 16 insertions(+), 14 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@...e.de>
Cheers,
Hannes
Powered by blists - more mailing lists