-
Notifications
You must be signed in to change notification settings - Fork 51
Add di-sanitizer feature, allowing to disable DI sanitization
#320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
0ad0afb to
18fda8c
Compare
tamird
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tamird reviewed 2 of 3 files at r1, 7 of 7 files at r2, 9 of 14 files at r3, all commit messages.
Reviewable status: 13 of 18 files reviewed, 1 unresolved discussion
-- commits line 9 at r1:
are you going to send that patch? 🍿
tests/sanitizer/btf/assembly/auxiliary/loop-panic-handler.rs line 1 at r3 (raw file):
// no-prefer-dynamic
can these various files that are copies be symlinks instead?
It was never necessary in the first place. There is no place in the kernel that enforces BTF map structs themselves to be anonymous. Only pointer types (that are members of BTF maps) have to be anonymous, but that's handled by a separate fixup. BTF maps work just fine without it.
18fda8c to
da10a1e
Compare
|
Something fishy is going on with apt packages. The job that uses LLVM 21.1.5 from packages: https://github.com/aya-rs/bpf-linker/actions/runs/19110300914/job/54605380603?pr=320 fails with: Given that the "source" job uses our fork https://github.com/aya-rs/llvm-project, which currently is LLVM 21.1.3 with my patches applied, I though there is some regression in 21.1.5, but... I'm not able to reproduce that with LLVM built from source from the upstream tag https://github.com/llvm/llvm-project/releases/tag/llvmorg-21.1.5. And the BTF of I was thinking about proposing an upgrade to LLVM 21.1.5 to the Rust fork of LLVM https://github.com/rust-lang/llvm-project/tree/rustc/21.1-2025-08-01, but I will do that after solving that mystery. |
|
OK, mystery solved. The current "21.1.5" deb packages from apt.llvm.org are not made from the actual 21.1.5 release (that was cut 2 days ago), but from some git snapshot of the https://apt.llvm.org/jammy/pool/main/l/llvm-toolchain-21/ 🤡 I will re-enable fixups for the apt variant and remove them once packages are fresh enough to actually contain my fixes. |
|
Jeez that's frustrating behavior from the LLVM apt maintainers. |
da10a1e to
3d8c710
Compare
`assembly/auxiliary/loop-panic-handler.rs` and `btf/assembly/auxiliary/loop-panic-handler.rs` had exactly the same content. Instead of keeping copies, make a symlink.
LLVM 21.1.5 contains fixes that emit correct BTF[0] without the need to sanitize it, except from the name fixup that: 1) Is going to be fixed up in Aya: * aya-rs/aya#1382 2) Should be fixed in the kernel. Introduce the `di-sanitizer` feature, that explicitly activates the use of `DISanitizer`. Enable it by default for now, but run Aya integration tests without it. [0] llvm/llvm-project#165154
3d8c710 to
2423a99
Compare
vadorovsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 4 of 19 files reviewed, 1 unresolved discussion (waiting on @tamird)
Previously, tamird (Tamir Duberstein) wrote…
are you going to send that patch? 🍿
Yes, probably some time this week. 😅
tests/sanitizer/btf/assembly/auxiliary/loop-panic-handler.rs line 1 at r3 (raw file):
Previously, tamird (Tamir Duberstein) wrote…
can these various files that are copies be symlinks instead?
Yes, done
tamird
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tamird reviewed 14 of 14 files at r4, 14 of 14 files at r6, 1 of 1 files at r7, 14 of 14 files at r8, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @vadorovsky)
LLVM 21.1.5 contains fixes that emit correct BTF[0] without the need to sanitize it, except from the name fixup that:
Introduce the
di-sanitizerfeature, that explicitly activates the use ofDISanitizer. Enable it by default for now, but run Aya integration tests without it.[0] llvm/llvm-project#165154
This change is