From nobody Fri May 17 10:09:00 2024 X-Original-To: freebsd-current@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 4VgjNm4Q6Vz5Ktpt for ; Fri, 17 May 2024 10:09:12 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VgjNm3X5Hz519p; Fri, 17 May 2024 10:09:12 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715940552; 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; bh=ZBw5cBbY2kwVEnI2yF9qpUMpkKwA8IHbF/EQaS3lQBk=; b=sbWij5dSgL3TujVzpit75opUiju51NBsTNnK/2IjlzrY7/NJPS1MRzSwgdPcZf5B//eqba gt5yOEr1Ly2LG0sWV44Z0gPXD5UIQ7klisj4uvhD70jFVCNLfmclZNfdIKXUyq1LPqUqKc pFSL7EwdwoP2uQALU+rqZNnILt492cLJNKdaTaNQsJ4X5uTmSxXeL6NGumoz+GzT4x8h71 ItVx5QZ4NUT/jzStaCmTwq8uS4bHnn4z3e5X7rIH5k+v+cU62zR+LtGs16sxlMrXxFXTy0 RfckU+oijtqkTbMqR3sFb6fh4OsjxpcexHWrDvLDZiX/+pVYzh+Ni384uA7NxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715940552; a=rsa-sha256; cv=none; b=BAq5YgaBcmNSzgfu2gIJMvjpEonkTUGFtJd+kePdAVSKmWdZkXm2BBJUBTazzMOtIoWzdy oN60aFnjpGZLvRYGZTyZYfhuD4sKpr3ouYDcxe/XhKGWDDwZ7Evg48q0ItzUUkvhAfJfQx B8GzcSLhwLbJzI/TvTWMDNDljVmWGP4SyJbEcfdsbwR+17Za09u+Im9SvB7mRwVvVwEkdN 8hnC/cUTCsfEwmVuKMq/6VOR3KmFK7xaW8fUeuCaAnUKEIQ+rF01iVytUsAmSf1XE6rfo4 m2oGqoEeiNx98Di7iYclNip7EyRZ822V56dWSoi9/1GW5+SfzO9cm+TBRYgtpg== 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=1715940552; 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; bh=ZBw5cBbY2kwVEnI2yF9qpUMpkKwA8IHbF/EQaS3lQBk=; b=FEoWRFAGFFbmkL/5FAHHjzMNsGNll+KshGYdSd1+GeUzjZV3xoJ7DPFwP93ZRBRIEUKIhC vTEsH49IdBYckEuNUxrDlGXYZLXdmHTAkKGxZ7+UaAgSj4hABoqUTvfqcClG+9mDDEEdi7 Mb5AFmAKLCKdodMrg5QZ/qCsOt/jqQHKBKcaYspMoH9fCGfpHp1Mk5qUrD7LWvMPpweMy6 /bq/QPpkCo+2jws7LL1fS0Y1gCUsjy1Ua4fkLve4NaKwC0OyWJrQgenfZ6nHYdjBfUU59f +3bFkpbvwAchFyYLvAUErpXbnoAmM/l+CuLfzsDWRwsfhF9cHPGvUOho7YyEFg== Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VgjNm30NQz1PPW; Fri, 17 May 2024 10:09:12 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-43df732cb05so646361cf.0; Fri, 17 May 2024 03:09:12 -0700 (PDT) X-Gm-Message-State: AOJu0Ywab9vkSqLAFhZD2Bj4yZQKXDn7TNQGQomjbEDUvKNy8ishDkHa bWSxby6cMXkWQ4fn0oIjlwnbc92MgoqNY2SkPdAi/dNQaytecAq1kdS8YmY9b7vDSLYJ+zGYU86 2LWQE8sF5GX5TMWpSD5OhWRz7bV0= X-Google-Smtp-Source: AGHT+IHt3Qyp0IF6rG44prhfAAgbsn3QF3MPftABIp1VTxcEMG2UyFBCl/CavMKTobd9mz1hp6RFkidqIA8YmNcLLWY= X-Received: by 2002:ac8:7d54:0:b0:43e:3bc9:b5f2 with SMTP id d75a77b69052e-43e3bc9b87fmr55547031cf.64.1715940551766; Fri, 17 May 2024 03:09:11 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 From: Nuno Teixeira Date: Fri, 17 May 2024 11:09:00 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: kldload tpm: Fail to load: "link_elf_obj: symbol tpm_bus_driver undefined" To: FreeBSD CURRENT Cc: Justin Hibbits Content-Type: multipart/alternative; boundary="0000000000000b401e0618a38ba5" --0000000000000b401e0618a38ba5 Content-Type: text/plain; charset="UTF-8" Hello, tpm kernel module fails to load starting on main from May 9. Updated today and same error: ``` $ kldload tpm kldload: an error occurred while loading module tpm. Please check dmesg(8) for more details. (dmesg) link_elf_obj: symbol tpm_bus_driver undefined linker_load_file: /boot/kernel/tpm.ko - unsupported file type ``` I believe it is related to: --- commit 10eea8dc8c4f3d2a3495e7fb08837d91adf465e9 Author: Justin Hibbits Date: Thu May 9 15:27:35 2024 -0400 tpm20: Support partial reads Summary: In some cases the TPM utilities may read only a partial block, instead of a full block. If a new command starts while in the middle of a read it may cause the TPM to go catatonic and no longer respond to SPI. Reviewed by: kd Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D45140 --- I use tpm for bhyve/Win11. Thanks, -- Nuno Teixeira FreeBSD UNIX: Web: https://FreeBSD.org --0000000000000b401e0618a38ba5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

tpm kernel module fai= ls to load starting on main from May 9.
Updated today and same er= ror:

```
$ kldload tpm
kld= load: an error occurred while loading module tpm. Please check dmesg(8) for= more details.

(dmesg)
link_elf_obj: sym= bol tpm_bus_driver undefined
linker_load_file: /boot/kernel/tpm.ko - uns= upported file type
```

I believe it is r= elated to:

---
commit 10eea8dc8c4f3d= 2a3495e7fb08837d91adf465e9
Author: Justin Hibbits <jhibbits@FreeBSD.o= rg>
Date: =C2=A0 Thu May 9 15:27:35 2024 -0400

=C2=A0 =C2=A0 t= pm20: Support partial reads

=C2=A0 =C2=A0 Summary:
=C2=A0 =C2=A0 = In some cases the TPM utilities may read only a partial block, instead
= =C2=A0 =C2=A0 of a full block.=C2=A0 If a new command starts while in the m= iddle of a read
=C2=A0 =C2=A0 it may cause the TPM to go catatonic and n= o longer respond to SPI.

=C2=A0 =C2=A0 Reviewed by: =C2=A0 =C2=A0kd<= br>=C2=A0 =C2=A0 Obtained from: =C2=A0Juniper Networks, Inc.
=C2=A0 =C2= =A0 Differential Revision: h= ttps://reviews.freebsd.org/D45140
---

I use tpm for bhyve/Win11.

Thanks,
--
<= font color=3D"#888888">Nuno Teixeira
FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://Fr= eeBSD.org
--0000000000000b401e0618a38ba5--