HomeFreeBSD

MFC r355736: zfs boot: fix a crash in a rarely taken path in fzap_lookup

Description

MFC r355736: zfs boot: fix a crash in a rarely taken path in fzap_lookup

Instead of passing NULL to fzap_name_equal and crashing, just return
ENOENT. This happened when higher bits of a hash of the searched key
(its hash prefix) matched a hash prefix of some key in the ZAP, but the
full hash value of the searched key did not match any key in the ZAP.

I observerved this problem when loader tried to look up
"features_for_read" in a particular old pool that predates pool
features.

Sponsored by: Panzura

Details

Provenance
avgAuthored on
Parents
rS358382: remove stray space symbol in r358380
Branches
Unknown
Tags
Unknown