From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A410E3EA97A for ; Tue, 25 Aug 2026 10:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787652954; cv=none; b=aGbm+YcWXH8zeZ9Swie0ThjFhUs2nAYv6gWmNigrobqlvIi5AKAb2jhE9M5PCQ07LSPd0ojC1HgUCggjhYk/drkZdmeBtwTWM6dIezUeYB7KwSoKkt59nF36vDMe3YQeulV5dYX/KYGCxSebS4LxqCxMM0N9LMVG4eBmwO0GcEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787652954; c=relaxed/simple; bh=dnATR0bbVVB40nh8dsSMs2lzjGdaVJO60vnlQgBchQI=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=bvQ2P2+q6/6DUE3DqcsJ+/4sIawnUcQtYMRi1jNzsFYFKvC08PjO+NPaGzQaNMLeDf8486uXn3T+v0UoLye1873mbyUvOR05xLRF1CL9iv+Jv7NgZTctdY9ELaL8eYcUbqMGfYWZz3MhD0JUc3pancPn5SMvdvuKcXjwqsFFfj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MqdSMcWO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MqdSMcWO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A8511F00A3D for ; Tue, 25 Aug 2026 10:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787652952; bh=zME/Z40TLlGQbKS87O7mkRRv3mO8W0Qfsyv3b0UooQo=; h=From:Date:Subject:To:Cc; b=MqdSMcWO82Se4HJzsW0YIsEkDicsY3aY5efAkXwM/NSD28PJLs2CJeWPCIfDMLpty jOmAnEtBGSaveOJOYebBwRZlTN+tlQ4Hce2sDqIXfoC7qT7Ht0+nINBL7P94ekSwD3 ZPxsw8aYKlhVniaZOlnjHtmqsac4vuojgIT5NI9rUbCLHtA8RWMT9l28n9FGbwc2qN HqdGN+mhO4aFSzBcyztqXyOmHtJxQoPZdgVWrY1dgf3Kk/dT0NS8L3npffDmdaTQYm fiGdiNQJntXuaql4KsibY2/9sMyoau7CJ4T1KpA12ekPwAWe5jMvE4xI7AiHg8+nNi GyNDEKqj4eKRg== Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-c15d3cd51b2so695348266b.3 for ; Tue, 25 Aug 2026 03:15:52 -0700 (PDT) X-Gm-Message-State: AFuF++kfWCUxU0TC4PRj1LDB42qYadT6w4MAkOiEbbkWsmJYrOAeS1gp qNjttlRJht1FCO9x2Mhs++WPbPMwIOZZpSfpRivNPzOX3fhV+8uN1U25ZdUQaWuhKBqly4sTcqe ykGWswuaA/efawszHic5VlyFQqL6v628= X-Received: by 2002:a17:906:9f8e:b0:c12:6d25:2c7a with SMTP id a640c23a62f3a-c2492621d0fmr2619781766b.17.1787652950667; Tue, 25 Aug 2026 03:15:50 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Namjae Jeon Date: Tue, 25 Aug 2026 19:15:37 +0900 X-Gmail-Original-Message-ID: X-Gm-Features: AcwNN1X5RnLee0gHRNElJ2wFnNhNbQqdXOehXJSa8e3K0EEv0GQWk9fr8ScV9fM Message-ID: Subject: [GIT PULL] ntfs update for 7.3-rc1 To: Linus Torvalds Cc: Linux Kernel Mailing List , Hyunchul Lee Content-Type: text/plain; charset="UTF-8" Hi Linus, This is ntfs update pull request for v7.3-rc1. I add a description of this pull request below. Please pull ntfs with following ones. Thanks! The following changes since commit bd5f485f3f026225b86573e559af0b7254ef4184: Merge tag 'soc-arm-7.3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc (2026-08-18 19:50:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/ntfs.git tags/ntfs-for-7.3-rc1 for you to fetch changes up to a7b842f182d126a07838d81be8201d8d953c67c0: ntfs: support resident WOF decompression (2026-08-21 19:09:00 +0900) ---------------------------------------------------------------- This contains 52 commits with improvements to compression support, metadata handling, error propagation, and filesystem robustness. New feature: - Add optional read support for Windows System Compression (WOF). Add CONFIG_NTFS_FS_WOF_COMPRESSION and support reading WOF-compressed files through the NTFS page-read path. This includes parsing REPARSE_TAG_WOF, handling resident and non-resident WOF metadata and compressed chunks, and adding kernel-side XPRESS 4K/8K/16K and LZX 32K decompressors. The codecs use a common transparent compression interface shared with LZNT1. WOF support is read-only and disabled unless explicitly enabled. Other changes: - Harden malformed filesystem handling and error paths. Add bounds and consistency checks for mapping pairs, run lengths, MFT locations, update-sequence offsets, non-resident attributes, compressed attributes, index roots, and bitmap scans. Prevent out-of-bounds accesses in decompression, MFT allocation, and index conversion paths, clean up MFT mappings and attribute search contexts on failure, and propagate attribute and inode initialization errors correctly. - Improve compressed-file I/O path. Fix compressed writes on large-page and highmem systems, reuse compression contexts and output workspaces, avoid unnecessary reads for full-unit overwrites, and submit one bio per compressed write unit. Write replacement data before publishing the new mapping, correctly handle zero-filled compressed blocks, and fix initialized-size and folio state updates after compressed writes. - Synchronize resident reads with MFT record updates. - Validate the final EA stream size before modifying existing data, rewrite the stream safely when replacing entries, restore the previous state when metadata updates fail, and remove the EA attribute pair when the last entry is deleted. - Apply Windows filename restrictions only when windows_names is enabled. - Allow index roots to relocate to extent MFT records when the base record lacks sufficient space. - Move non-resident attribute payload data before shrinking its record. - Correct resident-to-non-resident conversion when compression or sparse flags are enabled. - Prepare file allocation and initialized-size updates before buffered or direct I/O submission, and use pagecache_isize_extended() when extending the file size. - Fix highmem and page/folio access in compressed I/O paths by using the correct local mappings and page helpers. - Apply per-file $LXMOD permissions instead of mount masks when available, and prevent unprivileged writes to reserved $LX* attributes. - Update the NTFS maintainer mailing list. - Four small cleanups. ---------------------------------------------------------------- Alexandro Calo (2): ntfs: Fix min_len for compressed/sparse attributes in ntfs_non_resident_attr_value_is_valid() ntfs: Fix index_root heap OOB write in ntfs_ir_to_ib() Baolin Liu (1): ntfs: do not update ctime when setxattr fails Bryam Vargas (1): ntfs: bound the free-cluster bitmap scan to the volume Dennis Tighe (2): ntfs: fix off-by-one page overflow in ntfs_decompress() ntfs: validate usa_ofs before preserving the update sequence number Dmitry Antipov (1): ntfs: simplify ntfs_reparse_set_native_symlink() Hongling Zeng (3): ntfs: validate non-resident attribute offsets ntfs: verify run length exceeding volume boundary ntfs: fix resource leak in ntfs_new_attr_flags Hyeontae Lee (1): ntfs: serialize resident iomap reads with mrec_lock Hyunchul Lee (13): ntfs: fix resident conversion in ntfs_new_attr_flags ntfs: reject invalid MFT LCNs from boot sector ntfs: reject invalid empty mapping pairs ntfs: introduce transparent compression codec interface ntfs: define LZNT1 codec ops under transparent codec interface ntfs: add WOF compression config option ntfs: return errors from ntfs_attr_readall ntfs: parse REPARSE_TAG_WOF ntfs: return errors from inode initialization ntfs: port lzx/xpress decompressors from ntfs-3g-system-compression ntfs: implement codec ops for LZX and XPRESS ntfs: add non-resident WOF decompression ntfs: support resident WOF decompression Matthew Wilcox (Oracle) (4): ntfs: Inline zero_partial_compressed_page() ntfs: Remove use of __folio_index in handle_bounds_compressed_page() ntfs: Use zero_user_segment() in handle_bounds_compressed_page() ntfs: Remove references to page->__folio_index Mohammad Shahid (3): ntfs: reparse: remove redundant NULL checks before kvfree() ntfs: mft: use kmemdup() instead of kmalloc() and memcpy() ntfs: dir: use kmemdup() instead of kmalloc() and memcpy() Namjae Jeon (20): ntfs: validate final EA attribute size ntfs: remove empty EA attribute pair ntfs: rewrite EA stream before updating metadata ntfs: fix kmap_local_page() usage in compress ntfs: file extension before write submission ntfs: use pagecache_isize_extended() on size extension MAINTAINERS: update mailing list address for ntfs ntfs: propagate compression context allocation errors ntfs: support large pages in compressed writes ntfs: punch all-zero compressed blocks ntfs: write compressed data before replacing old clusters ntfs: fix initialized size and page state after compressed writes ntfs: reuse the compression context during writes ntfs: reuse compression output workspace across write units ntfs: submit one bio per compressed write unit ntfs: skip reads for full compression unit overwrites ntfs: move attribute payload before shrinking its record ntfs: apply Windows name checks only with windows_names ntfs: respect per-file chmod mode over mount masks ntfs: allow index root relocation Pisit Preechapramoth (1): ntfs: reject unprivileged writes to reserved $LX* xattrs MAINTAINERS | 2 +- fs/ntfs/Kconfig | 11 + fs/ntfs/Makefile | 3 + fs/ntfs/aops.c | 19 +- fs/ntfs/attrib.c | 46 ++- fs/ntfs/bdev-io.c | 4 +- fs/ntfs/compress.c | 399 ++++++++++++---------- fs/ntfs/dir.c | 5 +- fs/ntfs/ea.c | 285 ++++++++++++---- fs/ntfs/ea.h | 3 +- fs/ntfs/file.c | 128 +++++-- fs/ntfs/index.c | 98 +++++- fs/ntfs/inode.c | 108 ++++-- fs/ntfs/inode.h | 5 +- fs/ntfs/iomap.c | 66 ++-- fs/ntfs/lcnalloc.c | 7 +- fs/ntfs/lib/decompress_common.c | 200 +++++++++++ fs/ntfs/lib/decompress_common.h | 444 ++++++++++++++++++++++++ fs/ntfs/lib/lib.h | 29 ++ fs/ntfs/lib/lzx_decompress.c | 631 ++++++++++++++++++++++++++++++++++ fs/ntfs/lib/xpress_decompress.c | 154 +++++++++ fs/ntfs/mft.c | 15 +- fs/ntfs/namei.c | 10 +- fs/ntfs/ntfs.h | 4 + fs/ntfs/ntfs_codec.h | 54 +++ fs/ntfs/reparse.c | 209 ++++++++---- fs/ntfs/reparse.h | 2 +- fs/ntfs/runlist.c | 48 +++ fs/ntfs/super.c | 15 +- fs/ntfs/wof.c | 726 ++++++++++++++++++++++++++++++++++++++++ 30 files changed, 3274 insertions(+), 456 deletions(-) create mode 100644 fs/ntfs/lib/decompress_common.c create mode 100644 fs/ntfs/lib/decompress_common.h create mode 100644 fs/ntfs/lib/lib.h create mode 100644 fs/ntfs/lib/lzx_decompress.c create mode 100644 fs/ntfs/lib/xpress_decompress.c create mode 100644 fs/ntfs/ntfs_codec.h create mode 100644 fs/ntfs/wof.c