Skip to content

Updates to enable userspace ASAN for selftests/bpf on BPF CI#217

Merged
theihor merged 8 commits intomainfrom
selftests-asan
Mar 10, 2026
Merged

Updates to enable userspace ASAN for selftests/bpf on BPF CI#217
theihor merged 8 commits intomainfrom
selftests-asan

Conversation

@theihor
Copy link
Contributor

@theihor theihor commented Feb 27, 2026

No description provided.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
When SELFTESTS_BPF_ASAN is set, pass userspace address sanitizer flags
to selftests/bpf build. ASAN doesn't play well with the static build,
so make it conditional.

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
libasan is required at runtime, if selftests were built with it.

Also a few minor changes:
  - set -x in a few scripts for logging
  - set KERNEL=LATEST by default
  - cleanup $VMTEST_TOML

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor theihor force-pushed the selftests-asan branch 2 times, most recently from b30812e to a525c5b Compare March 9, 2026 21:45
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
@theihor theihor merged commit 8f56fcb into main Mar 10, 2026
17 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