freebsd-skq/sys/cddl
Allan Jude c5305bb50a MFOpenZFS: Add zio_ddt_free()+ddt_phys_decref() error handling
The assumption in zio_ddt_free() is that ddt_phys_select() must
always find a match.  However, if that fails due to a damaged
DDT or some other reason the code will NULL dereference in
ddt_phys_decref().

While this should never happen it has been observed on various
platforms.  The result is that unless your willing to patch the
ZFS code the pool is inaccessible.  Therefore, we're choosing
to more gracefully handle this case rather than leave it fatal.

http://mail.opensolaris.org/pipermail/zfs-discuss/2012-February/050972.html

5dc6af0eec

Reported by:	Pierre Beyssac
Obtained from:	OpenZFS
MFC after:	2 weeks
Sponsored by:	Klara Inc.
2020-06-22 19:03:02 +00:00
..
boot/zfs loader: create single zfs nextboot implementation 2020-06-20 06:23:31 +00:00
compat/opensolaris TODO DONE: Use sx_xholder in SPL rwlock.h 2020-03-14 00:16:15 +00:00
contrib/opensolaris MFOpenZFS: Add zio_ddt_free()+ddt_phys_decref() error handling 2020-06-22 19:03:02 +00:00
dev Fix entering KDB with dtrace-enabled kernel. 2020-05-26 16:44:05 +00:00