From patchwork Mon Sep 18 05:10:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 13388817 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 604A6C46CA1 for ; Mon, 18 Sep 2023 05:11:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 835BD6B0206; Mon, 18 Sep 2023 01:11:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E3DF6B0207; Mon, 18 Sep 2023 01:11:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D1926B0208; Mon, 18 Sep 2023 01:11:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5DD636B0206 for ; Mon, 18 Sep 2023 01:11:58 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 1E4B5C0B59 for ; Mon, 18 Sep 2023 05:11:58 +0000 (UTC) X-FDA: 81248546316.25.206B4E0 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf27.hostedemail.com (Postfix) with ESMTP id A92784001B for ; Mon, 18 Sep 2023 05:11:54 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf27.hostedemail.com: domain of ruanjinjie@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=ruanjinjie@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695013916; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=5zY587p1snXp7fPiaJeOul1AoH8Tb5t0A38vagJAv8I=; b=2T/e2EJpWk9t1wkQAX4SJuOsJrK5r4SpDiVQO4y/BT7vGzYre8i78DgJlXQgGG8D/Wm1rr yt6uoGpPK70kVhcU1EsAr91UYarl12THvir+7KABzjBP1PlL+2lJRXKaMCydQCOMZBpp0D VZQ0Z/fDJEGDhXtU2IDcJkFz821J1Rc= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf27.hostedemail.com: domain of ruanjinjie@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=ruanjinjie@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695013916; a=rsa-sha256; cv=none; b=fex1z8f+HpDpd+xMFe9RXKS5WkZsHxwLQssVi0SbzSy4sFZSw3E/n8aW8JGueUHK5Zbxjy Pu4+uGxCXzrHg+IDKDEYaIxXEwV+L0J+fl7BNm5y1bClPVjZTnKM9tGU1YeWYgu0bQX7bX G5A2icGF0+29O3UIH3lW+LDeQdu055g= Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4RptBw4rnmz15Mq8; Mon, 18 Sep 2023 13:09:44 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 18 Sep 2023 13:11:47 +0800 From: Jinjie Ruan To: , , , , , , , , CC: Subject: [PATCH RESEND 0/2] mm/damon/core-test: Fix memory leaks in core-test Date: Mon, 18 Sep 2023 13:10:42 +0800 Message-ID: <20230918051044.3814018-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: A92784001B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 575etm1ib3qj8nubphdw83d3pp5j55c8 X-HE-Tag: 1695013914-483808 X-HE-Meta: U2FsdGVkX1/z9RHr99qkfQQhfAkRv2l6Vln/RvsSc4wy9vKPQsrhPnFJhnfdXFWjnsBjdTJHnuFA95Lurbdx7NfgN7AcLxmK+EqrXrJXoO594b2KKXcFEKEOgIQSGHjGbSNeNTh+Ee8liwUzdRusk65b3HqtQQ4lNGuERYQQ8fSZPoTg9jzpfKz7klBnjQtn3UyAUTBj20x5ZSlqdU2PyfkBdnUOcOSPGeF8D3j/cPW2ILbKBLh4ly5q804zqWuk3rAbNp4zIEAe/JnsG1dUzfoVidx7QGoQOI4K2MObbYhXwtcMAnRgBl6dmo/ONUib10KJjathrdm/2BeuFIUHmi9tqtXgVsJIQPGZqYiiC96d+lyc48G4RzX2sQ/Y/01f/7CXjNA7ftq3V+ZbnVyslnnvvujpg4E96xRFb7EkrEDX6sV2jrAjEkiOPDbv1GGSB3KsIPOcu1uASStxBj8uQq5HN0pypqlJPQkYdoEykD7zufqnJoN53cYAsagDYIjMgEmBHsPtcPvO/LSHXPmS7yI/on8dOsWsgnWigPmpXC+oObjO5b7Cc2ap8YaOCZkCraqoweBo8bEiQ+eCqcn3kh2DahpP085wt6S6dwZ6hYJSXfaqyfvbyVplVm1+oVNDCRYjuOsB6qjyp7UFXcCtYuvdABxWlL5Eq+Dtz/qPPnX72QgDGAqfDeSBZS+NML1mRVC8X8l37i+H/frUNnfPvr4dBm7E6dxmdGW31r95NrWViY432Gyn0Hz+hWTzNIEWS73uidbXdYeIzQ+uJiHr1gIUMk8zqFwt9yvEBo+gyGtdnAZnLQ/kNlCWehmi3tj/wluL5UeU1UsE8gtM8IpBwbMQF3pDe9wcwqZ2XSf4NyXfRE0hcyqgp3qMpoxxHEN5Ng/cYwH7BJg5udVPEHIZ+tbklB/o8BMMWbQ9DX05iRrtYdB8pj8j8i4WyATvoBwvX2HI3rRa9lVgIxtbZ/8 7EoPWCw9 AXVg0Ui2In1CwDY2NU79pFlIebljZ37/XyvGWqndPyVJpBRjIKb9U+0YT+91fAm0vKuVT/SGbinKurTm1Ml3RFq4u/iytDbG21OZq7plFCZ7IRG7l1Z/wl9ssGQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000371, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: There are a few memory leak in core-test which is detected by kmemleak, the patch set fix the above issue. Jinjie Ruan (2): mm/damon/core-test: Fix memory leak in damon_new_region() mm/damon/core-test: Fix memory leak in damon_new_ctx() mm/damon/core-test.h | 7 +++++++ 1 file changed, 7 insertions(+)