public inbox for tpm-protocol@lists.linux.dev
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: tpm-protocol@lists.linux.dev
Subject: Re: [PATCH] tests: add test_response_start_auth_session_no_sessions_2
Date: Tue, 2 Sep 2025 12:15:34 +0300	[thread overview]
Message-ID: <aLa1tmk62Si0sUzm@kernel.org> (raw)
In-Reply-To: <20250902012620.2790121-1-jarkko@kernel.org>

On Tue, Sep 02, 2025 at 04:26:20AM +0300, Jarkko Sakkinen wrote:
> Add a test taken from tpm2sh trace output, which reveals a bug in the
> response parser not catched by previous tests.
> 
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> ---
> This is a embarrassing critical bug and damage from refactorization
> where `tpm_response!` macro was removed which was a compilicated task.
> The bright side is that the quality of test suite also leveled up
> as consequence and missing something as critical as this will become
> factors more difficult.
> 
> Luckily response parsing it not too complicated, and this can be fixed
> quite easily. Dispatcher must be internally updated to pass the runtime
> parsed tag forward (just like it does for cc). I.e. a few macro updates
> should do.

What happened here basically was that I was so focused on command
parsing, which felt more complicated (given e.g. how authorization
area is located) that I made some really unconsidered change on
response parser.

It's easy to fix, and in the end better than having this other way
around.

BR, Jarkko

      reply	other threads:[~2025-09-02  9:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02  1:26 [PATCH] tests: add test_response_start_auth_session_no_sessions_2 Jarkko Sakkinen
2025-09-02  9:15 ` Jarkko Sakkinen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aLa1tmk62Si0sUzm@kernel.org \
    --to=jarkko@kernel.org \
    --cc=tpm-protocol@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox