Skip to content
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

util: fine grained deep asan support in spad #4196

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cali-jumptrading
Copy link
Contributor

@cali-jumptrading cali-jumptrading commented Feb 12, 2025

Adds fine-grained deep asan support in spad by making all allocations in spad have a minimum alignment of 8 bytes when DEEPASAN is enabled / a minimum alignment of 4 bytes when MSAN is enabled.

Also note that manual asan poisoning must be on 8-byte aligned addresses, but can be done on arbitrary sizes.

Currently, an MSAN build does not compile... will have to punt this to a later issue.

@cali-jumptrading cali-jumptrading force-pushed the cali/spad-deep-asan-clean branch 5 times, most recently from 19f641a to 8b2c34f Compare February 12, 2025 19:16
@cali-jumptrading cali-jumptrading marked this pull request as ready for review February 12, 2025 19:59
@cali-jumptrading cali-jumptrading force-pushed the cali/spad-deep-asan-clean branch from 6f56694 to 6f31bda Compare February 12, 2025 20:21
@cali-jumptrading cali-jumptrading force-pushed the cali/spad-deep-asan-clean branch from 6f31bda to 3b19759 Compare February 12, 2025 20:24
}

FD_FN_UNUSED static void
test_spad_deepasan( fd_spad_t * spad ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

@cali-jumptrading cali-jumptrading force-pushed the cali/spad-deep-asan-clean branch from 3b19759 to 90f6f6d Compare February 12, 2025 22:18
Copy link
Contributor

@ibhatt-jumptrading ibhatt-jumptrading left a comment

Choose a reason for hiding this comment

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

looks good

src/util/spad/fd_spad.c Outdated Show resolved Hide resolved
src/util/spad/fd_spad.c Outdated Show resolved Hide resolved
src/util/spad/fd_spad.c Show resolved Hide resolved
@cali-jumptrading cali-jumptrading force-pushed the cali/spad-deep-asan-clean branch from b75297b to 25444bb Compare February 14, 2025 22:50
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.

4 participants