From patchwork Mon Jan 29 08:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 19574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp422014dyb; Mon, 29 Jan 2024 00:08:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+uGRDOy+LsiSFbm0ElyiGl/ZFiX8lp5AQ5CMxlXa+vjrpSdf40yjRcx4cKV5mQaQkQXDm X-Received: by 2002:a05:6902:2805:b0:dc2:4cf0:e7c6 with SMTP id ed5-20020a056902280500b00dc24cf0e7c6mr2064315ybb.124.1706515700942; Mon, 29 Jan 2024 00:08:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706515700; cv=pass; d=google.com; s=arc-20160816; b=gEDqLcBQnclAWP+u0tPVlnBXEg5gjXz/f7tADOtaUzW/xlXlTFCP6VUn2LEF/InF0Q 8eyL9gHxGe/4+euXV2xf8Lxd7R6tgCekZ4tXAIsB445xi7BkBwQpjYeQkJrq+bQnGxgM RZNM9cLfh4zqKTF2z38gkad9nQ0nCwVnBbynAFNeOdcE5IrBmEKgeOITFHjHuRxivBqj nWZPT1UQmJr6QNPOSPZUSaYd5Lf33AWHq0RIeeXLke35aAPBpEN1Kl2RFPklvljtM+04 2GFWmHWNGlZ6OY90YqCqmZ5UmScYGaGVpg31r1BNPtNehVXyZiziWw0bpRoUmKXXUPgw dzlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=AP8esMiWFK6y2TLvg0O+4ZX9QRrXqEbXMr35AizMWwA=; fh=P7I85FIabZcM8ojWdeG8ABpTZepe/Xtte9jKWDfUHBM=; b=h4ssVkt1ctWw4JmAxQrSw0sNR+ZZ5t2IBOXoRBCUWAtA7MvABBvk62PmVDETp4bhKs LFjuVJ8w2KRg7EJR+7+DFoNfuRGYUd3C2Gg/ZdN0M3UtEzlDVGiL5UKlRutRh0HOvoom 1XBr9Q53g8l/liASSu48r3XMMFcBmMhteCJ3ym7cxaSbwhg4l31ZfkDzbAsjKo3eQGxu SA5moJmY1DYaLZrvs8zcflHZB6ENQHe/UyduhKRpgXn/rp/R5hFBG6Fa1V25VPa5vl4Y PKdMKzKc6AeQjN9pEoGUctX5dQoPmOCjWP9iRmG1CJ07NfmGT6LJmfip4Rwza8OCu0FB 5mBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b="U9WrV/6w"; arc=pass (i=1 spf=pass spfdomain=paragon-software.com dkim=pass dkdomain=paragon-software.com dmarc=pass fromdomain=paragon-software.com); spf=pass (google.com: domain of linux-kernel+bounces-42324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42324-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l26-20020a63701a000000b005b95ee3edc6si5539856pgc.628.2024.01.29.00.08.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 00:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b="U9WrV/6w"; arc=pass (i=1 spf=pass spfdomain=paragon-software.com dkim=pass dkdomain=paragon-software.com dmarc=pass fromdomain=paragon-software.com); spf=pass (google.com: domain of linux-kernel+bounces-42324-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42324-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B7B92B23932 for ; Mon, 29 Jan 2024 08:07:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01EEC537E7; Mon, 29 Jan 2024 08:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b="U9WrV/6w" Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16C8A524CE; Mon, 29 Jan 2024 08:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.157.23.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706515610; cv=none; b=XWTEHel+5cShfottI0CTKzO9b9EGfznHweKzptEM0NObYQrkuemiKMO7EXeb3OsEM5qotsrfCAgk09bESYP88AxPdFr6oJBASeUdeOuq859pfk05WHP7b1rTzG92VJdCowdN7TfS9yE++m/bL2QHuPL+n8c7lcVn3bDZBdBVBWU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706515610; c=relaxed/simple; bh=LF5N/gq0SPzdbSYzaYYrlsY/I6AgKbgcnMri4Rx2UpQ=; h=Message-ID:Date:MIME-Version:To:CC:From:Subject:Content-Type; b=LXqX4f2I61/s6Hjs7qeYFGFpLWZNjExtHlF9bt12AMEzG90s5Mc3Pgqk0drX81QRkGA5w57PNOcd96CpG3Kg4LHnkOSqH012KppOPA3ATz7T9WLJYOorgWgGIFA/3SXuPof5SGYzp//UuMjGSzoaoS8h4ygj1xDKT2XaahbII5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com; spf=pass smtp.mailfrom=paragon-software.com; dkim=pass (1024-bit key) header.d=paragon-software.com header.i=@paragon-software.com header.b=U9WrV/6w; arc=none smtp.client-ip=35.157.23.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=paragon-software.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paragon-software.com 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 E3BC8211A; Mon, 29 Jan 2024 07:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1706515190; bh=AP8esMiWFK6y2TLvg0O+4ZX9QRrXqEbXMr35AizMWwA=; h=Date:To:CC:From:Subject; b=U9WrV/6wCHC/1OVDyPHBpiWeRFKRKLDhTSDpbbY9zQBc0dYL1QPkrczSRQMJti/ee ulVjD4mD5DKCMgULCyEHIFD2rIPs5XcqQFsbVgKjHZEv1dKNz4r2MpuojJBOcJJggX fzi04Agf/C8bGTx2BC5GpOBSROcULYk27dlxMkHE= Received: from [192.168.211.199] (192.168.211.199) 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, 29 Jan 2024 11:06:39 +0300 Message-ID: Date: Mon, 29 Jan 2024 11:06:39 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: CC: , From: Konstantin Komarov Subject: [PATCH 0/5] fs/ntfs3: Bugfix X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789411407678251269 X-GMAIL-MSGID: 1789411407678251269 This series contains various fixes for ntfs3. Konstantin Komarov (5):   fs/ntfs3: Prevent generic message "attempt to access beyond end of     device"   fs/ntfs3: Use i_size_read and i_size_write   fs/ntfs3: Correct function is_rst_area_valid   fs/ntfs3: Fixed overflow check in mi_enum_attr()   fs/ntfs3: Update inode->i_size after success write into compressed     file  fs/ntfs3/attrib.c  |  4 ++--  fs/ntfs3/dir.c     |  2 +-  fs/ntfs3/file.c    | 13 ++++++++-----  fs/ntfs3/frecord.c | 10 +++++-----  fs/ntfs3/fslog.c   | 14 ++++++++------  fs/ntfs3/fsntfs.c  | 24 ++++++++++++++++++++++++  fs/ntfs3/index.c   |  8 ++++----  fs/ntfs3/inode.c   |  2 +-  fs/ntfs3/ntfs_fs.h | 14 +-------------  fs/ntfs3/record.c  |  2 +-  10 files changed, 55 insertions(+), 38 deletions(-)