[DragonFlyBSD - Bug #3353] (New) [panic] 'hammer2 pfs-create -t master' causes kernel panic

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Jun 24 18:52:18 PDT 2023


Issue #3353 has been reported by liweitianux.

----------------------------------------
Bug #3353: [panic] 'hammer2 pfs-create -t master' causes kernel panic
http://bugs.dragonflybsd.org/issues/3353

* Author: liweitianux
* Status: New
* Priority: Normal
* Category: VFS subsystem
* Target version: 6.6
* Start date: 2023-06-25
----------------------------------------
liuyb1 on IRC reported on 2023-06-20 the following HAMMER2 PFS panic.

Reproduce steps:

<pre><code class="shell">
$ hammer2 snapshot / snap-1
$ hammer2 -u `hammer2 pfs-clid snap-1` pfs-create snap-slave
$ hammer2 -t master -u `hammer2 pfs-clid snap-1` pfs-create snap-master
</code></pre>

Kernel panic trace:

<pre>
panic with 1 spinlocks held
panic: hammer2_chain_insert: collision 0xfffff8011e688a40 0xfffff8011e694580 (key=0000000000000400)
cpuid = 1
Trace beginning at frame 0xfffff80097df6a90
hammer2_chain_insert() at hammer2_chain_insert+0x15b 0xffffffff8096ca7b
hammer2_chain_insert() at hammer2_chain_insert+0x15b 0xffffffff8096ca7b
hammer2_chain_create() at hammer2_chain_create+0xded 0xffffffff809734ed
hammer2_chain_rename() at hammer2_chain_rename+0xd1 0xffffffff809740c1
hammer2_chain_rename_obref() at hammer2_chain_rename_obref+0x20 0xffffffff809741d0
hammer2_chain_indirect_maintenance() at hammer2_chain_indirect_maintenance+0x421 0xffffffff809746b1
</pre>

Although the above PFS clustering commands are documented in the hammer2(8) man page, the clustering feature is actually still in early development phase, as per the "DESIGN":https://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/sys/vfs/hammer2/DESIGN#l27 doc.  So issues are expected and panic is quite possible.

Well, it should report the functionality is not implemented rather than panic the system.

---Files--------------------------------
aDi6n93AsQy0.png (352 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list