[Bug 2051876] Re: tpm2_nvwrite using an offset causes a TPM error

2024-03-15 Thread Sudip Mukherjee
Thanks for testing Andrew.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051876

Title:
  tpm2_nvwrite using an offset causes a TPM error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tools/+bug/2051876/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2051876] Re: tpm2_nvwrite using an offset causes a TPM error

2024-03-15 Thread Andrew Oswald
With the advent of 22.04.4, this issue seems to have been resolved.

Thanks again for looking into it, Sudip!  =)

** Changed in: tpm2-tools (Ubuntu)
   Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051876

Title:
  tpm2_nvwrite using an offset causes a TPM error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tools/+bug/2051876/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2051876] Re: tpm2_nvwrite using an offset causes a TPM error

2024-03-14 Thread Andrew Oswald
Hello again, Sudip, hope this message finds you well!

I attempted to recreate the issue using a cert whose footprint exceeds
the 1,024 byte TPM data bus by using two tpm2_nvwrite commands (the
second of which specifying --offset=1024) and I'm happy to report that
it's working!

However, we were experiencing the issue on HP gear and this is a Dell
laptop.. so I still need to test it on HP.

thanks again!
-andy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051876

Title:
  tpm2_nvwrite using an offset causes a TPM error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tools/+bug/2051876/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2051876] Re: tpm2_nvwrite using an offset causes a TPM error

2024-03-13 Thread Andrew Oswald
Thanks for looking into this, Sudip!  I will need to write up explicit
instructions, but the issue only shows up when you attempt to write to
an offset, which (I would presume) is why your test didn't produce any
issues.  My usecase is storing a DER encoded x509 certificate whose
footprint exceeds the TPM data bus size, thus requiring multiple
tpm2_nvwrite calls, with any call other than the initial, requiring the
--offset flag and the appropriate offset starting point.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051876

Title:
  tpm2_nvwrite using an offset causes a TPM error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tools/+bug/2051876/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2051876] Re: tpm2_nvwrite using an offset causes a TPM error

2024-03-13 Thread Sudip Mukherjee
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: 0x101

# 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
tpm2-tools:
  Installed: 5.2-1build1
  Candidate: 5.2-1build1
  Version table:
 *** 5.2-1build1 500
500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
100 /var/lib/dpkg/status

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.

** Changed in: tpm2-tools (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2051876

Title:
  tpm2_nvwrite using an offset causes a TPM error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tpm2-tools/+bug/2051876/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs