Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6394780rdb; Mon, 1 Jan 2024 23:24:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKUs4Yzim1E09ErGPbzMCup807bS4vLuUKZ1PhmmTQ0tLYFUXsUWCcrVY5do+IWfukHtfi X-Received: by 2002:a05:620a:60dd:b0:781:b964:1c7b with SMTP id dy29-20020a05620a60dd00b00781b9641c7bmr4632570qkb.70.1704180292982; Mon, 01 Jan 2024 23:24:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704180292; cv=none; d=google.com; s=arc-20160816; b=YenK3QyiWy25SjRl+SBCxY4mCNifeu53To4HTjHs69utfTNmcEQnERL/4HJxRcnwDJ VfW337Vd00wD+kHRFJVTrAAIlUJhqB6MysC29gjPc0j5pQ+EeIZtc5dh6wT+pwVeFIcF GgcAL2E+GFwfV5yJGJdfp0uIph4iyzk6Fx7+uWsKkwXGNQtwFUlc2H9gHD0Wc/3+nozP Lg/1prh8VM+8lc7lB4ojB0MWf6fKbhnqAft978bL7OFJhqVIMPBIMOHc2J463cHoRQJS 2GpTc1sVfg9wm+d1tqIgAcyickxIo2+kvHT8UVjz1zkv1cOIN6d4x1snAi/RNwmBMtQk cmEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature; bh=2sRidRuJgpmzA3ok6Z8thcz4Si/E71P3fem+BTaKpTg=; fh=n3NAP/39Cau7tzNn2W3oCVWe6PxxDZwOJ3pLQyygMJg=; b=GwNaDIZV6IKbBqvTF9oF5SoUm4Exj0AGEMGVrvtNLiA7OwRC8f72mrP1cBNAhTB3RE pEltE5EbMD0xbGIopUgsrGIX3Y/QIF92yXUCCJKCcIxzYAmrXCFduxW60rx9lu+JWqIG Xo6eyuNjrdRyU/Wg78FmsCZhJuC+aMJXVZWqq7OgD3bjx+s4IA33oifNiM85WpJWBzBl 29MwDO/zob5+nbsy4czRr6vnktDGV8vTIeeDa36pDYqlVS0r7xlfzOlZN1uDUfkvrYc5 yBtqcjhhPzzlvePmCi5mLrja/5x9Sqj9kFYm5nYd26JNQA8HiU+UrYL9f8pyESquajAl c1vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jQuDPbIO; spf=pass (google.com: domain of linux-kernel+bounces-14111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14111-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r4-20020a05620a298400b0078130838b0bsi23414015qkp.471.2024.01.01.23.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 23:24:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=jQuDPbIO; spf=pass (google.com: domain of linux-kernel+bounces-14111-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14111-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 552751C21465 for ; Tue, 2 Jan 2024 07:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E937820E0; Tue, 2 Jan 2024 07:24:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jQuDPbIO" X-Original-To: linux-kernel@vger.kernel.org Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 73D9020F5 for ; Tue, 2 Jan 2024 07:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=idosch.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=idosch.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 918FE5C020C; Tue, 2 Jan 2024 02:24:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 02 Jan 2024 02:24:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704180281; x=1704266681; bh=2sRidRuJgpmzA3ok6Z8thcz4Si/E 71P3fem+BTaKpTg=; b=jQuDPbIOhXqcnl/2XjMpDaMcfl8xMb0wUs6rifmWfVnZ CZyxvBfDg4CzNtJNfrNs4+dOmDN2ncCytkOjYcO8sCmEpGwsUPm4+YJUUPOAVj/c 1Pdv20ipeOaPJCDVwd4xl9BDleAvi9pF1dXCTJSP+GwGS5s4cUStlTvsXWwjArjd 8B4ajb/zsO5pS9vjG3tsbDSazawMBGIULVq9LMj5KUE6UgknAoo+2ovfgp5Q4duv QS/cLYDgUJRzvms0uPwhCqfN2ncTrCDdaQoKBKUk3rslelsN/RifvBtrmxWFSx3E EWX3JjrflNsJvDR7mFxphBRhPWWPrIoJzjdtMqmSPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeguddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefkugho ucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrg htthgvrhhnpeehhfdtjedviefffeduuddvffegteeiieeguefgudffvdfftdefheeijedt hfejkeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhr gh X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 2 Jan 2024 02:24:40 -0500 (EST) Date: Tue, 2 Jan 2024 09:24:37 +0200 From: Ido Schimmel To: Robin Murphy Cc: joro@8bytes.org, will@kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, zhangzekun11@huawei.com, john.g.garry@oracle.com, dheerajkumar.srivastava@amd.com, jsnitsel@redhat.com Subject: Re: [PATCH v3 0/2] iommu/iova: Make the rcache depot properly flexible Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 28, 2023 at 02:23:20PM +0200, Ido Schimmel wrote: > On Tue, Sep 12, 2023 at 05:28:04PM +0100, Robin Murphy wrote: > > v2: https://lore.kernel.org/linux-iommu/cover.1692641204.git.robin.murphy@arm.com/ > > > > Hi all, > > > > I hope this is good to go now, just fixed the locking (and threw > > lockdep at it to confirm, which of course I should have done to begin > > with...) and picked up tags. > > Hi, > > After pulling the v6.7 changes we started seeing the following memory > leaks [1] of 'struct iova_magazine'. I'm not sure how to reproduce it, > which is why I didn't perform bisection. However, looking at the > mentioned code paths, they seem to have been changed in v6.7 as part of > this patchset. I reverted both patches and didn't see any memory leaks > when running a full regression (~10 hours), but I will repeat it to be > sure. FYI, we didn't see the leaks since reverting these two patches whereas before we saw them almost everyday, so I'm quite sure they introduced the leaks. Thanks