tpm2_nvwrite using an offset causes a TPM error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tpm2-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The latest from tpm2-software (https:/
1) release info:
lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
2) version of the package:
apt-cache policy tpm2-tools
tpm2-tools:
Installed: 5.2-1build1
Candidate: 5.2-1build1
Version table:
*** 5.2-1build1 500
500 http://
100 /var/lib/
3) what I expected to happen:
Data to be written to a TPM's non-volatile memory at a specified offset.
4) what happened instead:
WARNING:
ERROR:esys:
ERROR: Failed to write NV area at index 0x1000002
ERROR: Tss2_Sys_
ERROR: Unable to run tpm2_nvwrite
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: tpm2-tools 5.2-1build1
ProcVersionSign
Uname: Linux 6.5.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan 31 14:14:07 2024
InstallationDate: Installed on 2024-01-16 (14 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: tpm2-tools
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks for reporting the bug.
I tried to reproduce the issue on Jammy but could not reproduce it. The following is from my session:
# tpm2_nvdefine -C o -s 32 -a "ownerread| policywrite| ownerwrite" 1
nv-index: 0x1000001
# echo "please123abc" > nv.dat
# tpm2_nvwrite -C o -i nv.dat 1
# tpm2_nvread -C o -s 32 1
please123abc
# apt-cache policy tpm2-tools archive. ubuntu. com/ubuntu jammy/universe amd64 Packages dpkg/status
tpm2-tools:
Installed: 5.2-1build1
Candidate: 5.2-1build1
Version table:
*** 5.2-1build1 500
500 http://
100 /var/lib/
It will really help us if can please give the steps that you followed to reproduce the issue.
I am marking the bug as Incomplete till then, please change the status back to New when you add the steps.