Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3729197pxb; Mon, 24 Jan 2022 16:31:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT16GeIRjf71J5mMXds4/rlxuVRm1/c4LtbINzcSJPdNonk2lKG4msGdJXjNWx8hjJoTDb X-Received: by 2002:a17:902:8305:b0:14a:bd99:203b with SMTP id bd5-20020a170902830500b0014abd99203bmr16308837plb.74.1643070710163; Mon, 24 Jan 2022 16:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643070710; cv=none; d=google.com; s=arc-20160816; b=xI80bhdekJt+7m9Q5+oXdKPfgv551V7jFKjqJSeyzBNx941OlhfNdqCkwcsXnB5JL0 YqtKBD8MLU3hP28A47m3u/1uxSJIgWJ9Jq5O0OlTwtVia1ZEg7CEptXcGqbzQieXACZe 9tVGGbwKYnp/Mfu3qF80J8/5qqxqjcIBRMwoZb+x22jfAxZ9zq1HGxFx3ALb4dyFQal2 q4ciW7NN20SI9iSDQ28a0lglPnjiEFWwNS3Wd32HzSlTVMuINEeV3iPWHuR/9TKgw5kS FHRuOR89CR+kSGMWBIH1a1Z1ZoFx/M+RpaAyI+xb6Xq3S/6Xh+x+prP6SiwuGrVEgBmG m0XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fBWqFjzb1KRPTfQQTP96F4qlpfagqrN9T0JHEp9RMXU=; b=QrJcElhcr50bl2m+1vvM/arH1Z0QIdAqwHDSCLawJUwdSZQBK1g7CMoe77275cvXh+ zng0tScrJxQvuQkI1lAseYCwokiaJoHPsSz49QcUrHJQ0iwPH/eLdfLsNGTCQ/eyA8Ty vg6EgrPNqyF0QUVx3wONHIl2L230gpK23h6mvMAnGeR+1CuiI4d54Zo/qjdPZfnrybNL p2/+EFbBDTJLIIM4r4cbNqP/XgHhO2QYWGREGdHfzGVCeCcIXbx+mhvIOu2BG9C3oao4 m+VIxFyT3zqA7yLI5ckJkiQWU3bteFutZePBTtrP5BrLhptsIdsZUlt8r+5TSsSluO/r Jg2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GVxkupgk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 138si11867076pgh.67.2022.01.24.16.31.36; Mon, 24 Jan 2022 16:31:50 -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=@linuxfoundation.org header.s=korg header.b=GVxkupgk; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S3409725AbiAYA1P (ORCPT + 99 others); Mon, 24 Jan 2022 19:27:15 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:33936 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573366AbiAXVoy (ORCPT ); Mon, 24 Jan 2022 16:44:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9BCFF61530; Mon, 24 Jan 2022 21:44:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CEFCC340E4; Mon, 24 Jan 2022 21:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060690; bh=MHmC5G+aOd3jIodOwStGtnsuWl6x1s8Ye8y6waVER78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GVxkupgk8Jqk2LO/LN798YajnKUlYf0ukfICEqnnhAAoEPhPtAHdqeo/4DOU4HSTc aoUqO8rutJh2ei+uiBZE2l6Ma/Ue44B7u9ymZsAbRICUd24Tipc8J1SIw0Av15ZVKY wGtaQNwY3HsRFrgs2qQ5c1/IG03/ESB9IYmTngGo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , Andrew Morton , Linus Torvalds Subject: [PATCH 5.16 1031/1039] lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() test Date: Mon, 24 Jan 2022 19:47:00 +0100 Message-Id: <20220124184159.948287040@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Konovalov commit e073e5ef90298d2d6e5e7f04b545a0815e92110c upstream. Make do_kmem_cache_size_bulk() destroy the cache it creates. Link: https://lkml.kernel.org/r/aced20a94bf04159a139f0846e41d38a1537debb.1640018297.git.andreyknvl@google.com Fixes: 03a9349ac0e0 ("lib/test_meminit: add a kmem_cache_alloc_bulk() test") Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver Cc: Alexander Potapenko Cc: Dmitry Vyukov Cc: Andrey Ryabinin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- lib/test_meminit.c | 1 + 1 file changed, 1 insertion(+) --- a/lib/test_meminit.c +++ b/lib/test_meminit.c @@ -337,6 +337,7 @@ static int __init do_kmem_cache_size_bul if (num) kmem_cache_free_bulk(c, num, objects); } + kmem_cache_destroy(c); *total_failures += fail; return 1; }