linux/fs/ntfs3
Konstantin Komarov 1c0e2617b5 fs/ntfs3: fix mount failure for sparse runs in run_unpack()
commit 801f614ba2 upstream.

Some NTFS volumes failed to mount because sparse data runs were not
handled correctly during runlist unpacking. The code performed arithmetic
on the special SPARSE_LCN64 marker, leading to invalid LCN values and
mount errors.

Add an explicit check for the case described above, marking the run as
sparse without applying arithmetic.

Fixes: 736fc7bf5f ("fs: ntfs3: Fix integer overflow in run_unpack()")
Cc: stable@vger.kernel.org
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-19 13:09:49 +01:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Missed NI_FLAG_UPDATE_PARENT setting 2024-08-19 05:45:08 +02:00
attrlist.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-10-17 15:10:34 +02:00
bitfunc.c fs/ntfs3: Remove a useless shadowing variable 2021-09-23 19:05:46 +03:00
bitmap.c fs/ntfs3: Fix a resource leak bug in wnd_extend() 2025-10-19 16:21:45 +02:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Add sanity check for file name 2025-08-28 16:24:17 +02:00
file.c Revert "fs/ntfs3: Replace inode_trylock with inode_lock" 2025-08-28 16:24:05 +02:00
frecord.c fs/ntfs3: Prevent memory leaks in add sub record 2026-01-19 13:09:31 +01:00
fslog.c fs/ntfs3: Refactor enum_rstbl to suppress static checker 2024-10-17 15:11:49 +02:00
fsntfs.c fs/ntfs3: Add new argument is_mft to ntfs_mark_rec_free 2026-01-19 13:09:30 +01:00
index.c fs/ntfs3: handle hdr_first_de() return value 2025-06-27 11:05:11 +01:00
inode.c fs/ntfs3: Add new argument is_mft to ntfs_mark_rec_free 2026-01-19 13:09:30 +01:00
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Check if more than chunk-size bytes are written 2024-11-08 16:25:53 +01:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Remove unused mi_mark_free 2026-01-19 13:09:30 +01:00
ntfs.h fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-08-19 05:45:09 +02:00
ntfs_fs.h fs/ntfs3: Support timestamps prior to epoch 2026-01-19 13:09:42 +01:00
record.c fs/ntfs3: Remove unused mi_mark_free 2026-01-19 13:09:30 +01:00
run.c fs/ntfs3: fix mount failure for sparse runs in run_unpack() 2026-01-19 13:09:49 +01:00
super.c fs/ntfs3: Remove unused mi_mark_free 2026-01-19 13:09:30 +01:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Mark volume as dirty if xattr is broken 2024-07-18 13:07:35 +02:00