Bug 159595 - [geom] [panic] panic on gmirror unload in vbox [regression]
Summary: [geom] [panic] panic on gmirror unload in vbox [regression]
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-BETA1
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bugmeister
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2011-08-08 08:50 UTC by Christian Oaksford
Modified: 2025-03-03 03:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Oaksford 2011-08-08 08:50:11 UTC
Testing in VirtualBox 4.1.0 because I do not have hardware to dedicate
to testing this.

If you "gmirror unload" while you have an active mirror on 9.0-BETA1,
it causes a panic. On 8.2-RC2, it tells you the device is busy. This
seems to be the better behavior. gstripe does not show this behavior
that gmirror does.


From the VM on which this works:

fbsd-vm# uname -a
FreeBSD fbsd-vm.rchist.net 8.2-RC2 FreeBSD 8.2-RC2 #0: Wed Jan 12 17:02:35 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
fbsd-vm# gmirror label data ad4 ad6
fbsd-vm# gmirror load
GEOM_MIRROR: Device mirror/data launched (2/2).
fbsd-vm# gmirror unload
gmirror: Could not unload module: Device busy.


From the VM on which this breaks:

fbsdvm# uname -a
FreeBSD fbsdvm 9.0-BETA1 FreeBSD 9.0-BETA1 #0: Thu Jul 28 17:15:31 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
fbsdvm# gmirror label data ada1 ada2
fbsdvm# gmirror load
GEOM_MIRROR: Device mirror/data launched (2/2).
fbsdvm# gmirror unload
System call kldunload returning with one of the following locks held:
exclusive sx kernel linker (kernel linker) r = 0 (0xffffffff81119a80) locked @ /usr/src/sys/kern/kern_linker.c:1082
panic: witness_warn
cpuid = 0
KDB enter: panic
[ thread pid 1058 tid 100071 ]
Stopped at      kdb_enter+0x3b: movq    $0,0x912272(%rip)
db>

How-To-Repeat: "gmirror label" two disks. Then "gmirror load" to get the mirror in
operation, then "gmirror unload", on 9.0-BETA1.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-08-14 11:25:59 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-geom

reclassiy.
Comment 2 Jaakko Heinonen freebsd_committer freebsd_triage 2011-11-28 15:11:53 UTC
State Changed
From-To: open->feedback

Do you still see this after r224546? 
(http://svnweb.freebsd.org/base?view=revision&revision=224546)
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:56 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:19:31 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>