]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: fix mount failure for sparse runs in run_unpack()
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 18 Sep 2025 10:35:24 +0000 (13:35 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 17 Oct 2025 10:08:43 +0000 (12:08 +0200)
commit801f614ba263cb37624982b27b4c82f3c3c597a9
treecf1834910b784b4f4549082fed00bbb4107d266e
parenta846cd0d0a05364c6fa5c4988e75d3b639d6dae5
fs/ntfs3: fix mount failure for sparse runs in run_unpack()

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: 736fc7bf5f68 ("fs: ntfs3: Fix integer overflow in run_unpack()")
Cc: stable@vger.kernel.org
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/run.c