]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: correct FSDAX detection
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 17 Nov 2025 11:57:29 +0000 (19:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:12 +0000 (14:03 +0100)
commit46198ad004297e003b5e35a90aa841ecdb668bef
treeedf86b4a4768b53f4ee2880238d02ede5a7affa5
parent1fa7e6e78bd6ce61c00d749532639b9b4e20795b
erofs: correct FSDAX detection

[ Upstream commit ebe4f3f6eb0c10f87c58e52a8912694c14fdeda6 ]

The detection of the primary device is skipped incorrectly
if the multiple or flattened feature is enabled.

It also fixes the FSDAX misdetection for non-block extra blobs.

Fixes: c6993c4cb918 ("erofs: Fallback to normal access if DAX is not supported on extra device")
Reported-and-tested-by: syzbot+31b8fb02cb8a25bd5e78@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/r/691af9f6.a70a0220.3124cb.0097.GAE@google.com
Cc: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/super.c