Skip to content

main green and the batch: BearSSL pin, Clang 18 sanitizer headers, HPKE, RFC 9001 tests, z-base-32 - #65

Merged
pinhopro merged 12 commits into
mainfrom
main-green
Dec 4, 2026
Merged

pinhopro merged 12 commits into
mainfrom
main-green

Conversation

@pinhopro

@pinhopro pinhopro commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes three pre-existing failures that main's CI showed (run 47012218351), so main can go fully green. It also carries the whole pending batch, verified locally and landed with this one CI run (the owner's decision of 2026-12-04).

  1. crypto message tests on Clang 18 / Apple Clang 17 (ph_removed, async_seal_removed, seal_removed_call): fixed in crypto#22, gitlink bumped here.

  2. secure declassify_compile_msan (both variants) on the Clang 18 container lane failed with 'sanitizer/msan_interface.h' file not found. The container image installed clang-18 but not libclang-rt-18-dev, which is where Ubuntu ships Clang's sanitizer headers; the own lanes already install that package. I fixed the image rather than the test, so the test really compiles on Clang 18, as it does on Clang 22 and Apple Clang:

    • The Dockerfile installs libclang-rt-18-dev from the same snapshot.
    • matrix_test pins the package, and AGENTS.md lists it.
    • The new pins come from the prepare-environments run 47067095494 (all pins verified with anonymous pulls).
    • The published native image compiles the test with and without exceptions. The old image fails on the missing header.
  3. codecs dudect bech32_stream_decode on AMD EPYC 9V74: the cause was the harness's preparation, not the library. Fixed in codecs#4 (the probe table is in that PR), gitlink bumped here.

  4. Site job: two library page titles exceeded assemble.py's 60-character limit (main run 47116123227), so the site never deployed.

    • codecs#5: "codecs: bytes and values to text and back, for C++" (59 with " - webcpp").
    • secure#3: "secure: constant time and secrets in memory for C++" (60).
    • Both pages were built locally with b2, and assemble.py's title check finds no fault.
  5. crypto constant-time on wasip2: constant_time_equal read |t| 89.80 to 119.54 (same run).

    • Cause: secure's volatile accumulator. Under wasmtime it is a linear-memory store and load at each byte, and on AMD EPYC 9V74 that round trip took longer for a nonzero value than for zero. It reproduced only on 9V74, only under wasmtime.
    • Fix (secure#3): the accumulator is a register through value_barrier, which is now the asm statement on WebAssembly too.
    • Probed on 16 hosted runners: 0.9 to 2.9 on all five 9V74s afterwards, while the old form still reads 52 to 91 there. The threshold is unchanged.
  6. BearSSL ctgrind/ctgrind_space on check_scalar: the pin moves to our fork's f8a2f3d (upstream 7bea48e plus the bits2int and P-256 scalar-check patches, both submitted upstream); crypto#25 and hash#19 follow it.

  7. wasip2 constant_time_equal, again on 9V74: secure#4 compares 64-bit words (|t| 0.8 to 4.0 there), and crypto#26 makes every dudect_bearssl case printed, not judged, on WASI targets.

The batch

  • HPKE (RFC 9180): crypto#27 (which also brings crypto#24's RFC 9001 tests and crypto#26), hash#20 (hash headers after <windows.h>), and webcpp#66's CFRG vectors as /third_party//hpke.
  • z-base-32: codecs at codecs#6's merge (85061b2), with AGENTS.md, CODING-GUIDELINES and the release notes.

Local verification of this head

  • Native clang (macOS): crypto, hash and codecs tests and examples, green.
  • dudect_bearssl release, native and wasip2: pass.
  • crypto, hash and codecs documentation builds: green.
  • Tool tests (third_party, crypto and codecs Jamfiles, dudect judge, doc): ok.
  • macOS clang-tidy and the Linux lint in Docker over the touched files: clean.

🤖 Generated with Claude Code

R added 4 commits December 3, 2026 11:11
…-18-dev)

secure's declassify_compile_msan, a compile of declassify.hpp with MemorySanitizer's marks on
every native clang lane, failed on the Clang 18 container lane in both its variants
(run 47012218351): 'sanitizer/msan_interface.h' file not found. The image installed clang-18
alone, and Ubuntu ships Clang's sanitizer headers in libclang-rt-18-dev, as the own lanes'
packages already say; Clang 22's and Apple Clang's lanes have them. The image installs it from
the same snapshot, so that the test compiles there as it does on the other lanes. The Dockerfile's
header names why, and wraps its lines at 100 columns.
…clang-rt-18-dev

Promoted from the prepare-environments run 47067095494 at 38487b0, which built the native
image from the new recipe, republished the tool images from their unchanged recipes and
verified every pin with anonymous pulls. The published native image compiles secure's
declassify_compile_msan, with and without exceptions, where the previous one stops at
'sanitizer/msan_interface.h' file not found.
…n pull requests

crypto c3c584b (crypto#22): the removed-name message tests hold on every clang the CI runs.
codecs d2942b2 (codecs#4): dudect's bech32 cases prepare their texts by the constant-time
conversion.
…n-2 pull requests

secure d7bbab4 (secure#3): constant_time_equal accumulates in a register through value_barrier,
which is the asm statement on WebAssembly too (crypto's wasip2 dudect on an AMD EPYC 9V74), and
the page's title fits the site's 60 characters.
codecs 2577892 (codecs#5): the page's title fits the site's 60 characters.
@pinhopro pinhopro changed the title main green: Clang 18 sanitizer headers in the container image; crypto and codecs bumps main green: Clang 18 sanitizer headers in the container image; crypto, codecs and secure bumps Dec 3, 2026
R added 8 commits December 4, 2026 00:09
…8e, the bits2int fix and P-256's scalar-check fix, both submitted upstream); crypto and hash canaries follow
…503c5) as /third_party//hpke, test data of crypto's HPKE

The CFRG's test-vectors.json, Appendix A's source, pinned shallow as
third_party/libs/hpke: /third_party//hpke gives a test its directory by
WEBCPP_TEST_HPKE, wasmtime is given it on WASI, and a test runs again when
the file changes. A build that names it without the checkout stops with the
command that checks it out. The repository is an IETF Contribution under the
IETF Trust's Legal Provisions (code components under the Simplified BSD
License); the submodule redistributes nothing.

The pin and the refusal are tested in tools/test/third_party_test.py; the
guidelines' third-party table, AGENTS.md's lists and the release notes name
it.
…l requests (crypto#25, hash#19, secure#4), which follow BearSSL's pin and read constant_time_equal word by word
… into main-green

# Conflicts:
#	libs/codecs
…sts and crypto#26's WASI rule for dudect_bearssl) and hash at hash#20's merge
@pinhopro pinhopro changed the title main green: Clang 18 sanitizer headers in the container image; crypto, codecs and secure bumps main green and the batch: BearSSL pin, Clang 18 sanitizer headers, HPKE, RFC 9001 tests, z-base-32 Dec 4, 2026
@pinhopro
pinhopro merged commit cb0bf50 into main Dec 4, 2026
383 of 385 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.

1 participant