diff options
author | Phillip Lougher <[email protected]> | 2020-07-23 21:15:40 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-07-24 12:42:41 -0700 |
commit | 2910c59fd0423f87aca3a669b156a2325da63745 (patch) | |
tree | f0dff9d23a9fc8507dff4b431c01dd77a5cff6c5 /lib/mpi/mpi-cmp.c | |
parent | e57942c5630f86880f2cefa61f4a1ab10d4864af (diff) |
squashfs: fix length field overlap check in metadata reading
This is a regression introduced by the "migrate from ll_rw_block usage
to BIO" patch.
Squashfs packs structures on byte boundaries, and due to that the length
field (of the metadata block) may not be fully in the current block.
The new code rewrote and introduced a faulty check for that edge case.
Fixes: 93e72b3c612adcaca1 ("squashfs: migrate from ll_rw_block usage to BIO")
Reported-by: Bernd Amend <[email protected]>
Signed-off-by: Phillip Lougher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Adrien Schildknecht <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Daniel Rosenberg <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions