From patchwork Thu Oct 19 06:37:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 155329 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp195810vqb; Wed, 18 Oct 2023 23:38:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0gin5d1P6Gh/+97Ow0htHn6XpXFdgjtByZ5qDoefPdhmg2gDNmvF7/NRBl6ec0fPLHdSs X-Received: by 2002:a05:6a20:1604:b0:140:61f8:53f6 with SMTP id l4-20020a056a20160400b0014061f853f6mr1356839pzj.29.1697697502043; Wed, 18 Oct 2023 23:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697697502; cv=none; d=google.com; s=arc-20160816; b=WlCBbGkNfR4LGNcj1P8p6Les8X+s73NiXUCCWmkFR9hQn4e6ySXmykPdPg+R6ov8JK PMS1Gw6mnoXGj1M7YLrX82iJLQm/eJ4R7eqWLQaKaW01PRYsfkElH6qAOXYEI+SQ4ZQE TcpNXhUiRVd1h7yMhHoe99arPLDC5V/xVy6T5Ck5aSx4E3CqttymN30QA7Kz8OBouM3H XxoOXiM5d4Y8pclZ3HjTeDiGCoGdsthWc8v23NHoGW8KS/qJjCoyAXB9JMi/rs1GukNv yIUGQEcI4+3jQQcUpG9ymhmEjV/8gFzPNGcb48NhRv9/Ccfha2PaIFDisAwyERS4P9HD vlyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature:dkim-signature; bh=+tR/SuZ12C+bYNNqeuZZw4rfTtUeq8KRTtUUgfqHkLs=; fh=0m/vUEml8fOhUGOe3RkjSZ4JSZ9+h9dPF0uAnIe3Q60=; b=ZYzbGUP9NsNFLjkUZ2RZwsZImy2J0GnPmsMy4p9uTZrWjEtH0rMcTZ+C8KWclBFPQq X4vrRnrKEk2lQcCJHy6uYv3d4E6i5TA00zvnFOBMnSLd9AZrlHurXYtpDTVl65DkSljv A4W3647+SoUwRP5r32QFxvDHElTsrdw8kDmqcnJO/fZR0Nrl5k3ltVjXIRKnp9yHgmnT e80QBGgyVk0sVZrQu6EE18JC03KMCxLibn1V3Z1GSBXWhrfPOKbaxtowNVhCVykenNoK AsPxV2Az1/zxUesKTVxtPr+GB1chXzeCxS+Rd/CO0fz/wKI44EMWp15IQoC875RtMhDM uofA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=NedFf5gf; dkim=pass header.i=@paragon-software.com header.s=mail header.b=WUhCjrIu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id a70-20020a639049000000b00577475ee5f6si3809434pge.618.2023.10.18.23.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=NedFf5gf; dkim=pass header.i=@paragon-software.com header.s=mail header.b=WUhCjrIu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 854B9825A0C2; Wed, 18 Oct 2023 23:38:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232740AbjJSGhm (ORCPT + 24 others); Thu, 19 Oct 2023 02:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbjJSGhl (ORCPT ); Thu, 19 Oct 2023 02:37:41 -0400 Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24A9122; Wed, 18 Oct 2023 23:37:38 -0700 (PDT) Received: from relayfre-01.paragon-software.com (unknown [172.30.72.12]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 84E0D1D37; Thu, 19 Oct 2023 06:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1697697095; bh=+tR/SuZ12C+bYNNqeuZZw4rfTtUeq8KRTtUUgfqHkLs=; h=Date:To:CC:From:Subject; b=NedFf5gfh5tADmdDx5q86t6uEtubFn1wv2MeXjZx0+0yVTst4PvpV7UcjcBgrWvnr nEfQLilrW+VEiMJMfep48oPMi0Cf3spHQAV+J1jFSu3MuQnw5bOM/ntydf/szP2k7n V4XKnyoPdNcaOC0j70rk/lTnPP9/e0LCXWCGGw+c= Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 775971D0F; Thu, 19 Oct 2023 06:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1697697456; bh=+tR/SuZ12C+bYNNqeuZZw4rfTtUeq8KRTtUUgfqHkLs=; h=Date:To:CC:From:Subject; b=WUhCjrIuj9DWkUf07Y5v2FiNF+TvDI3o0/uSXL9Ll199ygCc/zw5rcBVgCHzjJo5V G08crjljCF8UbWRvbEydVcFvFp6ma8zpZ+LRh9dRx4uqDtHOdMcBtbYWFVMF+q1NOW Sz3PWmXq/OVhCp4PPzImCH0i/j+ks+hlKuYxm/SQ= Received: from [172.16.192.129] (192.168.211.127) 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; Thu, 19 Oct 2023 09:37:35 +0300 Message-ID: Date: Thu, 19 Oct 2023 09:37:33 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: CC: , , From: Konstantin Komarovc Subject: [GIT PULL] ntfs3: bugfixes for 6.6 X-Originating-IP: [192.168.211.127] 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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 23:38:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780164855711747318 X-GMAIL-MSGID: 1780164855711747318 Hi Linus, Please pull this branch containing ntfs3 code for 6.6. Fixed: - memory leak; - some logic errors, NULL dereferences; - some code was refactored. Added: - more checks. All changed code was in linux-next branch for several weeks. Regards, Konstantin ---------------------------------------------------------------- The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d:    Linux 6.6-rc1 (Sun Sep 10 16:28:41 2023 -0700) are available in the Git repository at:    https://github.com/Paragon-Software-Group/linux-ntfs3.git ntfs3_for_6.6 for you to fetch changes up to e4494770a5cad3c9d1d2a65ed15d07656c0d9b82:    fs/ntfs3: Avoid possible memory leak (Mon Sep 25 12:48:07 2023 +0800) ---------------------------------------------------------------- Gabriel Marcano (1):   fs/ntfs3: Fix directory element type detection Konstantin Komarov (14):   fs/ntfs3: Add ckeck in ni_update_parent()   fs/ntfs3: Write immediately updated ntfs state   fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN)   fs/ntfs3: Add more attributes checks in mi_enum_attr()   fs/ntfs3: fix deadlock in mark_as_free_ex   fs/ntfs3: Fix shift-out-of-bounds in ntfs_fill_super   fs/ntfs3: Use inode_set_ctime_to_ts instead of inode_set_ctime   fs/ntfs3: Allow repeated call to ntfs3_put_sbi   fs/ntfs3: Fix alternative boot searching   fs/ntfs3: Refactoring and comments   fs/ntfs3: Add more info into /proc/fs/ntfs3//volinfo   fs/ntfs3: Do not allow to change label if volume is read-only   fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr()   fs/ntfs3: Fix NULL pointer dereference on error in     attr_allocate_frame() Pavel Skripkin (1):   fs/ntfs3: Fix OOB read in ntfs_init_from_boot Su Hui (1):   fs/ntfs3: Avoid possible memory leak Zeng Heng (1):   fs/ntfs3: fix panic about slab-out-of-bounds caused by ntfs_list_ea() Ziqi Zhao (1):   fs/ntfs3: Fix possible null-pointer dereference in hdr_find_e()  fs/ntfs3/attrib.c   |  12 +++--  fs/ntfs3/attrlist.c |  15 ++++++-  fs/ntfs3/bitmap.c   |   4 +-  fs/ntfs3/dir.c      |   6 ++-  fs/ntfs3/file.c     |   4 +-  fs/ntfs3/frecord.c  |   8 +++-  fs/ntfs3/fslog.c    |   6 ++-  fs/ntfs3/fsntfs.c   |  19 ++++----  fs/ntfs3/index.c    |   3 ++  fs/ntfs3/inode.c    |   5 ++-  fs/ntfs3/namei.c    |   6 +--  fs/ntfs3/ntfs.h     |   2 +-  fs/ntfs3/ntfs_fs.h  |   4 +-  fs/ntfs3/record.c   |  74 ++++++++++++++++++++++++-------  fs/ntfs3/super.c    | 104 +++++++++++++++++++++++++++++++-------------  fs/ntfs3/xattr.c    |   7 ++-  16 files changed, 197 insertions(+), 82 deletions(-)