]> git.proxmox.com Git - mirror_zfs.git/commit
OpenZFS 9523 - Large alloc in zdb can cause trouble
authorJorgen Lundman <lundman@lundman.net>
Mon, 7 May 2018 08:35:50 +0000 (17:35 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 26 May 2018 00:24:57 +0000 (17:24 -0700)
commit561ba8d1b1bb1f74c0182fb95161adfec99e27a1
tree4b3cc266cdb9511aa1e07347394927a8ecb9aeb7
parent0dc2f70c5cece6ef2474e14552111ae098d9f5b4
OpenZFS 9523 - Large alloc in zdb can cause trouble

16MB alloc in zdb_embedded_block() can cause cores in certain
situations (clang, gcc55).

Authored by: Jorgen Lundman <lundman@lundman.net>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
Porting Notes:
* Replaces an equivalent fix previously made for Linux.

OpenZFS-issue: https://illumos.org/issues/9523
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/2c1964a
Closes #7561
cmd/zdb/zdb.c