From nobody Thu Jan 13 16:38:25 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 4F1D31953C98 for ; Thu, 13 Jan 2022 16:38:27 +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 4JZVVV003lz4bLs for ; Thu, 13 Jan 2022 16:38:25 +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 B8DB523D95 for ; Thu, 13 Jan 2022 16:38: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 20DGcPmX085992 for ; Thu, 13 Jan 2022 16:38:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20DGcP3c085991 for bugs@FreeBSD.org; Thu, 13 Jan 2022 16:38: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 261172] GELI boot failing with aes_xts_reinit: invalid IV length Date: Thu, 13 Jan 2022 16:38:25 +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: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jhb@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: 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=1642091906; 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=T9HnoGllIbvdXHfiXFes9XxqeKuqwB+jB0sIoFfKqdg=; b=IG+FzOi+3l3HTnOAkU5p91WkN4b8SFcQ4kbO0ZBgmUoZW5eZK5Jdje3JTIjLQ3vbNaguah daNIDu9h9gjWY7etFwz5Iiva3sx66h7jyWcOWGY1264FqPIQAhzIaOEFbTaHd7bw6FajJ2 DX9C5wkdKKLGbPcecLPnSUXg+XN53WTXM6+7pnr/jApec64zHglTZ9ZNYcxk4jV5dsGmGF OHxYfrfzygRwKiPsIq5AxJ1+UDlFjj2OcnIu84rqsYpryfewEU8qlgDn9nuM51MXXCDbFp F3TI2E7O3e+OaOXMLbW/lZ1nRXRCikBEkI6ezwzqF/Rh5W91BX5ZQZyJfGSHdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642091906; a=rsa-sha256; cv=none; b=Z24LMYQ3pwOrczNRabVJVpZpZJriAyTN6QbOzsNkZM+pxqe1f9guLmsSnZ3sLoh5SUw+Ci b/4ycI6Uu7LDVAwBgbgg2XNUBWpJEMZ+z8XooeDj1e6ZpPF4T413z2KE4Vs51sevqIpumz ZQOPLn7YuqVOAzvsXD5d/SqgVjGZ6G9lPGS3lufSy4U26oI05DuopVDqMa/cSWG+0iJaIt NscPHNHeGnN4ZkqgTbnhYTkeq+KmIbjPKmgYyeviRMJzoFVo8hL1vauVGLmLIoNkQ0eJx5 TK8H4FQqVFyfGsyEKpoU7CbYMPzSYTnj4P5y7p1yxnHp3g4YWQ0Bm1vUTrMdww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261172 --- Comment #2 from John Baldwin --- The issue is that the compile fix exposed an assertion that was previously unchecked. Hmm, the code in geliboot_crypto.c is a bit incorrect (but probably not harmfully so). This (untested) patch will fix the assertion, but it should also use a bett= er IV size. The IV size is not the same as the key size (for AES-CBC the IV i= s a block, and for AES-XTS the IV is actually smaller than a block) --=20 You are receiving this mail because: You are the assignee for the bug.=