Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: erofs: fix unexpected out-of-bound data access
Unexpected out-of-bound data will be read in erofs_read_raw_page after commit 07173c3 ("block: enable multipage bvecs") since one iovec could have multiple pages. Let's fix as what Ming's pointed out in the previous email [1]. [1] https://lore.kernel.org/lkml/[email protected]/ Suggested-by: Ming Lei <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]> Fixes: 07173c3 ("block: enable multipage bvecs") Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information