Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp561699rdb; Thu, 8 Feb 2024 14:05:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK9/lPjfaEI+WymzNi2UYSckUymGxly7igmpP4h0JU58cDW2QEPLkBbbadscNnGDq4KBYi X-Received: by 2002:a0c:f545:0:b0:68c:425b:ea9 with SMTP id p5-20020a0cf545000000b0068c425b0ea9mr552546qvm.42.1707429904847; Thu, 08 Feb 2024 14:05:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707429904; cv=pass; d=google.com; s=arc-20160816; b=EgAKYiaS+6tAasDoA348ZyKG/f59fgfcb77tD0L0oyUuzn+frNcyxE2Q3RlSJbFcGr EVUtlwLp43wRNjTDIyoYk48+OmpP4Pz58runGiV01suoxTMrnE2NZ6l+LPtxdxjPBFHh XvuSGULl58MIfNSh0LHgeVCK3MF/TOBj2t9pAbdpF5Dd9CXO/4BomNBpZxHELfyHMWO1 14OYzBGdCk4nSzKVmWcUJvpFW7o1CyYoiyJuWRjs5NzqQPkIu3I6bl8VYyS+z0WPy7a3 ZjK94sP9D5izfo/ItF4KGM/knPxZK3w3lKD8fZVtZVUyCPN4nE1Q0tT1eFMTW6ybu0HI SVoQ== 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:dkim-signature; bh=+ElTeIhKQdcYOTGIX0k2qIyL/DOZ88xRVFWlfyfhkYk=; fh=3N49ZUDdYiyM15f5aNi30J2HQZGqCmGjZnfbs0CjVJo=; b=mwDCTymCIL9wLecqAW0Eg+eQaFNnCOBgpN6nyL3MdPpS7Ap+KCOvw41XdTm2Xwnxro MA9HIAW5/PMDGgLPco6nUUAlph5yJku38k9MEfjPYQXbs24mN6lCziib+49m+2f8ea5N FaKWbdTdfEurnQd73XpqdmC4TrmDm2K4DTId1jerx4pZCGhEyoeKM1dlwCa5fjH0/bXz 5dlmvDWjfjwz6zr7diPKWCvV0mGL7CBPS9gs/dmI9ivcc5G5wby7Qz+wxdBXrkBBWJf5 Xv+9NmCD3pbcYL80p/gHot+OQjMgTipVA2VbugblhRv0xXy7WMtNOszL8pGSNFtNJEwM ix/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=QPi9w618; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-58756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com X-Forwarded-Encrypted: i=2; AJvYcCWaJ6P7UCdPfJjlwYOcjSjajxsuudI8Z6gch7mIhXhGgHlEybiUkp/N2kxcwbK7Vp8rwF0reTpoa2vny+BOv5A8KMOrSVS20SP0pjZ3rg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p20-20020a05620a22f400b00785a77e8d8asi517377qki.123.2024.02.08.14.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=QPi9w618; arc=pass (i=1 spf=pass spfdomain=efficios.com dkim=pass dkdomain=efficios.com dmarc=pass fromdomain=efficios.com); spf=pass (google.com: domain of linux-kernel+bounces-58756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 987AB1C2206B for ; Thu, 8 Feb 2024 22:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 623654F88F; Thu, 8 Feb 2024 22:04:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="QPi9w618" Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) (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 13CEE4F887; Thu, 8 Feb 2024 22:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=167.114.26.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429893; cv=none; b=HRGpOlHSudXx98mraS00fQTeGwymlfkYNU5Qy9R5MefgoqgyiqIeUrYOM1L21IfgyvnEFB8zEWPuiGS/wOjapn8ENrQnFlXvNAqT0MYiqLJM3UxGnKGLIr2UyOfj283O9nvv/R7jdCWHJfWZDY9FguTcrG9kencRzoYpipQ4vwg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429893; c=relaxed/simple; bh=Lj0yj5k2Ucs4SxuNKFcA0jefNpL/MeJWdfUW/qhrm9Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XZEmVnMVVTVyJQYN9JtdCFv5RCxgD5z6TDtaE+gMUT80HN757GB3j3F/2dHGitEAVktCdoHlOkwaIkVbryFrm8CnihOaLF7hhkYcOi80W//nz+o/7w1vorqK0+rVwt+j20ZA2eK+trLIXePb41fvA8dKUz6MC/q0O/da1qoWQO0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=QPi9w618; arc=none smtp.client-ip=167.114.26.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1707429887; bh=Lj0yj5k2Ucs4SxuNKFcA0jefNpL/MeJWdfUW/qhrm9Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QPi9w618PKwnA9XXOQgmCJB1PCRsMn9Uf67yi2RMSz+npuqM1XhKC7wv0qn/5qaPZ HtBBgHJW61pZKEUsgM3zLsLXEe86GqM9Phz9OBoAMCs4XewbLcgNcWisq0fpdud38S 4+Cak3UtLlm7WZZcn4+/e6iz1E4DwB1CN767MGyarGK4n5Em+teSI+EgIpfRi5kayu FZw7bi34H+EYdcnCWkmUKL9ZD5zDBU6c7Yy7VjUqHCA/Jl05m7ySivgFkCGTg3BslR 2YD+qB8C1BDraBeGGpeO0/Ly1umtbT7QEm6IpByZbYEiI7Av04b1Noi+TDQJ0soltb Y9mP8c1pyefEQ== Received: from [172.16.0.134] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4TW9y72DKCzXtH; Thu, 8 Feb 2024 17:04:47 -0500 (EST) Message-ID: Date: Thu, 8 Feb 2024 17:04:52 -0500 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 v4 01/12] nvdimm/pmem: Fix leak on dax_add_host() failure Content-Language: en-US To: Andrew Morton Cc: Dan Williams , Arnd Bergmann , Dave Chinner , linux-kernel@vger.kernel.org, Linus Torvalds , Vishal Verma , Dave Jiang , Matthew Wilcox , Russell King , linux-arch@vger.kernel.org, linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org, dm-devel@lists.linux.dev, nvdimm@lists.linux.dev, linux-s390@vger.kernel.org, Alasdair Kergon , Mike Snitzer , Mikulas Patocka References: <20240208184913.484340-1-mathieu.desnoyers@efficios.com> <20240208184913.484340-2-mathieu.desnoyers@efficios.com> <20240208132112.b5e82e1720e80da195ef0927@linux-foundation.org> From: Mathieu Desnoyers In-Reply-To: <20240208132112.b5e82e1720e80da195ef0927@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-02-08 16:21, Andrew Morton wrote: > On Thu, 8 Feb 2024 13:49:02 -0500 Mathieu Desnoyers wrote: > >> Fix a leak on dax_add_host() error, where "goto out_cleanup_dax" is done >> before setting pmem->dax_dev, which therefore issues the two following >> calls on NULL pointers: >> >> out_cleanup_dax: >> kill_dax(pmem->dax_dev); >> put_dax(pmem->dax_dev); > > Seems inappropriate that this fix is within this patch series? > > otoh I assume dax_add_host() has never failed so it doesn't matter much. > > > The series seems useful but is at v4 without much sign of review > activity. I think I'll take silence as assent and shall slam it all > into -next and see who shouts at me. > Thanks Andrew for picking it up! Dan just reacted with feedback that will help reducing the patch series size by removing intermediate commits. I'll implement the requested changes and post a v5 in a few days. So far there are not behavior changes requested in Dan's feedback. Should I keep this patch 01/12 within the series for v5 or should I send it separately ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com