From nobody Sun Sep 29 17:04:25 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XGrCY71Tnz5XvRq for ; Sun, 29 Sep 2024 17:04:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XGrCY3Wjtz47Gw for ; Sun, 29 Sep 2024 17:04:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727629465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SlDSk3Jk86dihwXf8sv98c8tT7SxrmNR5Nu4yP5WDpc=; b=EqG3zPsu4X0zO+sZ7fyptp58hrD3dXKyYFinaCacRGxp/LS3S1iw16K0kBE7vVhFd2cGA7 GW8syf+3noIN/1WSHu409mqFR4P8WpSQz9ryEd0XUQBpFN8+ZCm4hxhYOrDBSr+Eqr7HI1 2xN+Wrv9nsbbA6OErR9rGbiskm5q71cG8MC/IpqPU0mbKn+e3O7soi6bMS8AO0Y8Zk9Dbf qR8/t5r2/hi2V2+1TVkbhHbNiplqwxmqyrCqfANz1+UyS5XvkAhQfS8lrseAmdMohuEEAi teGmNjk8Mtz3CCkwjEOz8m5Y1hI+YfDpWuH8nuI/CDnnYOZ4lgp4JgTP9GLrFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727629465; a=rsa-sha256; cv=none; b=aMxIOyJYdKWd6H6LKorxwCRmjGz5KLrGbYQRAhcxOOQa3tKQLoOcSIFD6nYPMeqlEh3nqz r+iXDl2ww3Ohw0Nxf+htc3kSUtdjA0RWsMibMNghF/A2b+p1f/lzIXfFURIZalTQJDD5kH WyluqqwNCR/Iai17vrsqYq9YfcLb8Fv2tcZhdOgSxvRwuBYmTzCEusjZdt/TXAKdDIsNC4 rGUEb3RaNx+BYbk/S/VKibjH56fLoDRwTLSCGxNvLS8T4lfMCpLCqjKgKN7dyFzDkvqDVT BYATGdKxo52pSVs9h0TkDy3MhYImJPgGETeQDJverbswXB+0vF+qzFlYZCj0AA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XGrCY37pgzHH3 for ; Sun, 29 Sep 2024 17:04:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 48TH4PtW092483 for ; Sun, 29 Sep 2024 17:04:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 48TH4PGj092482 for bugs@FreeBSD.org; Sun, 29 Sep 2024 17:04:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281762] Kernel hangs when booting from geli encrypted rootfs without cryptodev loaded Date: Sun, 29 Sep 2024 17:04:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henrichhartzer@tuta.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281762 Bug ID: 281762 Summary: Kernel hangs when booting from geli encrypted rootfs without cryptodev loaded Product: Base System Version: 14.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: henrichhartzer@tuta.io I was trying to install 14.1-RELEASE on a machine that predates AES-NI (not sure if it matters). I did a BIOS install. I first tried the geli init -b method where /boot is unencrypted. This yiel= ded the same kind of hang. I could enter the password, it'd load a couple modul= es, then hang with no error. I then did geli init -g to include encrypted rootfs. Not sure if this would impact ZFS or not, but I did it on UFS. Here's the instructions I followed: geli(8) encrypted root-on-UFS for BIOS boot only 1. Create partition table gpart create -s gpt ada0 2. Create FreeBSD boot code partition, add boot code gpart add -t freebsd-boot -s 512k -l gptboot0 ada0 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0 3. Create root partition for geli(8) provider gpart add -t freebsd-ufs -a 1m -l ufsroot0 ada0 4. Initialize root file system geli(8) provider, attach provider geli init -g -l 128 -e AES-CBC -s 4096 ada0p2 geli attach ada0p2 5. Construct UFS2 (softupdates, TRIM, no journaling) file system on geli(8) provider newfs -t ada0p2.eli Note: -U is default since 14.1 6. Install system distribution files mount /dev/ada0p2.eli /mnt cd /usr/freebsd-dist tar xfC base.txz /mnt tar xfC kernel.txz /mnt 7. Configure system bootstrap information vi /mnt/boot/loader.conf geom_eli_load=3D"YES" vi /mnt/etc/fstab /dev/ada0p2.eli / ufs rw 1 1 exit 8. Reboot system, configure system I ended up with the same hang, this time after starting devd. I simply adde= d '=20 cryptodev_load=3D"YES"' to /boot/loader.conf and the system came up fi= ne without hanging. This is using AES-CBC without AES-NI, not sure if it matters. Thank you! Related forum thread: https://forums.freebsd.org/threads/freebsd-14-1-hanging-with-encrypted-root= fs-ufs-geli-bios.95138/ Thanks to T-Daemon for help/information about the geli init -g method worki= ng with BIOS booting. --=20 You are receiving this mail because: You are the assignee for the bug.=