Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp190638lqk; Wed, 13 Mar 2024 23:14:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVshNMh5RowtAbler/hAcpW82t7LlIByz6rhUAkCOoQTo5soe163j1qWpwJatKEexQCb/azWLzItQg8da/nc+l15jzZeg19qbv5JtMiqw== X-Google-Smtp-Source: AGHT+IHPZbC/d1RtuDRDsvkORK9Ir9fpAUsAo2ucWpAXl+mhbdZigFN9MTAIQiqm8njAoR908URY X-Received: by 2002:a05:6402:4584:b0:564:54c6:6903 with SMTP id ig4-20020a056402458400b0056454c66903mr382040edb.7.1710396845556; Wed, 13 Mar 2024 23:14:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710396845; cv=pass; d=google.com; s=arc-20160816; b=r1zIr95PEsgshpG7qbd4i6xihvWo1BeIPPIcUwsEbUQduICbXFxqO16W/a2Vsr9kcV hl1Eqfk0EOtAHSkKFmpAqORWMMl3fswP426+YKomJBTGzow6AkfVzYnJ576+yk2cuzag qUflPvWnR7TrU6QReHsrarIWKZyP4Do1lhQRuumrDpgMhdglhwfnsStbXR85+gpgPrzD LIbk2emzziGczMfur3GQTFCY3eeswh+y9s9W60Rq4/itEmBCIIwUVIMR3BDiM/1Ra3P2 VZ51SuBID94Aojy4HcwGVY1+ppoRNkXZ1DsT/QHKIFJY1TgN9K+YxCJH/rwwA5Y8b4wm 3ntw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=LpEQ15/BcP/fjuXF4e27uGFBrsT+jVtbbeHCru6Nh3o=; fh=PzpTk03lO2B5yUVQEFM3d9L9LiTkMs2sGp4C3M3lSFE=; b=UjgeSvnljntDO1ePdoqejVIl8CuYLQCLuiZSMYXzupi+lLHVz66i8pvtXysEh5huJz BLU02n05KsD55w8+pVm7g1OdALMBCa8Kcv6XQRDEAWNJmXjbA4TRQAuMBpMXch1Adaan pU0AifjaHcXKMOlDCu12dNwMnIED4UPFb713CxOYtmlfbzxnKBc6HupBeAwZz64r4cMz hfysrl8ukXHjFGzRFI7FKixq5jSQRUBTb3zM6aiT3rcHGwAz7SKqj5tRQvP5Ezfd+Rt0 tSf/BIH2uTbMUzOQcnLpirM6O6TT+7bBZ9eT1fViqmI/AOxkaqSYDROKVdq0QSy5U1sJ B61Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-102868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102868-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s21-20020a056402521500b00568a09d2434si251586edd.135.2024.03.13.23.14.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 23:14:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-102868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102868-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D49D61F219D5 for ; Thu, 14 Mar 2024 06:14:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89D35FC12; Thu, 14 Mar 2024 06:13:57 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 DC71BFBF7 for ; Thu, 14 Mar 2024 06:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710396837; cv=none; b=IfpqAhDdtBGWSBXBUe2c8ObdJ9AuKwRBfxXo8Qe78B3ovKv5KD+MTqn9hvSUgSzBP8uaLFccVYeIF5rEpwQgYK6KI6joKeAyjrnIMsg0Q0J577ikYFpfxX0XH3SsDNVzD00AJE4bYKVkcDEXe0ZIBUfuAenAyovcIRkX9KU+4ms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710396837; c=relaxed/simple; bh=LpEQ15/BcP/fjuXF4e27uGFBrsT+jVtbbeHCru6Nh3o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RdY/LRBDuJqmF9Gpv0WeKnmZ8SkZskOkhLNbI54F9wozHLl5AA1mkRXY/gLZf8waRkP7arUwH0+JS9jZxnA5R/CO6BqRsmXRrijNLf7q4CZbvyKR+CNWnauSz44AWhudEGwVnmnj/3wneVhRwNzHZhpGbVMZAotRlbfdjC32PwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 87f24640804442478ab4c0c41f2ed086-20240314 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:6431f97b-90c6-43f5-83bc-0e24c63277cb,IP:10, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-5 X-CID-INFO: VERSION:1.1.37,REQID:6431f97b-90c6-43f5-83bc-0e24c63277cb,IP:10,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6f543d0,CLOUDID:dbb96390-e2c0-40b0-a8fe-7c7e47299109,B ulkID:240314141347PQQTX76M,BulkQuantity:0,Recheck:0,SF:64|66|38|24|17|19|4 4|102,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil, BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 87f24640804442478ab4c0c41f2ed086-20240314 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 657671404; Thu, 14 Mar 2024 14:13:46 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id 5C173B80758A; Thu, 14 Mar 2024 14:13:46 +0800 (CST) X-ns-mid: postfix-65F2959A-259172168 Received: from [172.30.60.81] (unknown [172.30.60.81]) by node2.com.cn (NSMail) with ESMTPA id 1CA6CB80758A; Thu, 14 Mar 2024 06:13:40 +0000 (UTC) Message-ID: Date: Thu, 14 Mar 2024 14:13:39 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] nvme-multipath: fix bogus request queue reference put Content-Language: en-US To: Christoph Hellwig , Sagi Grimberg Cc: kbusch@kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org References: <20240117065043.79192-1-mengfanhui@kylinos.cn> <20240117143952.GA27918@lst.de> From: mengfanhui In-Reply-To: <20240117143952.GA27918@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Purpose that to check if we ever added a live path (using NVME_NS_HEAD_HAS_DISK flag) and if not, clear the disk->queue reference.The purpose is to perform security checks and remove the disk. =E5=9C=A8 2024/1/17 22:39, Christoph Hellwig =E5=86=99=E9=81=93: > On Wed, Jan 17, 2024 at 04:04:12PM +0200, Sagi Grimberg wrote: >> How did you see this? disk->queue is allocated in blk_alloc_disk calle= d >> in nvme_mpath_alloc_disk... I don't understand how you saw the same >> dereference that was addressed by this commit. >=20 > This looks like a backport of an old patch of yours to a geriatric > kernel to me..