loader: zfs_fmtdev can crash when pool discovery did fail and we have no spa
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.
Updated by Electric Monk 3 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit c2e9ac5c28eb1a9d5839d914b821e44a7dfdc767 Author: Toomas Soome <email@example.com> Date: 2019-10-28T16:00:23.000Z 11881 loader: zfs_fmtdev can crash when pool discovery did fail and we have no spa Reviewed by: C Fraire <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Approved by: Garrett D'Amore <firstname.lastname@example.org>