Skip to content

Commit

Permalink
Merge tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kerne…
Browse files Browse the repository at this point in the history
…l/git/ebiggers/linux

Pull CRC fixes from Eric Biggers:
 "Fix out-of-scope array bugs in arm and arm64's crc_t10dif_arch()"

* tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
  arm64/crc-t10dif: fix use of out-of-scope array in crc_t10dif_arch()
  arm/crc-t10dif: fix use of out-of-scope array in crc_t10dif_arch()
  • Loading branch information
Linus Torvalds committed Mar 28, 2025
2 parents 7288511 + d48b663 commit f8a4eba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions arch/arm/lib/crc-t10dif-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ u16 crc_t10dif_arch(u16 crc, const u8 *data, size_t length)
crc_t10dif_pmull8(crc, data, length, buf);
kernel_neon_end();

crc = 0;
data = buf;
length = sizeof(buf);
return crc_t10dif_generic(0, buf, sizeof(buf));
}
}
return crc_t10dif_generic(crc, data, length);
Expand Down
4 changes: 1 addition & 3 deletions arch/arm64/lib/crc-t10dif-glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ u16 crc_t10dif_arch(u16 crc, const u8 *data, size_t length)
crc_t10dif_pmull_p8(crc, data, length, buf);
kernel_neon_end();

crc = 0;
data = buf;
length = sizeof(buf);
return crc_t10dif_generic(0, buf, sizeof(buf));
}
}
return crc_t10dif_generic(crc, data, length);
Expand Down

0 comments on commit f8a4eba

Please sign in to comment.