Commit 416a8b2c authored by Gao Xiang's avatar Gao Xiang
Browse files

erofs: ensure regular inodes for file-backed mounts



Only regular inodes are allowed for file-backed mounts, not directories
(as seen in the original syzbot case) or special inodes.

Also ensure that .read_folio() is implemented on the underlying fs
for the primary device.

Fixes: fb176750 ("erofs: add file-backed mount support")
Reported-by: default avatar <syzbot+001306cd9c92ce0df23f@syzkaller.appspotmail.com>
Closes: https://lore.kernel.org/r/00000000000011bdde0622498ee3@google.com


Tested-by: default avatar <syzbot+001306cd9c92ce0df23f@syzkaller.appspotmail.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240917130803.32418-1-hsiangkao@linux.alibaba.com
parent 9852d85e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment