From nobody Fri Mar 03 01:05:23 2023 X-Original-To: dev-commits-src-main@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 4PSVBq5Jgmz3wTD2; Fri, 3 Mar 2023 01:05:23 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PSVBq4qkNz3CLJ; Fri, 3 Mar 2023 01:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677805523; 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=QYHkVQz7witlkG1pPCiJCBhYANhUdxTlB8GPUkrUdaA=; b=qOJ1Yd/TQrjeUXCQsF7DkpUBl4IF9ilixAkvoaZs2UNSRTQ7Uezo4TIm8qKTne6jUIPOKv /yj28uE8UMxAaK0FAWIo2R+NHZH+z8uIm1b++GOXr69qDYsXkaEdyCRT3sbMOq1uRsSJoU 2XjvcvppdJPvEn5FlUllcNoizKkORM/KdNJKYO+h4luEIdxiztz8OUZayt9/18iMj5AvM5 ewgEfKgIX98K6pjz26wkqC15RxKk8KlMcO4iqtoIfct1xxOK1pA3YqFdBZWlqByFDWNT0T Bo8rsnbE9NfbiuSTVHQ4w6mQF1FB7hWfnC5ONn5DIIEhlWI4hvmlgrgUmrM9cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677805523; 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=QYHkVQz7witlkG1pPCiJCBhYANhUdxTlB8GPUkrUdaA=; b=nfowH4CQwYgxgWYhPmt2nmGwGFynR0IUf5Xm3rx+2LWc6bCKxvC+tfccAcaJ5GnDlFMzt1 +llCiJKOCrKzTrqkLu4tRqt+SpBISGo4GAxn0EQio2txl5QuASHfn6aglpIJ02lAYGLbQ+ sXFoeP9rCzICN3MK45E3ftXBWAt1wTd7QXnmRs29m4wSiCalW76mMbTOhZFZt8hQnk9HNJ jm0o/b2PtqY5M1mDhPiXUElkqwiFfzB1Gh93YgjSL8/JSVwyg6PPdJRwCeCLNDzE5RKdgj kqH419LqseakRuq7YIBRF0cwxrFa/6iGC4zNGahZ6Cv0A9vAMG6NlbrZ8aVNQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677805523; a=rsa-sha256; cv=none; b=Rr9dTYzZuDXTmvKf8z6jf9vroa7Ik+Xy6oNKCjc2HPnMy/4qN8OZai9gEZam9iudikR614 69fixDhQwhtFUECnbAaEKocMr/jvCCvOfDI5MN4QOB/T4rs3X6IBZ3CcdjXwBU9DjQvfIA hnHLXQAwu/I0wF7p85t3xTdiTUr1kxsympQ0uqeszWHIEJ8zsPsm4sS18CZ0II/qPQ3V3Q p5G69TZCcf6gRx+tuPj5Q0mY76JHQH195mYDgyJRi8aNBEVMPmV2/t16ZXY1Qy+l5QTIVD yCFlzzHFXmL3/TNiuWVWTWNlBQBsaVHycWxZmJV4fuzFoSYfh6l6YndjHmptRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4PSVBq3tSZzdv0; Fri, 3 Mar 2023 01:05:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32315NVs008533; Fri, 3 Mar 2023 01:05:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32315NTX008532; Fri, 3 Mar 2023 01:05:23 GMT (envelope-from git) Date: Fri, 3 Mar 2023 01:05:23 GMT Message-Id: <202303030105.32315NTX008532@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John-Mark Gurney Subject: git: 13597be965b7 - main - length for the 64-bit entry is 32-bits, not 16-bits. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jmg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 13597be965b7bcc7ff2c3c0bc240f3e0acc255cf Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jmg: URL: https://cgit.FreeBSD.org/src/commit/?id=13597be965b7bcc7ff2c3c0bc240f3e0acc255cf commit 13597be965b7bcc7ff2c3c0bc240f3e0acc255cf Author: John-Mark Gurney AuthorDate: 2023-03-03 01:03:57 +0000 Commit: John-Mark Gurney CommitDate: 2023-03-03 01:03:57 +0000 length for the 64-bit entry is 32-bits, not 16-bits. Reported by: Jérôme Duval (korli on github) --- stand/libsa/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c index 15c5c7e50565..1bb78faa3b01 100644 --- a/stand/libsa/smbios.c +++ b/stand/libsa/smbios.c @@ -486,7 +486,7 @@ smbios_probe(const caddr_t addr) #ifdef HAS_SMBV3 if (isv3) { - smbios.length = SMBIOS_GET16(saddr, 0x0c); /* Structure Table Length */ + smbios.length = SMBIOS_GET32(saddr, 0x0c); /* Structure Table Length */ paddr = SMBIOS_GET64(saddr, 0x10); /* Structure Table Address */ smbios.count = -1; /* not present in V3 */ smbios.ver = 0; /* not present in V3 */