Summary: | [PATCH] Prevent spa_namespace_lock deadlock caused by spa_import_rootpool() | ||
---|---|---|---|
Product: | Base System | Reporter: | Fabian Keil <fk> |
Component: | kern | Assignee: | Andriy Gapon <avg> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | avg, tablosazi.farahan |
Priority: | --- | Keywords: | patch |
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any | ||
Attachments: |
Created attachment 154269 [details]
spa_import_rootpool(): Fix ressource leaks if the pool label is missing
Once more, with feeling.
Created attachment 154270 [details]
spa_import_rootpool(): Fix ressource leaks if the pool label is missing
Previously spa_namespace_lock was kept locked which prevented
the system from booting even if the root pool label was actually
found later on. An insignificant amount of memory was leaked as well.
Obtained from: ElectroBSD
A commit references this bug: Author: avg Date: Mon Aug 24 08:44:45 UTC 2015 New revision: 287100 URL: https://svnweb.freebsd.org/changeset/base/287100 Log: spa_import_rootpool: prevent lock and resource leak The lock leak could lead to a deadlock later. PR: 198563 Submitted by: Fabian Keil <fk@fabiankeil.de> MFC after: 1 week Changes: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c A commit references this bug: Author: avg Date: Fri Sep 11 13:32:20 UTC 2015 New revision: 287667 URL: https://svnweb.freebsd.org/changeset/base/287667 Log: MFC r287100: spa_import_rootpool: prevent lock and resource leak PR: 198563 Changes: _U stable/10/ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c A commit references this bug: Author: avg Date: Fri Sep 11 13:32:56 UTC 2015 New revision: 287668 URL: https://svnweb.freebsd.org/changeset/base/287668 Log: MFC r287100: spa_import_rootpool: prevent lock and resource leak PR: 198563 Changes: _U stable/9/sys/ _U stable/9/sys/cddl/contrib/opensolaris/ stable/9/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c MARKED AS SPAM |
Created attachment 154268 [details] spa_import_rootpool(): Fix ressource leaks if the pool label is missing