Bug 254440 - FreeBSD 13.0-BETA kldload zfs spins on VMWare
Summary: FreeBSD 13.0-BETA kldload zfs spins on VMWare
Status: Closed DUPLICATE of bug 254177
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-STABLE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-20 19:14 UTC by ota
Modified: 2021-03-28 22:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ota 2021-03-20 19:14:06 UTC
After upgrading 12.2-RELEASE to 13.0-BETA, 'kldload zfs' spins and doesn't come back.

This only happens with VWare and doesn't with 2~3 other hardwares.
Another note is another 13.0-BETA version which has been following since current-13 doesn't hung same way; only upgrade from 12.2-RELEASE among my environment.

I don't have ZFS boot.
I also don't set zfs_enable as I often connect USB disk and mount zfs file systems.

vmare# procstat -kk 1049
   PID    TID COMM                TDNAME              KSTACK                       
  1049 100215 kldload             -                   spa_init+0xc6 zfs_kmod_init+0x1a
 zfs_modevent+0x34 module_register_init+0x8c linker_load_module+0xaab kern_kldload+0xc1
 sys_kldload+0x50 syscall+0x17d g_ctx+0xe280bf29 

vmware# kgdb101 /usr/usr/lib/debug/boot/kernel/zfs.ko.debug
GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd13.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "helpType "apropos word" to search for commands related to "word"...
Reading symbols from zfs.ko.debug...
(kgdb) info line *spa_init+0xc6
Line 2345 of "/usr/src/sys/contrib/openzfs/module/zfs/spa_misc.c"
   starts at address 0x2b0461 <spa_init+193>
   and ends at 0x2b0467 <spa_init+199>.
(kgdb) 

void
spa_init(spa_mode_t mode)
{
        mutex_init(&spa_namespace_lock, NULL, MUTEX_DEFAULT, NULL);
        mutex_init(&spa_spare_lock, NULL, MUTEX_DEFAULT, NULL); // <- line 2345
Comment 1 ota 2021-03-28 22:09:06 UTC

*** This bug has been marked as a duplicate of bug 254177 ***