summaryrefslogtreecommitdiff
path: root/include/uapi/linux/errqueue.h
diff options
context:
space:
mode:
authorSeongjae Jeong <jsjlee1020@gmail.com>2026-09-18 13:39:22 +0000
committerJaegeuk Kim <jaegeuk@kernel.org>2026-09-30 17:08:19 +0000
commit7566fec606d233f803e61f5ce37c54fbcdb00010 (patch)
tree200b60e522dedfbfe1dc9eabfb8fb516daa23eff /include/uapi/linux/errqueue.h
parent4faeea625cf730bb20f609f061ff81c9b6852931 (diff)
downloadlinux-next-7566fec606d233f803e61f5ce37c54fbcdb00010.tar.gz
linux-next-7566fec606d233f803e61f5ce37c54fbcdb00010.zip
f2fs: reject device aliasing without a multi-device configuration
A malformed F2FS image can enable F2FS_FEATURE_DEVICE_ALIAS without providing a multi-device configuration. For a regular single-device filesystem, f2fs_scan_devices() returns without allocating sbi->devs. In this state, f2fs_dev_is_alloc_blocked() passes the device alias feature check and dereferences FDEV(0), resulting in a NULL pointer dereference during segment allocation. Device aliasing requires at least one secondary device. Reject superblocks that enable device aliasing without entries for both the main and secondary devices in sanity_check_raw_super(). Fixes: eae3faf210bd ("f2fs: support dynamic reserve/release for device aliasing") Reported-by: syzbot+ae5b8eb92ed40411ce16@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=ae5b8eb92ed40411ce16 Signed-off-by: Seongjae Jeong <jsjlee1020@gmail.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions