From nobody Wed Apr 16 01:41:07 2025 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 4ZckJM6g9sz5sl4G for ; Wed, 16 Apr 2025 01:41:07 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZckJM2f7Fz47rF for ; Wed, 16 Apr 2025 01:41:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744767667; 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=/gW7xh4P7mfiEAzJPJqZNh3KoQiHiM97zdMHEnBgfOs=; b=UFkZsXGKQmGXohIyTdW3t4LATLkjyTWCGfSuQ0R0UZz5ZhTVfqOmSf5FU117NlxNin6Ig/ o1E04fcGM0P6GHYwJy2RgXciTaOLQaZCPvm4DogkRNRmZ4Nzbo1yXaitgwiA7gYJjjD8ZC aGT0Iaa11WQHUoF1Bmf2skbRV/iWID0ijmBPg+yMdtmY7u0KT4EekHrAEiApFVpgN2GHhU 6M+8vHEm9rfEP3rCFPf/nJr07ftL2mNWTn8InPc9IacbBQLigDacP0RLE9WdsLdn2lGFhU cvDnl5iCvtgkG9TcYpT5e0Su+gZzbXjYnHukeZWQHWn0pIbZzbByBeakYclE4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744767667; a=rsa-sha256; cv=none; b=fewgHH47GaCsn7Uz78BOOzSh6iUy370i90+jJ+n5l3Oy2TsZ0sk+7jf6GwRztnwgrXy8Aw hxpVzMbq/00cT4b8oJPY+M1jAklypIweA7OQb5MNNRh0ZANvqzuiM9ynL//02EhyqF8yZA 7DoVNsdb20aDLgHQUsvYAfhA+FoBIRKSIO8FCiO1gQwJb7vkUNDyg8UpmvaO7h6OJrpu2s fTs0Ux/8FaE9oqtN/YVacdHZw4rbGYNkCV7U25jfivt9mi2BfjyS/yQxlLFkLfKCxSLbRv JfS6Ub3vEOIO35GyoI3SBdlxTfcn2gLyDShf5JXxkbUoFtXbcr9Y+R35g+qpTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744767667; 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=/gW7xh4P7mfiEAzJPJqZNh3KoQiHiM97zdMHEnBgfOs=; b=iaOqxyiYabW87N1Eqbo9/lhmd0zdNOF7Z2dBijMgNS/mObZLf1iU0HHnt0eRyiFL+n3SJO o7Nr80+/UYAL/7ttu3lqQkPAD1jz4YXiqOOaYdMNaSNXhg7IXDmNXKWSbdIh7+lhsdCiPM Iu8xytAhNCALlXux85ltKI+IwkK1zWBsK/6rVXBJo18pDRKvNS+jht/8C8PUs83GbzKssf +RtwN/GRyNmwXTxCJZcfmF1C2YwgRTkjcQQHTUpNQTHX07jIAFgYfiKEFH+VB3rfpS0opl 11NVJBw6FhnjPBMySZhHPF2K+uEfbaijGRs+fpNB10kBOWndBm7XzS8pN+8QXw== 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 4ZckJM2G4lzyVD for ; Wed, 16 Apr 2025 01:41:07 +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 53G1f7ap064171 for ; Wed, 16 Apr 2025 01:41:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53G1f7Od064170 for bugs@FreeBSD.org; Wed, 16 Apr 2025 01:41:07 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 283043] gptboot fails to read the encrypted rootfs if geli authentication (geli -a) is used Date: Wed, 16 Apr 2025 01:41:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D283043 --- Comment #5 from John Baldwin --- My patch was incorrect. The key is actually ok I think, the bigger problem= is that the data layout on disk is very different when auth is enabled. A log= ical 4k sector is striped across multiple underlying sectors each of which conta= ins a MAC along with a payload (typically for 512 byte sectors you get 480 byte= s of data). This needs a much larger change to the data path in geliboot to han= dle. In the kernel this is the difference between g_eli_integrity.c vs g_eli_privacy.c. This is a non-trivial amount of work unfortunately. --=20 You are receiving this mail because: You are the assignee for the bug.=