From patchwork Thu Dec 8 02:32:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ye Bin X-Patchwork-Id: 2751 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp516351wrr; Wed, 7 Dec 2022 18:13:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5r7PHD02NQkhLErU7jUvhXe+jGHyhXAoZk7ymTVZMuvNPzYUzK+I1ZeG9Bd8OXOyDH8up4 X-Received: by 2002:a05:6a00:1625:b0:576:48b4:2b06 with SMTP id e5-20020a056a00162500b0057648b42b06mr28856142pfc.30.1670465638900; Wed, 07 Dec 2022 18:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670465638; cv=none; d=google.com; s=arc-20160816; b=Q4IFmVXJdKd54T6Ou2SL48CCtzx7QRKeMzaTU1BjwanYKn0ctjimFnaOOS234jbiYs 1A4q5HyhAFkj9eM4ZYYg4+xwbtR67C45ScXO6gSMObNS0NilD0w/FgblP1YiIlWflGxF alCM7zTMuq8uPRqHa+g2fODvPCU1XDksQtlidD9cH4mZqkCxOc1CkvXIe02L3gq5Fyr0 dEZpRCilsgYhECwCa/6TrP+tjSSXh2BN+n9nOBdlQmeSUsKAL/LKFeQglM+0WggNAjMs RoRBSMI/FrcqQiWU7/jx/Or9dhD+vg2JReWlbxAJHlAy6Crm2L9kHqVUb8xtb7+7F7vJ 3saw== 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=END7rs831wGHqmI+G3zg8iw0LYg4ckQk5tjAzcbYuQw=; b=dEYIi1d6QbWqg3BZcbbvodAgJsNZ67YNwj7yvP/5y2WX5hVydsomrPUgDJaq/qMW1S DaRKKB10sE50SRMuiZDE1LG7dqesMUmZAHKwrRE3986jRiA8kjcYTPOBt++IzxxBkytU H67FjPsr7VqLnVXvPC+scEn8MPpU8Ou0qfwLhaevbSyampNrwjWUEVoNyemtJPHzpBp8 Grd4GToRwyot1+4PTuMZx1edp+aGQ2w13RFcHwr+XG3Lp56Kt5xvU3Vfab702cSd0zbv oZ5edcALPWmmRnAikvNE53RoD5/TEKmuhLOdnuBnLly1ccP5mWyQkkcI+eMjzf+KHmYe UZuA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a056a000b4400b005752121f13dsi24177068pfo.113.2022.12.07.18.13.45; Wed, 07 Dec 2022 18:13:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiLHCLw (ORCPT + 99 others); Wed, 7 Dec 2022 21:11:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiLHCLp (ORCPT ); Wed, 7 Dec 2022 21:11:45 -0500 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B27792A2C; Wed, 7 Dec 2022 18:11:43 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4NSHhT5lBXz4f3jYv; Thu, 8 Dec 2022 10:11:37 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.127.227]) by APP4 (Coremail) with SMTP id gCh0CgB3m9jbR5Fjj5BiBw--.22193S4; Thu, 08 Dec 2022 10:11:40 +0800 (CST) From: Ye Bin To: tytso@mit.edu, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org Cc: linux-kernel@vger.kernel.org, jack@suse.cz, Ye Bin Subject: [PATCH v3 0/4] Fix two issue about ext4 extended attribute Date: Thu, 8 Dec 2022 10:32:29 +0800 Message-Id: <20221208023233.1231330-1-yebin@huaweicloud.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: gCh0CgB3m9jbR5Fjj5BiBw--.22193S4 X-Coremail-Antispam: 1UD129KBjvdXoWrZFy3ZFy7XFWkAF4fGw4UArb_yoWfuwc_GF y8ta95Jr4jqa48Wa9FyF10yFyrKF48Gr1rZF1kCFsrZry7ZFWDZFWkJrWxur1UuF4jy3Z8 ZF17trWfAF92gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbokYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I 0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Y z7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zV AF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4l IxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s 0DMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsG vfC2KfnxnUUI43ZEXa7IU1zuWJUUUUU== X-CM-SenderInfo: p1hex046kxt4xhlfz01xgou0bp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751610177698615462?= X-GMAIL-MSGID: =?utf-8?q?1751610177698615462?= From: Ye Bin Diff v3 vs v2: 1. Remove patch [2-3]. 2. Modify change log according to Bagas Sanjaya's suggestions. Diff v2 vs v1: 1.Modify commit message about "ext4: fix WARNING in ext4_expand_extra_isize_ea" 2.Modify the indentation of arguments about "ext4: rename xattr_find_entry() and __xattr_check_inode()" This patchset fix two issues: 1. Patch [1]-[4] fix WARNING in ext4_expand_extra_isize_ea. 2. Patch [6] fix inode leak in 'ext4_xattr_inode_create()'. 3. Patch [5] is cleanup. Ye Bin (4): ext4: fix WARNING in ext4_expand_extra_isize_ea ext4: allocate extended attribute value in vmalloc area ext4: rename xattr_find_entry() and __xattr_check_inode() ext4: fix inode leak in 'ext4_xattr_inode_create()' fs/ext4/xattr.c | 42 +++++++++++++++++++++++------------------- fs/ext4/xattr.h | 11 +++-------- 2 files changed, 26 insertions(+), 27 deletions(-)