From nobody Sun Oct 11 01:18:55 2026 X-Original-To: dev-commits-src-all@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 4j2N6D4PCmz6w9Nt for ; Sun, 11 Oct 2026 01:19:00 +0000 (UTC) (envelope-from git@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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4j2N6D3rZmz3N4h for ; Sun, 11 Oct 2026 01:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791681540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aVi4LiXH0GRjjgABlyp+tSE1Z/Zm8o+QF7qOhzern64=; b=a5UrdhMr/qSN9PKUcZRnaZRpBxM6pEyrmudqnwtjOrQITnCAm5GlaUn/o2DdWXt1F2uUzZ Btn0jmpEuMKg8CeuZIsq0OczbvJJ1UapwkPvIC1smsVUaxUwR3TD0Lk2yLp5dgn/zPmpp+ HTabnizyUP0CT6BUUZNqj5IaPLk2Mrnb1CJV1nfhN+NDUyOXpT80kc4mE3kUJHkiIl/Y3S 8fMeHQoJydAraqFc5DNz+AqPV+b6roF0TkFcgU/SemEefJpGi0XA50lXR3nNzzj5MtZzQf 874RwzUDGUU9Nxuwlb20pTmQomWomtap0p2ALSIBKVd6vxvA4UwuIFzF5vPiYQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791681540; b=WrWR8BmWsNWm9zZugYOCvVCDfTUHJG/9xrYSewtXUaSZ+br5MX2WSSCyi9k+drekD6JMNb HRvwm5Jr+iESyMZe9IfbAIik5NkSZrrktgETEY1olDzHH77simtJ5dRrp8BKy4Asp4Kut2 hjxtFGx5pXkhrzoGRTNxcx38Gk/vdWUROSj3TW/dVX3B7AzNOJ7WM7X9hA3AISWLYh6LiG M1Ux+NZE+L1R5540BdbUnKlrSZDZHmsJUucm2vjhvvtl9P5rqa7oNlb3qZPIbQUQYok8uZ Q5+srIMXTSeQDkJOFJ57L9L/xqemhkqq6i61tVSLZAQlYvpJ3Po/F9HFlPopgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791681540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aVi4LiXH0GRjjgABlyp+tSE1Z/Zm8o+QF7qOhzern64=; b=cnubvzgGZb7un6O94+HGSbpZ2N6Q6XTzIoSsmkwWrkQPbby4SRlDfKQeJ+r0YuyF36ixtE B9QqYENp9+UtnX/WApObMrzwdWaJK8e2weB5wPo8OmUh2+m8gAmYeaDU9Z0XR41tU2vE3s Pvcw0CcpLN25U0Xhsb9NLMzn3uLdy8yA4snTS5YgUYFont2yZ68M5hJSfC/uo3mzmY6Ctq A/4P600iShdWHZ1mnT5j0BcdcwSOUV6uNS5gSEdSo7ZEBfjILnBdtaDU+RvDGNbZTSOJOA F5nFiKIuU1uibvMpXnL6rJeM7nOz3u9BI7ECYS5H5cGeombeI48od6E5Wubu2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4j2N6D2tMDzJvT for ; Sun, 11 Oct 2026 01:19:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 34893 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 11 Oct 2026 01:18:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Corvi=?utf-8?Q?n K=C3=B6hn?=e From: Kevin Bowling Subject: git: 99229e58da67 - stable/15 - bhyve: allow read/write to full CRB buffer List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: Commit messages for all branches of the src repository List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 99229e58da67a6fa37f2d89fead6b2b5aed0bba7 Auto-Submitted: auto-generated Date: Sun, 11 Oct 2026 01:18:55 +0000 Message-Id: <6acae3ff.34893.5d9a24ed@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=99229e58da67a6fa37f2d89fead6b2b5aed0bba7 commit 99229e58da67a6fa37f2d89fead6b2b5aed0bba7 Author: Corvin Köhne AuthorDate: 2026-04-02 06:36:40 +0000 Commit: Kevin Bowling CommitDate: 2026-10-11 01:18:43 +0000 bhyve: allow read/write to full CRB buffer For some reason, we've incorrectly calculated the size of the CRB data buffer register. There's no need to divide the CRB data buffer size by 4. We should allow access to the whole buffer instead. Reviewed by: markj Sponsored by: Beckhoff Automation GmbH & Co. KG Pull Request: https://github.com/freebsd/freebsd-src/pull/2169 (cherry picked from commit 75909086a45da3c5aeaff8152728111cf798c6bc) --- usr.sbin/bhyve/tpm_intf_crb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/tpm_intf_crb.c b/usr.sbin/bhyve/tpm_intf_crb.c index bf5602a87659..7058b47733f3 100644 --- a/usr.sbin/bhyve/tpm_intf_crb.c +++ b/usr.sbin/bhyve/tpm_intf_crb.c @@ -421,7 +421,7 @@ tpm_crb_mem_handler(struct vcpu *vcpu __unused, const int dir, 4: case offsetof(struct tpm_crb_regs, data_buffer) ... offsetof(struct tpm_crb_regs, data_buffer) + - TPM_CRB_DATA_BUFFER_SIZE / 4: + sizeof(((struct tpm_crb_regs *)NULL)->data_buffer) - 1: /* * Those fields are used to execute a TPM command. The * crb_thread will access them. For that reason, we have