Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3851908pxu; Sun, 20 Dec 2020 18:59:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnkH66ZBUzx1SBihq8LFsvBnR2lr1ynr/1rPRZ9udwG6T9cVeSEkVfKJspevJIjMGF6CHD X-Received: by 2002:a05:6402:5114:: with SMTP id m20mr4071952edd.35.1608519546374; Sun, 20 Dec 2020 18:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608519546; cv=none; d=google.com; s=arc-20160816; b=D/zPApL2svnPsRJNej9c9SStc6t7kaKVVoxrN254SvldCAdzJkr7uLFL6Oi25bt7pe dMbUPkwg7BwAROkdILPp9ZgCyZVDTBMPoNqDIaTASqG1yLoyoL6i8KpsW2Hjf+PgSZhd fhmXmkTSFZ4WHE3x1jlXWjXJ78/KoW4IxnizqDkTqRa6CWIku62WG/BEOf5xOlMLK35R AbCDeoTLGkW+L6DUFzsIiOUA1gYKtzM4LCNjO7dItwjUfuNlwBgj/4jJOPaJD2gkgq6+ nmXQ5hXinkPqRjQS5pZEr2iG1ZOsXXK/WlChJbfrLdbksMj9ocURJBm8eF22orVjMZ7X Pk6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=wWq7B4LyxEcVkTsFfFCi/2AlTzyZcWNPHpl2MhaqnnM=; b=zeR9u0fXWh3yM8pTZ5dUf832cZqWIII94//uKYbdMXw6BNedASA/U01L2N0w+68oc+ Z1tmqCJsM2t4FcWhm1G13PJ/749zPCmvc7K/s/0oru3gNfp7vpzHYtg/vymt+gFKSSiB jAQnH8CmcsWNZYeBuT/vi+/MeqWeZEx5OLAzLRNgD1aTZlNPaQ+LXLK+o3yXQtn+xj+i j+j6DzPu3UyXeeKB09EP+VPyhIawsRDjl5o0CBiIenhIpwODWSgOJWuXHih8B5gwROI/ czEtd0NwaX0MPPQ0nMDwBZFnDbX6JNrl9jk3bMw9NX7a58Irs7/4pLB0uYNRvF8MPIzM 45Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=sJI6B+Kh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj13si7756945ejb.521.2020.12.20.18.58.43; Sun, 20 Dec 2020 18:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=sJI6B+Kh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728516AbgLUC4S (ORCPT + 99 others); Sun, 20 Dec 2020 21:56:18 -0500 Received: from ozlabs.org ([203.11.71.1]:48337 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728509AbgLUC4R (ORCPT ); Sun, 20 Dec 2020 21:56:17 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Czkbz74JRz9sVm; Mon, 21 Dec 2020 13:55:27 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1608519329; bh=f4F491BaNqc7Qn32ON9IjfLdZLIb3j3TCOzNOfuntzo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sJI6B+KhK58CUPZBBm444cUWSbM6Mjuuf78WKNQs1MsfEE6zfrKNG6HWOUUmsy+1i 13fYJj47TG26IMIPicKsxjM8buABVDWrBiTyWNufcNiK09Nau6E958smtHBsr2tCEq TVelB1yaWwlOGn1KdfDzwW2ukDdHe3dhLsj9jZV8txuR9VPhfcR5Td7ThXukXvfD/+ V12pu7fSEju9Oqk2S1gplocdlQ+K/0SxmzIQHD1ZUzdBz7TBJ4zPOEumYdz7d9bo7c uW9lFciCObDRN97CbRnaHkgGpJMqI5r3zDAw4X7JIoJSw4Efy2mV4lDpOZVMtO7Ln1 FkdFcMH3Fmt5Q== Date: Mon, 21 Dec 2020 13:55:27 +1100 From: Stephen Rothwell To: Kuan-Ying Lee Cc: Andrew Morton , Andrey Konovalov , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the akpm-current tree Message-ID: <20201221135527.4cbdb11a@canb.auug.org.au> In-Reply-To: <1608517898.9171.6.camel@mtksdccf07> References: <20201221131017.128c89b1@canb.auug.org.au> <1608517898.9171.6.camel@mtksdccf07> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/nHyfFR7u4_cuD3Z=5bTr1+k"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/nHyfFR7u4_cuD3Z=5bTr1+k Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Kuan-Ying, On Mon, 21 Dec 2020 10:31:38 +0800 Kuan-Ying Lee wrote: > > On Mon, 2020-12-21 at 13:10 +1100, Stephen Rothwell wrote: > >=20 > > After merging the akpm-current tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > >=20 > > mm/kasan/quarantine.c: In function 'quarantine_put': > > mm/kasan/quarantine.c:207:15: error: 'info' undeclared (first use in th= is function) > > 207 | qlink_free(&info->quarantine_link, cache); > > | ^~~~ > >=20 > > Caused by commit > >=20 > > 120d593a8650 ("kasan: fix memory leak of kasan quarantine") > >=20 > > interacting with commit > >=20 > > cfbc92088e1d ("kasan: rename get_alloc/free_info") > >=20 > > Can we please get this sorted out once and for all? > >=20 > > I have applied the following patch for today: > >=20 > > From: Stephen Rothwell > > Date: Mon, 21 Dec 2020 13:07:42 +1100 > > Subject: [PATCH] kasan: fix memory leak of kasan quarantine fix > >=20 > > Signed-off-by: Stephen Rothwell > > --- > > mm/kasan/quarantine.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/mm/kasan/quarantine.c b/mm/kasan/quarantine.c > > index 3f3b3d902c18..091a57f942b3 100644 > > --- a/mm/kasan/quarantine.c > > +++ b/mm/kasan/quarantine.c > > @@ -204,7 +204,7 @@ bool quarantine_put(struct kmem_cache *cache, void = *object) > > =20 > > q =3D this_cpu_ptr(&cpu_quarantine); > > if (q->offline) { > > - qlink_free(&info->quarantine_link, cache); > > + qlink_free(&meta->quarantine_link, cache); // free once > > local_irq_restore(flags); > > return false; // free twice > > } > > --=20 > > 2.29.2 > > =20 >=20 > Please just drop this patch "kasan: fix memory leak of kasan quarantine" > from linux-next. Otherwise, it would cause double free issue. OK, so for today I have reverted my fix patch and 120d593a8650 ("kasan: fix memory leak of kasan quarantine"). --=20 Cheers, Stephen Rothwell --Sig_/nHyfFR7u4_cuD3Z=5bTr1+k Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl/gDp8ACgkQAVBC80lX 0GxN7ggAj/R2SMp5gZdUUQl2mbWK2pbglp2idMOQ+VNz6hqtPSHaAz2hWp4choVy mqiJ4t/YjKoJ8BbvdEvlOFSP2jiuY/4eFlz3ZNVT+x7pEmBaEYKRweIWbpXpe/cO uJwmiogIH1ZST6s+PtCbJ66iQImGouqhaC4YtZjlU4odQ9rF/IiiSYQ4d92g7MEr gTW63bKFybLAx9lNWzgI/AVUFBuwrmFZ0eDacZvg5VzGD3qWyp62Al5RJ1bnKAB7 KW6bMoyj2d+b1NzEpgJ5LUgn6BjqwF2azGMpcv7ZMIGf6YZsGalMDIOOBGJWwIhP s+EgdrnM3zS9s9XRTLvX3zDetvlOUg== =DsWf -----END PGP SIGNATURE----- --Sig_/nHyfFR7u4_cuD3Z=5bTr1+k--