]> git.baikalelectronics.ru Git - kernel.git/commit
erofs: fix shift-out-of-bounds of blkszbits
authorGao Xiang <hsiangkao@redhat.com>
Wed, 20 Jan 2021 01:30:16 +0000 (09:30 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Thu, 11 Feb 2021 03:54:57 +0000 (11:54 +0800)
commitbde545295b710bdd13a0fcd4b9fddd2383eeeb3a
tree6c9b5b38f12c7848d2833b6773eb33dfaa6f32fa
parent19c329f6808995b142b3966301f217c831e7cf31
erofs: fix shift-out-of-bounds of blkszbits

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@google.com

Link: https://lore.kernel.org/r/20210120013016.14071-1-hsiangkao@aol.com
Reported-by: syzbot+c68f467cd7c45860e8d4@syzkaller.appspotmail.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/super.c