Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
erofs: fix out-of-bound read for shifted uncompressed block
rq->out[1] should be valid before accessing. Otherwise, in very rare cases, out-of-bound dirty onstack rq->out[1] can equal to *in and lead to unintended memmove behavior. Link: https://lore.kernel.org/r/[email protected] Fixes: 7fc45db ("staging: erofs: introduce generic decompression backend") Cc: <[email protected]> # 5.3+ Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
- Loading branch information