]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix writing of the final block of encrypted, compressed kernel dumps.
authormarkj <markj@FreeBSD.org>
Thu, 27 Aug 2020 17:36:06 +0000 (17:36 +0000)
committermarkj <markj@FreeBSD.org>
Thu, 27 Aug 2020 17:36:06 +0000 (17:36 +0000)
commitd9f592a79714b8d8cc4c80b19be404197a80471a
tree678a15d00cbefdea36deca446eb731c34757b902
parent0ededf82728ecff5673880887e2d2049e102397a
Fix writing of the final block of encrypted, compressed kernel dumps.

Previously any residual data in the final block of a compressed kernel
dump would be written unencrypted.  Note, such a configuration already
does not work properly when using AES-CBC since the compressed data is
typically not a multiple of the AES block length in size and EKCD does
not implement any padding scheme.  However, EKCD more recently gained
support for using the ChaCha20 cipher, which being a stream cipher does
not have this problem.

Submitted by: sigsys@gmail.com
Reviewed by: cem
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26188
sys/kern/kern_shutdown.c