path: root/lib/libc
diff options
authorMark Johnston <markj@FreeBSD.org>2021-07-15 16:23:04 +0000
committerMark Johnston <markj@FreeBSD.org>2021-07-15 16:23:04 +0000
commit0fcafe8516d170852aa73f029a6a28bed1e29292 (patch)
treecfcfe9b90bf8d16b1c85fc55f07aed5baee71815 /lib/libc
parent44de1834b53f4654cc2f6d76406f5705f8167927 (diff)
eli: Zero pad bytes that arise when certain auth algorithms are used
When authentication is configured, GELI ensures that the amount of data per sector is a multiple of 16 bytes. This is done in eli_metadata_softc(). When the digest size is not a multiple of 16 bytes, this leaves some extra pad bytes at the end of every sector, and they were not being zeroed before being written to disk. In particular, this happens with the HMAC/SHA1, HMAC/RIPEMD160 and HMAC/SHA384 data authentication algorithms. This change ensures that they are zeroed before being written to disk. Reported by: KMSAN Reviewed by: delphij, asomers MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31170
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions