]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:43 +0000 (18:31 +0200)
commit7045b83c871f3c117472919584d3a295075497e1
treeebb2b7571fad02a364e50fa439c19bec4226284c
parent9b31ee9cc9101ca8968b046a20a184a396dcb447
erofs: fix shift-out-of-bounds of blkszbits

BugLink: https://bugs.launchpad.net/bugs/1920235
commit bde545295b710bdd13a0fcd4b9fddd2383eeeb3a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/erofs/super.c