Skip to content

Commit c8467f7

Browse files
committed
crypto: scatterwalk - Remove unnecessary aliasing check in map_and_copy
The aliasing check in map_and_copy is no longer necessary because the IPsec ESP code no longer provides an IV that points into the actual request data. As this check is now triggering BUG checks due to the vmalloced stack code, I'm removing it. Reported-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 8acf7a1 commit c8467f7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

crypto/scatterwalk.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,
6868

6969
sg = scatterwalk_ffwd(tmp, sg, start);
7070

71-
if (sg_page(sg) == virt_to_page(buf) &&
72-
sg->offset == offset_in_page(buf))
73-
return;
74-
7571
scatterwalk_start(&walk, sg);
7672
scatterwalk_copychunks(buf, &walk, nbytes, out);
7773
scatterwalk_done(&walk, out, 0);

0 commit comments

Comments
 (0)