Bug 253248

Summary: Instant panic/restart with mdconfig -t malloc and GELI
Product: Base System Reporter: Slawomir Wojciech Wojtczak <vermaden>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin, markj
Priority: --- Keywords: crash, needs-qa
Version: 12.2-RELEASE   
Hardware: amd64   
OS: Any   
URL: https://www.freebsd.org/cgi/man.cgi?query=mdconfig&sektion=8&manpath=FreeBSD

Description Slawomir Wojciech Wojtczak 2021-02-04 14:37:04 UTC
Hi,

my system has 16 GB RAM:

% inxi
CPU: 8-Core Intel Core i7-2820QM (-MCP-) speed/min/max: 2292/800/2301 MHz OS: FreeBSD 12.2-RELEASE-p3 amd64 Up: 3m 
Mem: 3541.6/16222.2 MB (21.8) Storage: 3.81 TiB (87.9% used) Procs: 93 Shell: Zsh inxi: 3.1.07

Before the test about 12 GB RAM was free.

After I executed these I got instant panic/restart of the system.

# mdconfig -a -t malloc -s 8G -u 10
# geli onetime -s 4096 /dev/md10
# dd bs=1m if=/dev/zero of=/dev/md10.eli status=progress

Hope that helps.

Regards.
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2021-02-04 14:57:42 UTC
What was the panic?
Comment 2 Slawomir Wojciech Wojtczak 2021-02-04 15:06:23 UTC
(In reply to Mark Johnston from comment #1)

System rebooted instantly without any info on the screen.

Like you would press the 'reset' button.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-12-05 02:59:44 UTC
Reproducible with any/all of the following? 

12.3-RELEASE-p10
13.1-RELEASE-p5
14.0-CURRENT

Thanks

(<https://www.freebsd.org/releases/12.4R/> at a glance, nothing related in release notes.)
Comment 4 Slawomir Wojciech Wojtczak 2022-12-05 16:39:17 UTC
Just tried this on 13.1-RELEASE-p5 system.

Does not hang.

Regards.