Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3619018pxb; Mon, 24 Jan 2022 13:39:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXLyyFhHBhatP0xzRgAWb8d/0uJrs4cLlhlYiJT346DEHHS/bkNzBFqmBkaohgYeq02Ngv X-Received: by 2002:a05:6a00:2181:b0:4c1:3b84:b43f with SMTP id h1-20020a056a00218100b004c13b84b43fmr15764367pfi.50.1643060357415; Mon, 24 Jan 2022 13:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060357; cv=none; d=google.com; s=arc-20160816; b=0DKzHUt3OLT8dWGbshBmtESfbVvL1FODvua2Jj2j7FUhawQJBhq1JYLgS5Hs+FoIAK KDhEw3PIRV608+pPje9x3zv0SpLlX3aoJzO/kXA+vUTSjQMboQ8r4vHb+7iAE+qZWFjt 73jK1tXKpdHALfKEipi0L2TStPxEDHvnmz+r01TGbKObKF8EBe19xhYGPw7cp06LEbrh gvW49tJRolR+mP1JblgT/yOC295k5gu9Pz+6w1ZlggR48RfzheIkj1WEJbUITEGEXRXy VQdw5mzwdcW8AUe94psnz55Cz0O/R2ccK59TDjst4ABnAjRViSd/r1SApQhKA3Ub5VXi X8ag== 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=a0S9QsgFAjSLavLF+HaG1leYyH4pm1hQACjt4v3L6CRA0VgVhusS03J23K5nq1he0S Fg2YZiLA8ocOBZsP2yD7Qgq+w54XksQjmquBCgkgxXlLKedoIzUWHc4+sZOcAXGJULFy uU7sxBGedZNyueVLvM+BzlkaE5CkgYaxt6vdBogUNs078YI7aJ8KmN3M3odGdJcW6rKq VHDd9itk5SrnbVcSsadsxt53KGgID6hscWHmCILHqO8Ec06ZxB1DKEu0Hl7xSjUi0pMW d/thoxYX9ODyM678xGGRscCxk9ORzRVGHYQgx0y9FUwoqH75rIyxnMKWxEH95rSi/ld4 spDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pPIQU1NQ; 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 q10si15149086pgs.421.2022.01.24.13.39.04; Mon, 24 Jan 2022 13:39:17 -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=pPIQU1NQ; 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 S1450633AbiAXVVI (ORCPT + 99 others); Mon, 24 Jan 2022 16:21:08 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:49674 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441926AbiAXUwY (ORCPT ); Mon, 24 Jan 2022 15:52:24 -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 ams.source.kernel.org (Postfix) with ESMTPS id CE7CFB8121C; Mon, 24 Jan 2022 20:52:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3AE7C340E8; Mon, 24 Jan 2022 20:52:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057541; bh=MHmC5G+aOd3jIodOwStGtnsuWl6x1s8Ye8y6waVER78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pPIQU1NQNbZYo0euk24REjy4JSTabrv6SzwAQ05SFOSNjfZeyorCMNxoZB3pErxfN KtTN83A/KHn9DRzzgMOkM8D7jPLrYsjR6YvSSQ1cOia1tgB3bJ7xyuZqIEaXhNMAkw VB/lHb1CiMUJpbT6P6gtlEbwgq4XupNVBLbjQebo= 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.15 846/846] lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() test Date: Mon, 24 Jan 2022 19:46:03 +0100 Message-Id: <20220124184130.082412033@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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; }