Skip to content

tlshd/handshake: handle the UNKNOWN_PSK_IDENTITY alert#149

Merged
chucklever merged 1 commit into
oracle:mainfrom
twilfredo:wilfred/handle-unknown-psk-ident
May 11, 2026
Merged

tlshd/handshake: handle the UNKNOWN_PSK_IDENTITY alert#149
chucklever merged 1 commit into
oracle:mainfrom
twilfredo:wilfred/handle-unknown-psk-ident

Conversation

@twilfredo
Copy link
Copy Markdown
Contributor

During TLS handshake, an endpoint may issue an UNKNOWN_PSK_IDENTITY alert if it does not recognize the PSK identifier. For example, when using NVMe TCP in-band authentication with secure concatenation, if the target resets; the host kernel attempts to reconnect using a stale PSK, which the re-initialized target no longer recognizes.

Map this specific TLS alert to EKEYREJECTED. This allows the kernel to identify that the failure is due to stale credentials, trigger key revocation, and proceed with fresh in-band authentication on the next reconnection attempt.

During TLS handshake, an endpoint may issue an UNKNOWN_PSK_IDENTITY
alert if it does not recognize the PSK identifier. For example, when using
NVMe TCP in-band authentication with secure concatenation, if the target
resets; the host kernel attempts to reconnect using a stale PSK, which
the re-initialized target no longer recognizes.

Map this specific TLS alert to EKEYREJECTED. This allows the kernel
to identify that the failure is due to stale credentials, trigger
key revocation, and proceed with fresh in-band authentication on
the next reconnection attempt.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
@hreinecke
Copy link
Copy Markdown
Contributor

That looks good.

Reviewed-by: Hannes Reinecke hare@kernel.org

Copy link
Copy Markdown
Contributor

@hreinecke hreinecke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@chucklever chucklever merged commit ddea5b0 into oracle:main May 11, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants