[DragonFlyBSD - Bug #3392] dm_target_crypt causes random but serious hangs
liweitianux
bugtracker-admin at leaf.dragonflybsd.org
Wed Sep 2 20:15:39 PDT 2026
Issue #3392 has been updated by liweitianux.
Subject changed from Fails to shutdown and boot properly to dm_target_crypt causes random but serious hangs
Category set to Crypto
I guess the bug is more likely in the crypto code, especially the mpipe callback mechanism used in `dm_target_crypt`. The mentioned commit "vkernel: Restore MAP_VPAGETABLE support with COW/VPTE fix (2)":https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ec33efba7563efab10f0d90b5684480d94daf0a should help reveal the real bug.
However, I failed to reproduce it yet (with a separate disk formatted with LUKS in a VM).
----------------------------------------
Bug #3392: dm_target_crypt causes random but serious hangs
http://bugs.dragonflybsd.org/issues/3392#change-14692
* Author: mneumann
* Status: New
* Priority: Normal
* Category: Crypto
* Target version: 6.6
* Start date: 2026-01-22
----------------------------------------
Tested with HEAD as of Tue Jan 20, 2026 (868971441c9e703282089412240c0361dd9687fd)
Since commit 41fb76421dce (vkernel: Restore MAP_VPAGETABLE), shutdown hangs, reporting:
"malloc_uninit: 120 bytes of 'HAMMER2-msg' still allocated on cpu 8".
It also takes unusually long between running "halt -p" and the start of the shutdown procedure.
The next boot then hangs within "Mounting tmpfs at /var/run/shm".
Chrome also once seemed to fail starting (or it took unusual long for me to think it failed).
One other person has also reported some strange timeouts happening with commit "41fb76421dce" (reported on IRC).
Screenshots attached, starting the "hang" on shutdown and boot.
---Files--------------------------------
bug1.small.jpg (723 KB)
bug2.small.jpg (630 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