]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix netdump buffering after r348473.
authorMark Johnston <markj@FreeBSD.org>
Mon, 19 Aug 2019 16:29:51 +0000 (16:29 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 19 Aug 2019 16:29:51 +0000 (16:29 +0000)
commitccdc986607d3a12def360e6c6d01b44f64cb0868
tree7614631f2768dad338dc92e2a1d401347b3f7d5a
parent165b9f965d190e81a85f23dff9bd1f3977e73c01
Fix netdump buffering after r348473.

nd_buf is used to buffer headers (for both the kernel dump itself and
for EKCD) before the final call to netdump_dumper(), which flushes
residual data in nd_buf.  As a result, a small portion of the residual
data would be corrupted.  This manifests when kernel dump compression
is enabled since both zstd and zlib detect the corruption during
decompression.

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D21294
sys/netinet/netdump/netdump_client.c