Repository navigation
ci: load the tls kernel module before running tests - #79
Merged
Merged
Conversation
On Ubuntu's linux-azure kernel, CONFIG_TLS=m is built as a loadable module. The kernel only auto-loads tcp-ulp-tls on setsockopt(TCP_ULP) when the caller has CAP_NET_ADMIN, which the unprivileged GitHub Actions runner user lacks. If nothing else loaded the module at boot (e.g. on runners without Mellanox mlx5_core), setsockopt fails with ENOENT (UlpError(NotFound)). Run `sudo modprobe tls` explicitly before executing the test suite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
UlpError(NotFound)(ENOENT) CI test failure seen in the merge queue for #78 (https://github.com/rustls/ktls/actions/runs/47003012249/job/143900494986).On Ubuntu's
linux-azurekernel,CONFIG_TLS=mis built as a loadable module. In Linux (net/ipv4/tcp_ulp.c),__tcp_ulp_find_autoload()only callsrequest_module("tcp-ulp-tls")when the caller hasCAP_NET_ADMIN, which the unprivileged GitHub Actionsrunneruser lacks. On runners where nothing else pulled intlsat boot (e.g. VMs without Mellanoxmlx5_core, whoseCONFIG_MLX5_EN_TLS=ydepends ontls),setsockopt(SOL_TCP, TCP_ULP, "tls")fails withENOENT.Explicitly run
sudo modprobe tlsbefore running the tests.