[PATCH v2] erofs: fix general protection fault when reading fragment
Chao Yu
chao at kernel.org
Tue Nov 8 14:06:24 AEDT 2022
On 2022/10/21 16:53, Yue Hu wrote:
> From: Yue Hu <huyue2 at coolpad.com>
>
> As syzbot reported [1], the fragment feature sb flag is not set, so
> packed_inode != NULL needs to be checked in z_erofs_read_fragment().
>
> [1] https://lore.kernel.org/all/0000000000002e7a8905eb841ddd@google.com/
>
> Reported-by: syzbot+3faecbfd845a895c04cb at syzkaller.appspotmail.com
> Fixes: 08a0c9ef3e7e ("erofs: support on-disk compressed fragments data")
> Signed-off-by: Yue Hu <huyue2 at coolpad.com>
Reviewed-by: Chao Yu <chao at kernel.org>
Thanks,
More information about the Linux-erofs
mailing list