Re: [PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-26 Thread Daniel Kiper
On Mon, Mar 10, 2025 at 03:48:16PM +0800, Gary Lin via Grub-devel wrote: > On Thu, Mar 06, 2025 at 08:46:52PM +0100, Yann Diorcet wrote: > > When tpm2_submit_command_real is called for a retry, the content of > > out buffer can already be set with previous grub_tcg2_submit_command > > call's reply.

Re: [PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-13 Thread Daniel Kiper
On Thu, Mar 06, 2025 at 08:46:52PM +0100, Yann Diorcet wrote: > When tpm2_submit_command_real is called for a retry, the content of > out buffer can already be set with previous grub_tcg2_submit_command > call's reply. Restore previous offset allowing the next > tpm2_submit_command_real calls to su

Re: [PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-10 Thread Gary Lin via Grub-devel
On Thu, Mar 06, 2025 at 08:46:52PM +0100, Yann Diorcet wrote: > When tpm2_submit_command_real is called for a retry, the content of > out buffer can already be set with previous grub_tcg2_submit_command > call's reply. Restore previous offset allowing the next > tpm2_submit_command_real calls to su

Re: [PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-06 Thread Ross Philipson via Grub-devel
On 3/6/25 11:46 AM, Yann Diorcet wrote: When tpm2_submit_command_real is called for a retry, the content of out buffer can already be set with previous grub_tcg2_submit_command call's reply. Restore previous offset allowing the next tpm2_submit_command_real calls to succeed. This solves the issu

[PATCH] tss2: restore buffer offset on tpm2_submit_command retry

2025-03-06 Thread Yann Diorcet
When tpm2_submit_command_real is called for a retry, the content of out buffer can already be set with previous grub_tcg2_submit_command call's reply. Restore previous offset allowing the next tpm2_submit_command_real calls to succeed. This solves the issues occurring during TPM_CC_Load command on