Project

General

Profile

Bug #6290

zdb -h overflows stack

Added by Matthew Ahrens almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2015-10-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

zdb's history printing can overflow the stack, because it allocates SPA_MAXBLOCKSIZE (16MB) on the stack.

History

#1

Updated by Electric Monk almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 3f84190c280ddf5917fb4682f34fdaa328ee195c

commit  3f84190c280ddf5917fb4682f34fdaa328ee195c
Author: Matthew Ahrens <mahrens@delphix.com>
Date:   2015-10-09T17:55:12.000Z

    6290 zdb -h overflows stack
    Reviewed by: Prakash Surya <prakash.surya@delphix.com>
    Reviewed by: George Wilson <george.wilson@delphix.com>
    Reviewed by: Brian Donohue <brian.donohue@delphix.com>
    Reviewed by: Xin Li <delphij@freebsd.org>
    Reviewed by: Don Brady <dev.fs.zfs@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF