Project

General

Profile

Actions

Bug #11881

closed

loader: zfs_fmtdev can crash when pool discovery did fail and we have no spa

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

FreeBSD commit: https://svnweb.freebsd.org/changeset/base/353757

When zfs probe did fail and no spa was created, but zfs_fmtdev() is called, we will crash while dereferencing spa (NULL pointer dereference).

Tested with userland loader/zfs reader app where the issue did reveal itself (app is not yet in illumos tree) - did confirm the crash does not happen any more.

Actions

Also available in: Atom PDF