]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/nfsserver/nfs_srvkrpc.c
MFV r275548:
authorXin LI <delphij@FreeBSD.org>
Sat, 13 Dec 2014 02:08:18 +0000 (02:08 +0000)
committerXin LI <delphij@FreeBSD.org>
Sat, 13 Dec 2014 02:08:18 +0000 (02:08 +0000)
commitd25a5fd878515483fe43d63e638f076c6e54ac54
tree1c8e8f7b303cc7c77234f7925be452cc9378cd4c
parentce1fb8c8e8bd8b387c02623c91bb147e6ce8f0a6
parente0436c62e30173cbdb36c76a83b214a862aa79a0
MFV r275548:

Verify that the block pointer is structurally valid, before attempting to
read it in.  It can only be invalid in the case of a ZFS bug, but this
change will help identify such bugs in a more transparent way, by
panic'ing with a relevant message, rather than indexing off the end of an
array or something.

Illumos issue:
    5349 verify that block pointer is plausible before reading

MFC after: 2 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/spa.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c