Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp496355ybg; Mon, 1 Jun 2020 06:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyXz1BcmT4xHAUa2XPbhiu8UHC9ZAvhpAtVK27lPBnVNMCgwydqzQ57bXIA41WMDs2Kk27 X-Received: by 2002:a17:906:e298:: with SMTP id gg24mr3376784ejb.120.1591019849351; Mon, 01 Jun 2020 06:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591019849; cv=none; d=google.com; s=arc-20160816; b=Y6AEW49Z6xOZTXXAy1iigxv9HFECEzO1268smxYa0T62ZVxK01R2dRtfPDDTq0hi/c eYUJ9hPWPAvGpvUPzeLKNzEovhOQHv8Vj2dgb5XTGyFpLEKaCQowG9Pjr6KExCYOVe13 fGm7+GvfJ3p8qgq+HosVzN2Tz1KxTOvl3HFhtl8epXxxcahLWrCPKX3PTbXqkMp+OsU1 u9NbHf97Mh3cT1AyFqRGTmn9aJWIeIUG7slQndMF8PwaBx4rN6ilMjmwBNb77CQl6hgT Sl2XEJkPtXVdOGcIJtSdKP6exwp8HvT1qQ/lIVv9PvjQg7eE5Vpnc1ev/ExFsd1QViW4 /dYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=MTId0Os/yg4rhbm+EeuQBxt1UqEtEawNrCHYfpmyKkg=; b=svGAGlyv7X1e/9G6/Uqy/iHuNc5IxI7bl671vs30lXk3f9DTVtMVVwiO+/fpVD2VNr KSDETSygMtwM3OVdH2nfgc8E8qRLpjRXbL99h8j1CmAbEJtmGIkskEJZlIdZrJ3uGoz2 yX2ZSlhU+3nI3+7A4LGm+EmoOCLA3RV4/5/X0NMp28TZBWwD3OaHCwVY30V4LBb1SeeB XpE/xVDyKM0yfmN1RE1NmthaGet3hUy49wsKcctSRamm+tE63Kygr/MW+hAlNVSbTKBZ b+9PocKUZsJhUssODVh/O1xvZSyrFsdflJ42mClahHczUWQzmxVecbCGJrdkb/awkf4a N64g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kPpnXooY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x19si5920161edr.165.2020.06.01.06.57.06; Mon, 01 Jun 2020 06:57:29 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=kPpnXooY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726201AbgFANzX (ORCPT + 99 others); Mon, 1 Jun 2020 09:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgFANzX (ORCPT ); Mon, 1 Jun 2020 09:55:23 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05CCFC05BD43; Mon, 1 Jun 2020 06:55:23 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id c185so9057087qke.7; Mon, 01 Jun 2020 06:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=MTId0Os/yg4rhbm+EeuQBxt1UqEtEawNrCHYfpmyKkg=; b=kPpnXooYOT5d3nyDjaUTERRVJecKZ9IDmbZOQM+PJDrfGewsccmuewYh7EAISztcx/ zOvbNr05Jr9ns5O7gh+Fmrdt6npj/dKdHjgFu2f1X3Gx7QSHCEI7XDGjsVK6Bk7g+vML uoR7TQ3xsf+TU1vXcE9oO7gcRsh+b6/fqxfzjgeszbmBybw0TPP0DUZ3WYypaBtXG+7u SyHJO6WW9Esr6mB/xzNfU3qXPqhCp6MR96r6RyhmPezDsAL2r+Fwz0VeKH7aZnP5Ql35 u3T2gi9WgcT6f/6uF9g+gWMBx9+LPFZsTqmTd4uKSrixbLQpn34N1wJ5z/GK8b9lqAa+ XrVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=MTId0Os/yg4rhbm+EeuQBxt1UqEtEawNrCHYfpmyKkg=; b=hAiIwOJZ62Off1VSL4XHqt3QhAA8aHpBMJf0NtgSSXou2yHtGxgQhiYu8cAyfh0lDo OVSUQr7IbR4Fj74MTLTwJhGax+XAEjj0GCPb/OM6DZ+z0AnWb3QHF5dK+kP7dcohUvvg Zau/z6z0E7dlSHMXYLEj3JpXEguYCs/TIXNn++kisk7eJ+BD481lcEsdD045JNHBFsIs AP5j+Qizgk0wi7SRIHI1lBpA7oaG8vfognL2wGRppf0HJ10BGu+HSJe4D7rP4ciIEOLF Nw8ZJl+05yEJmEyhhSDUigCKsS6nBMTfgIRPqe+7Zg0UD67t+NP2pE33fLS7Z7ENJiog lP0A== X-Gm-Message-State: AOAM533VCPFGLSbYmLBMrUt5B3VhIWKalrGnNyRvAxyYStXfCXA5fOiL wvARtz3MId0ja1Z8ChGCU+Cq3Btfh1objQk+BWfCSPhC X-Received: by 2002:a37:a847:: with SMTP id r68mr21084003qke.45.1591019722322; Mon, 01 Jun 2020 06:55:22 -0700 (PDT) MIME-Version: 1.0 References: <2bec05b7-78d3-fa36-134a-efbe977933e3@web.de> <45e2cd69-93ec-a0b9-b2a6-d170eee44055@huawei.com> In-Reply-To: <45e2cd69-93ec-a0b9-b2a6-d170eee44055@huawei.com> From: Richard Weinberger Date: Mon, 1 Jun 2020 15:55:10 +0200 Message-ID: Subject: Re: [PATCH 1/2] ubifs: Fix potential memory leaks while iterating entries To: Zhihao Cheng Cc: Markus Elfring , linux-mtd@lists.infradead.org, Richard Weinberger , kernel-janitors@vger.kernel.org, LKML , Yi Zhang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 1, 2020 at 3:46 PM Zhihao Cheng wrote= : > > =E5=9C=A8 2020/6/1 20:00, Markus Elfring =E5=86=99=E9=81=93: > >> Fix some potential memory leaks in error handling branches while > >> iterating xattr entries. > > Such information is useful. > > > > > >> For example, function ubifs_tnc_remove_ino() > >> forgets to free pxent if it exists. Similar problems also exist in > >> ubifs_purge_xattrs(), ubifs_add_orphan() and ubifs_jnl_write_inode(). > > Can an other wording variant be a bit nicer? > Thanks for reminding, I will improve this description. The description is fine. No need to resend. Patch will be queued after the merge window. Thanks for fixing these issues! --=20 Thanks, //richard