From patchwork Mon Jul 3 07:23:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 11537 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp354088vqx; Mon, 3 Jul 2023 00:56:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlHaIWDKGCAt4yM6Ys7RuFr/a7XxqSmxIk6D18YQnGgBcWrQNIDPTwiI0RORbBuZadjIghBn X-Received: by 2002:a17:90b:30d7:b0:25c:1ad3:a4a1 with SMTP id hi23-20020a17090b30d700b0025c1ad3a4a1mr11026718pjb.1.1688371007661; Mon, 03 Jul 2023 00:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688371007; cv=none; d=google.com; s=arc-20160816; b=SX+KpRZCzrtvc8vaszGLZ8tqO0tplibn6hY51/thankBeHgy2YC3rkN1lFcLGn7PQo NAtgmEZD8vyX3I4v552Typ377eqSkkMLjzsPdpyPW3NmBthghExL6TxgOtFXbcAkLldx v9I+USay1+ufG0DpArvfDs7DCtWx8xyP6385wOOWEr6RbjVK9kpG05JpmVy2ryQivDtY TDKImoH+DTdCeBZ3+vmRNG3vgLkQQg2+NABEBNoXz49D4ErL15U77YU35SJooK/F7y1s X9jVsp3UT5z8bDNJWurR6bjeqN2E1EnD7lN52S14naRedC+vlFXDSD6CrDAzoKRon41S ud+w== 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; bh=HHUtUvM6SCtPbZbJJ4cYknHmlAly3H+bxbxkIjZVMeU=; fh=+YFVdCJq57+piIgB3kUO3LUIuYykw/jnC0zhAUs0Z14=; b=T91OaVnGqmvWrPMxpngjdYbeSmc8zPBHgX/YMqPxIBvh0h08A1/fnxgYvkSiqk4m78 L1cF6AUrieGUbb5Xt3qbKj6q2xecYs/5+nfA9y8qrBeCkwUzhsp9bnoqByyp3hMKcmdC YICd2flM2o8bZzPyvfbX/+3WPb+A9fOB7SnJH8Y7eQOUmDyd29OXyZKMdf4GXxP6o+VU 9fWEyoy896oAkhwIBzhuCAfFlni3GxCZgRhw4rcabxBCnrew+KCjlSyGYjCLz8cfb/jw YvQ13bFPpjqmladM6LR/nAjKsF1DRFjlp0t/Tjp5JfG3wKA6BpdVW9kNx+0aLjAeVz5J QEpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=D1NMkafK; 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 j23-20020a63cf17000000b00551a32c698dsi17550692pgg.837.2023.07.03.00.56.35; Mon, 03 Jul 2023 00:56:47 -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=D1NMkafK; 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 S230394AbjGCHcp (ORCPT + 99 others); Mon, 3 Jul 2023 03:32:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjGCHcl (ORCPT ); Mon, 3 Jul 2023 03:32: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 9E8E293; Mon, 3 Jul 2023 00:32:40 -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 647091D2D; Mon, 3 Jul 2023 07:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1688368719; bh=HHUtUvM6SCtPbZbJJ4cYknHmlAly3H+bxbxkIjZVMeU=; h=Date:To:CC:From:Subject; b=D1NMkafKJO0+0BKc+Yr+Sz4F/W6Ja8Bod3UgOsOZB11yQrVat8uX5uOv+/YIcT2gn DgN4aX4ra0yl9NiactnalpSQ6HjgQJwWhP4EZGB0CEgg1h+mN2zA5R3QjaywDccpGS Q3YG1dETZ82MCLK0QsKjBqVUrxaxNnjYbm4mBEig= Received: from [192.168.211.138] (192.168.211.138) 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; Mon, 3 Jul 2023 10:23:50 +0300 Message-ID: Date: Mon, 3 Jul 2023 11:23:49 +0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: CC: Linux Kernel Mailing List , From: Konstantin Komarov Subject: [PATCH 0/8] fs/ntfs3: Bugfix and refactoring X-Originating-IP: [192.168.211.138] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) 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 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?1770385317903533582?= X-GMAIL-MSGID: =?utf-8?q?1770385317903533582?= This series contains various fixes and refactoring for ntfs3. Added more checks in record. Konstantin Komarov (8):   fs/ntfs3: Add ckeck in ni_update_parent()   fs/ntfs3: Write immediately updated ntfs state   fs/ntfs3: Minor code refactoring and formatting   fs/ntfs3: Don't allow to change label if volume is read-only   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/attrlist.c | 15 +++++++--  fs/ntfs3/bitmap.c   |  3 +-  fs/ntfs3/frecord.c  |  6 ++++  fs/ntfs3/fsntfs.c   | 19 +++++-------  fs/ntfs3/namei.c    |  2 +-  fs/ntfs3/ntfs.h     |  2 +-  fs/ntfs3/ntfs_fs.h  |  2 ++  fs/ntfs3/record.c   | 74 +++++++++++++++++++++++++++++++++++----------  fs/ntfs3/super.c    | 38 +++++++++++++++++------  fs/ntfs3/xattr.c    |  3 +-  10 files changed, 121 insertions(+), 43 deletions(-)