Skip to content
Commit 12724ba3 authored by Gao Xiang's avatar Gao Xiang
Browse files

erofs: fix kvcalloc() misuse with __GFP_NOFAIL



As reported by syzbot [1], kvcalloc() cannot work with  __GFP_NOFAIL.
Let's use kcalloc() instead.

[1] https://lore.kernel.org/r/0000000000007796bd05f1852ec2@google.com

Reported-by: default avatar <syzbot+c3729cda01706a04fb98@syzkaller.appspotmail.com>
Fixes: fe3e5914 ("erofs: try to leave (de)compressed_pages on stack if possible")
Fixes: 4f05687f

 ("erofs: introduce struct z_erofs_decompress_backend")
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarGao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230110074927.41651-1-hsiangkao@linux.alibaba.com
parent 6acd87d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment