Re: [PATCH] erofs: don't trigger WARN() when decompression fails

From: Chao Yu
Date: Fri Oct 29 2021 - 02:35:50 EST


On 2021/10/25 15:43, Gao Xiang wrote:
syzbot reported a WARNING [1] due to corrupted compressed data.

As Dmitry said, "If this is not a kernel bug, then the code should
not use WARN. WARN if for kernel bugs and is recognized as such by
all testing systems and humans."

[1] https://lore.kernel.org/r/000000000000b3586105cf0ff45e@xxxxxxxxxx
Reported-by: syzbot+d8aaffc3719597e8cfb4@xxxxxxxxxxxxxxxxxxxxxxxxx
Cc: Dmitry Vyukov <dvyukov@xxxxxxxxxx>
Cc: Chao Yu <chao@xxxxxxxxxx>
Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,