Re: [PATCH] erofs: fix shift-out-of-bounds of blkszbits

From: Chao Yu
Date: Wed Feb 10 2021 - 20:16:29 EST


On 2021/1/20 9:30, Gao Xiang via Linux-erofs wrote:
From: Gao Xiang <hsiangkao@xxxxxxxxxx>

syzbot generated a crafted bitszbits which can be shifted
out-of-bounds[1]. So directly print unsupported blkszbits
instead of blksize.

[1] https://lore.kernel.org/r/000000000000c72ddd05b9444d2f@xxxxxxxxxx
Reported-by: syzbot+c68f467cd7c45860e8d4@xxxxxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxx>

Sorry, I missed this patch.

Reviewed-by: Chao Yu <yuchao0@xxxxxxxxxx>

Thanks,