]> granicus.if.org Git - zfs/commit
Don't panic on bad SA_MAGIC in sa_build_index
authorNathaniel Clark <Nathaniel.Clark@misrule.us>
Thu, 7 Jun 2018 16:51:56 +0000 (12:51 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 7 Jun 2018 16:51:56 +0000 (09:51 -0700)
commitfba33c3819761487a75c8f1307482959105a6269
treeca99a530f5b96e28d1ba60ab55c58f7c414816b0
parent7106b23640e8fba33df09b160f366918dcb79021
Don't panic on bad SA_MAGIC in sa_build_index

If sa_build_index() encounters a corrupt buffer, don't panic.
Add info to zfs ring buffer and return EIO.  This allows for a cleaner
error recovery path.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Issue #6500
Closes #7487
module/zfs/sa.c