From patchwork Fri Apr 28 07:30:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 88509 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp773768vqo; Fri, 28 Apr 2023 01:14:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5YIDTkBjNHZpAQ+fC02zwigPVye+0hkGv2w3/Ri+awT4F8SXRvrUXy3YL4OF8YG9M3101l X-Received: by 2002:a05:6a00:1802:b0:637:920c:25fd with SMTP id y2-20020a056a00180200b00637920c25fdmr8005818pfa.17.1682669649406; Fri, 28 Apr 2023 01:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682669649; cv=none; d=google.com; s=arc-20160816; b=D9mBG3Yw6MCD6YjKIGT/Tz+Ns3qR0I1Teg0n6zcu9emoD0sZ4JNTaXR51O1uHHgIxL CsC3d9XM2922nZ+8SZin5sIZJK46FupiFU5/IOXyxdEvyCOUjIbSaJNJikLn8L25Eh35 D+KfTydAZ/SIWmuUy/VMl5w6znLjDCKdcyqgdJsi6m5WLTi+7oCKyJ+11x9j+KkiFjvW 5zWB49u2D7e4eDu16cXgjBAwS0xS6x9It1GZ6333qh2kCNz8O3j/w7Gh3f2RS1um8Vjp crHfVKfoKf//dlJcxorCnxUHCotpTuPTAmU4DqhvXKMmiDMd391nNWwABbWARMF7ub8x 45iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language:cc:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature; bh=KDYaVo5PyVLtkC6s1yjYte0w6cjpa9PrJoFAS7zuJbA=; b=nYpVyEpdK0vDPJ2YoMritgV5m6AyRsuq9Q4vrWlXLANE+IktjDPGCnuiqRCX6M2ZGI GLPGpJ5lQK3At5cfZHNuUmVluKw67VrlBC3ygGzWjIaZvCBw2g0liX82YQBj1sKGW/Fg GrR6w6NuO7K/rKa0clS4vdKL3rg8qiTdRMFCaWJDAr8YvN5aj157nmJOMdF75muL6dLS VmJU9ylt8ABen7ljYNQcjmFNuACmGfmBnAU4X4KEQDf96MdVRRv6LWjnKZOuUNTxkJDq JGA7tPWwYQlyLozge/bj014cY2NNdGqkB/Oe9tx7vnrT3Y2bmgm2DwXZpNygYWdSDngL 3zcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=fzeccGUf; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056a00000400b0063b8685bab4si20983011pfk.113.2023.04.28.01.13.56; Fri, 28 Apr 2023 01:14:09 -0700 (PDT) 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; dkim=pass header.i=@paragon-software.com header.s=mail header.b=fzeccGUf; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345539AbjD1HhV (ORCPT + 99 others); Fri, 28 Apr 2023 03:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345451AbjD1HhT (ORCPT ); Fri, 28 Apr 2023 03:37:19 -0400 X-Greylist: delayed 415 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Apr 2023 00:37:00 PDT Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1268940FE; Fri, 28 Apr 2023 00:36:59 -0700 (PDT) Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 5EA9B2181; Fri, 28 Apr 2023 07:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1682666720; bh=KDYaVo5PyVLtkC6s1yjYte0w6cjpa9PrJoFAS7zuJbA=; h=Date:From:Subject:To:CC; b=fzeccGUfIw4aI/FHAMCPI6PUHbs0tFSv4oyZ788jZu1KeSTToBTmDF2Kpv2gKNOJm 9AUAna3Eq1OTWsplnkyU1S+2xfP46C6cdwEIHkZk0a5CVbgkIqECHFmCXCgFSMhpqP yP7lgCuVrfASElnhDfRN2P0TcQaTTgk0rVDYtT3Q= Received: from [192.168.211.149] (192.168.211.149) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 28 Apr 2023 10:30:02 +0300 Message-ID: Date: Fri, 28 Apr 2023 11:30:01 +0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 From: Konstantin Komarov Subject: [GIT PULL] ntfs3: bugfixes for 6.4 To: CC: , , Linux Kernel Mailing List Content-Language: en-US X-Originating-IP: [192.168.211.149] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1764407010174274262?= X-GMAIL-MSGID: =?utf-8?q?1764407010174274262?= Hi Linus, Please pull this branch containing ntfs3 code for 6.4. Added: - add missed "nocase" in ntfs_show_options; - extend information on fails\errors; - small optimizations. Fixed: - some logic errors; - some dead code was removed; - code is refactored and   reformatted according to the new version of clang-format. Removed: - noacsrules option. Currently, this option does not work properly.   Its use leads to unstable results. If we figure out how to implement it   without errors, we will add it later; - writepage. Regards, Konstantin ---------------------------------------------------------------- The following changes since commit 197b6b60ae7bc51dd0814953c562833143b292aa:    Linux 6.3-rc4 (Sun Mar 26 14:40:20 2023 -0700) are available in the Git repository at: https://github.com/Paragon-Software-Group/linux-ntfs3.git ntfs3_for_6.4 for you to fetch changes up to 788ee1605c2e9feed39c3a749fb3e47c6e15c1b9:    fs/ntfs3: Fix root inode checking (Mon Feb 20 09:39:35 2023 +0400) ---------------------------------------------------------------- Abdun Nihaal (1):   fs/ntfs3: Fix NULL dereference in ni_write_inode Chen Zhongjin (1):   fs/ntfs3: Fix memory leak if ntfs_read_mft failed Daniel Pinto (1):   fs/ntfs3: Fix wrong cast in xattr.c Edward Lo (3):   fs/ntfs3: Enhance the attribute size check   fs/ntfs3: Validate MFT flags before replaying logs   fs/ntfs3: Add length check in indx_get_root Jia-Ju Bai (1):   fs/ntfs3: Fix a possible null-pointer dereference in ni_clear() Jiasheng Jiang (1):   fs/ntfs3: Add check for kmemdup Konstantin Komarov (17):   fs/ntfs3: Add null pointer checks   fs/ntfs3: Improved checking of attribute's name length   fs/ntfs3: Check for extremely large size of $AttrDef   fs/ntfs3: Restore overflow checking for attr size in mi_enum_attr   fs/ntfs3: Refactoring of various minor issues   fs/ntfs3: Use bh_read to simplify code   fs/ntfs3: Remove noacsrules   fs/ntfs3: Fix ntfs_create_inode()   fs/ntfs3: Optimization in ntfs_set_state()   fs/ntfs3: Undo endian changes   fs/ntfs3: Undo critial modificatins to keep directory consistency   fs/ntfs3: Remove field sbi->used.bitmap.set_tail   fs/ntfs3: Changed ntfs_get_acl() to use dentry   fs/ntfs3: Code formatting and refactoring   fs/ntfs3: Add missed "nocase" in ntfs_show_options   fs/ntfs3: Print details about mount fails   fs/ntfs3: Fix root inode checking Ye Bin (1):   fs/ntfs3: Fix NULL pointer dereference in 'ni_write_inode' Yu Zhe (1):   fs/ntfs3: fix spelling mistake "attibute" -> "attribute" Zeng Heng (1):   fs/ntfs3: Fix slab-out-of-bounds read in hdr_delete_de() ZhangPeng (2):   fs/ntfs3: Fix null-ptr-deref on inode->i_op in ntfs_lookup()   fs/ntfs3: Fix OOB read in indx_insert_into_buffer  Documentation/filesystems/ntfs3.rst |  11 -  fs/ntfs3/attrib.c                   |  17 +-  fs/ntfs3/bitmap.c                   |  25 +--  fs/ntfs3/file.c                     |  50 ++---  fs/ntfs3/frecord.c                  |  46 ++--  fs/ntfs3/fslog.c                    |  83 ++++----  fs/ntfs3/fsntfs.c                   |  84 ++++----  fs/ntfs3/index.c                    |  81 +++++---  fs/ntfs3/inode.c                    | 134 ++++++------  fs/ntfs3/lznt.c                     |  10 +-  fs/ntfs3/namei.c                    |  19 +-  fs/ntfs3/ntfs.h                     |   3 -  fs/ntfs3/ntfs_fs.h                  |  19 +-  fs/ntfs3/record.c                   |  15 +-  fs/ntfs3/run.c                      |   6 +-  fs/ntfs3/super.c                    | 312 ++++++++++++++++------------  fs/ntfs3/xattr.c                    |  70 +++----  17 files changed, 528 insertions(+), 457 deletions(-)