From nobody Thu Apr 21 02:02:57 2022 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 509B611E017B for ; Thu, 21 Apr 2022 02:03:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkLR75D8Vz4k1K for ; Thu, 21 Apr 2022 02:02:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 9D2541FA61 for ; Thu, 21 Apr 2022 02:02:58 +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 23L22wjv068263 for ; Thu, 21 Apr 2022 02:02:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23L22wa8068262 for bugs@FreeBSD.org; Thu, 21 Apr 2022 02:02:58 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 263407] RC3 Guided ZFS on root with encryption unmountable Date: Thu, 21 Apr 2022 02:02:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650506580; 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: in-reply-to:in-reply-to:references:references; bh=lPT1iRFAFJiCK003rvMa81FPTG1uyTTaCUpCVps3VcU=; b=YlGu4h0CtQzECBZgB24zhgTRnGkluMpjbTqmMr+YK6oDo+QRdqoMRnozR79jRTaJnn+5hQ xBZZDO4Hypznj3sy6knZhcR+ZZyXhnJbV6qTjlyV0vn2RxgOeyozSaKzitOJNsdh8sbMsU QHQGJ4Nb+ZgDtW6vUfSNFkXZp/kAE5ke32kxpFYag9VPEYs1Qy6Ce8/9E4RWaMH0LL4Yxw pRf/QA7/tfLDjdROqonISldfU8EE43hXE0cBsuWpVN6SjJNvfoOxBIAxaqPo1EvDlnGG9T 5AtipllIoSNanZKEU9F/hGueFQ8JYzqTa7yO1tSAGgQ/fx4yiMrh9e+u512Mjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650506580; a=rsa-sha256; cv=none; b=jQCnRy67Qae8vF5JHVGAlWY5nXIyMIyArimy+UQSWfSHBOC0xmMz8y0GvUQ319Wc3aV+Sf DV8R3aQ5VGBmOZ7dg75tzJTRHZbSOlxwF0U5hDvzQf04utYOC/ysBLIW2zOjK2iaFiaI0+ 7WjFxVnGz9aTCLiBy89w9dxJ1FVx5ZkLcix9nKLOEqBfqYS3jfdmYWaRaPKQKDfP41zqOs i820QGHMn+nX85HcdMuRZ92HFyBrR5Emz3vq84HJNUHEwITQ2Coe+Kc9M9WDXCu6p7wDZ0 /MtP46DztwvbYofA4It7hN9PzqEjFW53+aYFfOIgDokWMCqszfzJm/Wjb5mnVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263407 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |allanjude@FreeBSD.org, | |freqlabs@FreeBSD.org, | |kevans@freebsd.org, | |mav@FreeBSD.org --- Comment #10 from Kyle Evans --- (In reply to Martin Matuska from comment #7) To summarize some of what I've discovered: loader fails to read it because we process the first datablk and then still have 8 bytes left to read. Note the zdb output: obj=3D14 dataset=3Dzroot/ROOT/default path=3D/boot type=3D20 bonustype=3D44 obj=3D77 dataset=3Dzroot/ROOT/default path=3D/boot/kernel type=3D20 bonusty= pe=3D44 obj=3D16532 dataset=3Dzroot/ROOT/default path=3D/boot/kernel/geom_eli.ko ty= pe=3D19 bonustype=3D44 Object lvl iblk dblk dsize dnsize lsize %full type 16532 1 128K 128K 72K 512 128K 100.00 ZFS plain file (K=3Dinherit) (Z=3Dinherit=3Dlz4) 168 bonus System attribut= es dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED=20 dnode maxblkid: 0 uid 0 gid 0 atime Wed Apr 20 16:36:09 2022 mtime Thu Apr 14 05:24:57 2022 ctime Wed Apr 20 16:36:13 2022 crtime Thu Apr 14 05:24:57 2022 gen 105 mode 100555 size 131080 parent 77 links 1 pflags 40800000104 Indirect blocks: 0 L0 0:12eb72000:12000 20000L/12000P F=3D1 B=3D105/105 cksum=3D16fe63abceef:30eb7f3af17191f:2407cd8cfd04b694:d5743be33ba51582 segment [0000000000000000, 0000000000020000) size 128K There's one indirect block that consists of 128k data, but the file size is 128k + 8 bytes. zdb doesn't indicate any embedded data, so it's not clear w= here this remaining 8 bytes comes from but it seems likely that we're just mishandling this situation. When you copy the file away, you get this inste= ad, which loader *can* grok: obj=3D14 dataset=3Dzroot/ROOT/default path=3D/boot type=3D20 bonustype=3D44 obj=3D115 dataset=3Dzroot/ROOT/default path=3D/boot/modules type=3D20 bonus= type=3D44 obj=3D65597 dataset=3Dzroot/ROOT/default path=3D/boot/modules/geom_eli.ko t= ype=3D19 bonustype=3D44 Object lvl iblk dblk dsize dnsize lsize %full type 65597 2 128K 128K 80K 512 256K 50.00 ZFS plain file (K=3Dinherit) (Z=3Dinherit=3Dlz4) 168 bonus System attribut= es dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED=20 dnode maxblkid: 1 uid 0 gid 0 atime Wed Apr 20 17:37:15 2022 mtime Wed Apr 20 17:37:15 2022 ctime Wed Apr 20 17:37:15 2022 crtime Wed Apr 20 17:37:15 2022 gen 887 mode 100555 size 131080 parent 115 links 1 pflags 40800000104 Indirect blocks: 0 L1 0:20481000:1000 20000L/1000P F=3D1 B=3D887/887 cksum=3D874e89542b:1f3270c7c16ce:39b480e80eca90d:75b552339f0fcd1b 0 L0 0:a0143000:12000 20000L/12000P F=3D1 B=3D887/887 cksum=3D16fe63abceef:30eb7f3af17191f:2407cd8cfd04b694:d5743be33ba51582 segment [0000000000000000, 0000000000020000) size 128K I don't understand how everything's stored in the first scenario, but I'm adding some more zfs people that can maybe elucidate. --=20 You are receiving this mail because: You are the assignee for the bug.=