Message ID | 20230301122919.266818-1-chengzhihao1@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3595545wrd; Wed, 1 Mar 2023 04:16:11 -0800 (PST) X-Google-Smtp-Source: AK7set8buS7QfikClgm1KCMvdm+3JkTFEaPa7jiBPtYi6rgtWjSmHTYE5iddBVENDpAgDj4CaQth X-Received: by 2002:a17:90b:1b48:b0:234:13a3:6e65 with SMTP id nv8-20020a17090b1b4800b0023413a36e65mr6987199pjb.16.1677672971607; Wed, 01 Mar 2023 04:16:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677672971; cv=none; d=google.com; s=arc-20160816; b=zq7R2B45JUpn/GatcZ+Eg9wXJ1BB19MB5bdKdeJA9v0qIH0V/k8PHsFUEJs1WVaRvu 2PqZkYCkBu/s3azWU1Sj8sfGrZMcgJ2CtZOoHdRNKPy7qbl2ptpLXDxzFAPOPqg73TBj O4Smp0gaugLUptnfo9WuZyJejolWj1Zrk+11y24IwIFH/Qa+6opsj194/g6gvqF6lUAt zqIJfVmZn4dk2AGh1JkOBV7Iu9j6k54jb17RafGw7DCE+6EarO1eCd4D66FBv4GuU2tp btlhZ1mxNkbUTDMIaqIcuDl1g5jpQdXtBAwq0nZcIN4W/oOyDI7xHgBYJFoTfh9OC+5r +miA== 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 :message-id:date:subject:cc:to:from; bh=foSTyAa6wa6RBMszoqrztSDUft6PCYTawYJXfxoT/c4=; b=IK/gfoSsmAK1lK54xCIpBVfPoRCrpqQCTOzq7zwRm+Z8otkWGhMGVuDrWsofu3C1B3 3Avy1sYeVqK8uxMpd2J5D6jaiKIb4/qbYtY0BWUvFdbxfQjsV36Yq8haxjkbJq76ZA6X vKdDWbbQsBwHgxFRS/O4onKCcBZbbw8PTqG1efgnDnPL+LtTfwzyz07yDXyiKk/Htqu7 5soHSfn1CL1uFb91ccvbZlzTCgyDH113PGZK8zPhfkT2xlcMdBLasYu7o47Wh/52BYxC eliIZ8aCoB3ykyuEm9h7SHfjkyIJonbCyJ9+rNIsnZj8XnieWJrYom1D+tlCVLuDClyM ep/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a17090a9a8600b002375a3e4b10si13159739pjp.47.2023.03.01.04.15.56; Wed, 01 Mar 2023 04:16:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229679AbjCAMGO (ORCPT <rfc822;david.simonyants@gmail.com> + 99 others); Wed, 1 Mar 2023 07:06:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjCAMGN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 1 Mar 2023 07:06:13 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5010236FC6 for <linux-kernel@vger.kernel.org>; Wed, 1 Mar 2023 04:06:11 -0800 (PST) Received: from kwepemm600013.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4PRXrH4y9PzKmSX; Wed, 1 Mar 2023 20:01:03 +0800 (CST) Received: from huawei.com (10.175.127.227) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 1 Mar 2023 20:06:01 +0800 From: Zhihao Cheng <chengzhihao1@huawei.com> To: <richard@nod.at>, <s.hauer@pengutronix.de>, <miquel.raynal@bootlin.com> CC: <linux-mtd@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <chengzhihao1@huawei.com> Subject: [PATCH -next 0/2] Rework fix method for memleak in Date: Wed, 1 Mar 2023 20:29:17 +0800 Message-ID: <20230301122919.266818-1-chengzhihao1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600013.china.huawei.com (7.193.23.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759167613540558960?= X-GMAIL-MSGID: =?utf-8?q?1759167613540558960?= |
Series |
Rework fix method for memleak in
|
|
Message
Zhihao Cheng
March 1, 2023, 12:29 p.m. UTC
Patch 1 reverts old solution. Patch 2 provides a new fix method. https://lore.kernel.org/lkml/20230215022507.2363193-1-chengzhihao1@huawei.com/ Zhihao Cheng (2): Revert "ubifs: dirty_cow_znode: Fix memleak in error handling path" ubifs: dirty_cow_znode: Fix memleak when insert_old_idx() failed fs/ubifs/tnc.c | 142 ++++++++++++++++++++++++++++++------------------- 1 file changed, 86 insertions(+), 56 deletions(-)