From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B734DC54E76 for ; Mon, 20 Nov 2023 08:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229483AbjKTIX5 (ORCPT ); Mon, 20 Nov 2023 03:23:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbjKTIXy (ORCPT ); Mon, 20 Nov 2023 03:23:54 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B90B795 for ; Mon, 20 Nov 2023 00:23:50 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id C71B467373; Mon, 20 Nov 2023 09:23:46 +0100 (CET) Date: Mon, 20 Nov 2023 09:23:46 +0100 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Yuanyuan Zhong , Jens Axboe , sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, randyj@purestorage.com, hcoutinho@purestorage.com Subject: Re: [PATCH] nvme-core: remove head->effects to fix use-after-free Message-ID: <20231120082346.GA11622@lst.de> References: <20231115185439.2616073-1-yzhong@purestorage.com> <69218380-45f0-41cc-8a65-50878d44219e@kernel.dk> <20231117132846.GB7867@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 17, 2023 at 09:38:19AM -0700, Keith Busch wrote: > The effects log is per-CSI so different command sets won't create > conflicts. True. But that wasn't the point anyway. It is that different controllers might expose very different namespaes with different capabilities. Maybe a controller with HDD namespaces vs flash might be a better example. > Namespaces that are not shared don't really matter here because this > problem is unique to mulitpath. Indeed. > It doesn't make sense for effects logs to be different per-controller > for the same shared namespace. The spec doesn't seem to explicitly > prevent that, but hints that all hosts should be seeing the same thing > no matter which controller they're connected to: Also agreed as already indicated in the past mail.