freebsd-skq/sys/cddl/boot/zfs
Toomas Soome f1624ed8c4 Bug 212114 - loader: zio_checksum_verify() must test spa for NULL pointer
The issue was introduced with adding support for salted checksums, and
was revealed by bhyve userboot.so.

During pool discovery the loader is reading pool label from disks, and
at that time the spa structure is not yet set up, so the NULL pointer
is passed for spa. This condition must be checked to avoid the corruption
of the memory and NULL pointer dereference.

PR:		212114
Reported by:	tsoome@freebsd.com
Reviewed by:	allanjude
Approved by:	allanjude (mentor)
Differential Revision:	https://reviews.freebsd.org/D7634
2016-08-24 16:30:15 +00:00
..
blkptr.c MFV r267565: 2014-07-01 06:43:15 +00:00
fletcher.c Add SHA512, skein, large blocks support for loader zfs. 2016-08-18 00:37:07 +00:00
lz4.c Use netinet/in.h to avoid include/arpa dependency for DIRDEPS_BUILD. 2016-05-26 23:20:17 +00:00
lzjb.c
README MFV r267565: 2014-07-01 06:43:15 +00:00
sha256.c Add SHA512, skein, large blocks support for loader zfs. 2016-08-18 00:37:07 +00:00
skein_zfs.c Add SHA512, skein, large blocks support for loader zfs. 2016-08-18 00:37:07 +00:00
zfsimpl.h Add SHA512, skein, large blocks support for loader zfs. 2016-08-18 00:37:07 +00:00
zfssubr.c Bug 212114 - loader: zio_checksum_verify() must test spa for NULL pointer 2016-08-24 16:30:15 +00:00
zle.c

$FreeBSD$

This directory contains various files derived from CDDL sources that
are used by the ZFS bootstrap:

    fletcher.c			checksum support
    sha256.c			checksum support
    lz4.c			compression support
    lzjb.c			compression support
    blkptr.c			ZFS embedded-data block pointers support
    zfssubr.c			checksum, compression and raidz support
    zfsimpl.h			mostly describing the physical layout

The files fletcher.c, lzjb.c, lz4.c, sha256.c and blkptr.c are largely identical
to the ZFS base code (with write support removed) and could be shared but that
might complicate future imports from Illumos.