Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2066698rdb; Mon, 20 Nov 2023 00:24:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVmr1eWfg+ZkMBA4d78unYSYBzg8gApu23lPrS4NjFXc8q9CJR51tAlHNX18NGPQXwr9wH X-Received: by 2002:a92:4a0c:0:b0:35b:867:5d79 with SMTP id m12-20020a924a0c000000b0035b08675d79mr946021ilf.7.1700468647547; Mon, 20 Nov 2023 00:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700468647; cv=none; d=google.com; s=arc-20160816; b=HO5FGIAYmh/sP2J5Jdlcp+BMc+4h8NMMK+vOAeaHoGKslRNsL/FhaX4oHceET5aNit qi7TE5uW3m9dirZxjArvGcUGKN14GClGm3UOlDjl5RHi3/XnyrY9IU5VVmSRUBKe6PS6 UjfOJ9p9oFADoi9PnU4yO2kKdSMI4sx9LbIjZgujRlffsKs97YaBMP15ee6TseXf/JZk AbsxNsTtKIcoDw2EQAjur/VR87Mtb8QeGIIxbTz2RIOsuhUTy8b2bbA8ewSVEOKksOGk SzS7fPNk40CMJQ9o4RWDU74A2QqorE5/W6wCJawtjHdMbLAuzVSDSiWw7nxh+Iv63No7 DB4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=BjFlCiiDgmGVfViB9bNatzRrwYMq09jqbSbMyq4MGl4=; fh=7+1DJTALn+4ZaRfRse3i9gyMHTp95eafIMxC0WbQyMc=; b=SdlubQfPcokBsINfKK9Tn9IgEwBjMqXaj0X4RCZHCOXDKmI2NZgcvP7AGPrGi4a0Jx fa8Kf0DLlLoLOL5gRpz5xtGE6lz7bMdlq3y7/Iq+4IeG6kc+daweMN3z4mtnGi9y/U4X kL4NrUNsAK+IpX8eDvQ1Ij3D6DEoxst4wmePUszucQJaWCPbGjS1/9DzScRsjLqVs6vy If6gc/eQnBvj9C9xsrB/R4oImHE7W2QbVJwjdV9YeU1yexE+MOhhqnQZytaY9/sM9N3v /9pjCHRVYTC7ua+3JtR/oMrftig7NHLFMK70XqWc7o3lVAPA2NAfSiJwugjZNPRJBOqy x6+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id fa18-20020a056a002d1200b006be1d2ee8f9si7987026pfb.224.2023.11.20.00.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 00:24:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7AF29809F38C; Mon, 20 Nov 2023 00:24:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232095AbjKTIX4 (ORCPT + 99 others); Mon, 20 Nov 2023 03:23:56 -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) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 00:24:04 -0800 (PST) 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.