Skip to content

pkcs11-provider: update to fix tls test [4.0] - #31546

Closed
bukka wants to merge 2 commits into
openssl:openssl-4.0from
bukka:pkcs11-provider-tls-test-40
Closed

bukka wants to merge 2 commits into
openssl:openssl-4.0from
bukka:pkcs11-provider-tls-test-40

Conversation

@bukka

@bukka bukka commented Jun 16, 2026

Copy link
Copy Markdown
Member

The TLS test has been failing due to changes in kryoptic introduced in latchset/kryoptic#436 . This was a bug in pkcs11-provider that was fixed in openssl-projects/pkcs11-provider#722 . So we need to update provider to fix that test.

@openssl-machine openssl-machine added the approval: review pending This pull request needs review by a committer label Jun 16, 2026
@bukka bukka changed the title pkcs11-provider: initial CI setup pkcs11-provider: tls test [4.0] Jun 16, 2026
@bukka
bukka force-pushed the pkcs11-provider-tls-test-40 branch 5 times, most recently from 47486d8 to 88f5e81 Compare June 16, 2026 16:59
The TLS test has been failing due to changes in kryoptic introduced in
latchset/kryoptic#436 . This was a bug in
pkcs11-provider that was fixed in
openssl-projects/pkcs11-provider#722 . So we
need to update provider to fix that test.
@bukka
bukka force-pushed the pkcs11-provider-tls-test-40 branch from 88f5e81 to e20f9fb Compare June 16, 2026 17:07
@bukka bukka changed the title pkcs11-provider: tls test [4.0] pkcs11-provider: update to fix tls test [4.0] Jun 16, 2026
@bukka
bukka marked this pull request as ready for review June 16, 2026 17:08
@bukka
bukka requested a review from quarckster as a code owner June 16, 2026 17:08
@bukka bukka added branch: 3.0 Applies to openssl-3.0 branch (EOL) branch: 3.4 Applies to openssl-3.4 branch: 3.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 labels Jun 16, 2026
@bukka bukka moved this to Waiting Review in Development Board Jun 16, 2026
@bukka bukka self-assigned this Jun 16, 2026
@bukka bukka added triaged: bug The issue/pr is/fixes a bug severity: urgent Fixes an urgent issue (exempt from 24h grace period) labels Jun 16, 2026
@t8m t8m added the tests: exempted The PR is exempt from requirements for testing label Jun 16, 2026
t8m
t8m previously approved these changes Jun 16, 2026

@t8m t8m left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK with urgent

@t8m
t8m requested a review from a team June 16, 2026 18:01
beldmit
beldmit previously approved these changes Jun 16, 2026

@beldmit beldmit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM if tests passed

@github-project-automation github-project-automation Bot moved this from Waiting Review to Waiting Merge in Development Board Jun 16, 2026
@openssl-machine openssl-machine added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jun 16, 2026
simo5
simo5 previously approved these changes Jun 16, 2026

@simo5 simo5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@t8m

t8m commented Jun 16, 2026

Copy link
Copy Markdown
Member

@beldmit @simo5 can you please say if you're OK with this being urgent CI fix?

@beldmit

beldmit commented Jun 16, 2026

Copy link
Copy Markdown
Member

Agree with urgent

@nhorman

nhorman commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

https://github.com/openssl/openssl/actions/runs/27634776257/job/81718916892?pr=31546

Looks like you need to drop the two patches in test/recipes/95-test_external_pkcs11_provider_data/patches

It makes sense since you updated to a version of pkcs11_provider which already carries those changes.

@bukka

bukka commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

@nhorman this is for 4.0 and lower branches where tls test is not disabled and works. It is disabled only in mater which is I guess because of changes introduced in #31018 that are for master only.

Why should I drop any patches here?

@nhorman

nhorman commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@nhorman this is for 4.0 and lower branches where tls test is not disabled and works. It is disabled only in mater which is I guess because of changes introduced in #31018 that are for master only.

Why should I drop any patches here?

Because you have updated the pkcs11 submodule to a level for which patches that do exist on the target branches no longer apply.

@bukka

bukka commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

But there has never been patches on openssl-4.0 branch so it's unrelated to this PR.

Are you talking about #31522 which is for master. It seems to me that patches normally apply there and master is passing.

@nhorman

nhorman commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

no, I'm talking about this PR, which is targeted to 4.0:

nhorman@hmsbeagle:~/git/worktrees/work1$ git branch | grep \*
* openssl-4.0
nhorman@hmsbeagle:~/git/worktrees/work1$ cd test/recipes/95-test_external_pkcs11_provider_data/patches/

nhorman@hmsbeagle:~/git/worktrees/work1/test/recipes/95-test_external_pkcs11_provider_data/patches$ ls

0001-Fix-direct-ASN1_STRING-access-in-encoder.c.patch  0002-Fix-direct-ASN1-STRING-access-in-objects.c.patch

nhorman@hmsbeagle:~/git/worktrees/work1/test/recipes/95-test_external_pkcs11_provider_data/patches$ 

If you look at the CI logs from this PR:
https://github.com/openssl/openssl/actions/runs/27634776257/job/81718916892?pr=31546

You'll see those patches silently fail to apply:

# /__w/openssl/openssl/test-runs/test_external_pkcs11_provider/../../test/recipes/95-test_external_pkcs11_provider_data
error: patch failed: src/encoder.c:646
error: src/encoder.c: patch does not apply
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
# Applying: Fix direct ASN1_STRING access in encoder.c
# Patch failed at 0001 Fix direct ASN1_STRING access in encoder.c

its not hurting anything right now, as they just silently fail and the code builds, but since you updated the pkcs11 submodule to a commit level that now contains those patches, you should drop the patches from the list here.

@bukka
bukka dismissed stale reviews from simo5, beldmit, and t8m via 50d9369 June 16, 2026 19:21
@esyr esyr added the branch: 4.0 Applies to openssl-4.0 label Jun 16, 2026
@openssl-machine openssl-machine added approval: review pending This pull request needs review by a committer and removed approval: done This pull request has the required number of approvals labels Jun 16, 2026
@bukka

bukka commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

ah ok I got it now. I thought that you are talking about that TLS patch and missed those. Just deleted them.

@bukka bukka removed branch: 3.0 Applies to openssl-3.0 branch (EOL) branch: 3.4 Applies to openssl-3.4 labels Jun 16, 2026
@bukka

bukka commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

So the second commit is just for 4.0 (that's why the failures) but the first one should apply to 3.5 and 3.6 where are no patches. I removed 3.0 and 3.4 as it doesn't have pkcs11_provider external test.

@mattcaswell mattcaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Agree urgent

@openssl-machine openssl-machine added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jun 17, 2026

@mbroz mbroz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok with urgent

@mattcaswell

Copy link
Copy Markdown
Member

Pushed to 4.0 and 3.6.

@bukka There is a conflict cherry-picking to 3.5. We need something different there.

@github-project-automation github-project-automation Bot moved this from Waiting Merge to Done in Development Board Jun 17, 2026
openssl-machine pushed a commit that referenced this pull request Jun 17, 2026
The TLS test has been failing due to changes in kryoptic introduced in
latchset/kryoptic#436 . This was a bug in
pkcs11-provider that was fixed in
openssl-projects/pkcs11-provider#722 . So we
need to update provider to fix that test.

Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Milan Broz <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
MergeDate: Wed Jun 17 08:07:21 2026
(Merged from #31546)
openssl-machine pushed a commit that referenced this pull request Jun 17, 2026
Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Milan Broz <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
MergeDate: Wed Jun 17 08:07:24 2026
(Merged from #31546)
openssl-machine pushed a commit that referenced this pull request Jun 17, 2026
The TLS test has been failing due to changes in kryoptic introduced in
latchset/kryoptic#436 . This was a bug in
pkcs11-provider that was fixed in
openssl-projects/pkcs11-provider#722 . So we
need to update provider to fix that test.

Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Milan Broz <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
MergeDate: Wed Jun 17 08:07:21 2026
(Merged from #31546)

(cherry picked from commit dd19d23)
@bukka

bukka commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

@mattcaswell the pkcs11-provider tests were actually completely disabled there because of some old PQC sigalgs issue. I re-enabled them and used the same CI like in other branches which seems to pass now: #31556 . That one is not urgent because CI wasn't broken there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: 3.5 Applies to openssl-3.5 branch: 3.6 Applies to openssl-3.6 branch: 4.0 Applies to openssl-4.0 severity: urgent Fixes an urgent issue (exempt from 24h grace period) tests: exempted The PR is exempt from requirements for testing triaged: bug The issue/pr is/fixes a bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

10 participants