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

Try enable bound checks #6720

Open
maxtropets opened this issue Jan 6, 2025 · 1 comment
Open

Try enable bound checks #6720

maxtropets opened this issue Jan 6, 2025 · 1 comment

Comments

@maxtropets
Copy link
Collaborator

Supported from clang17 onwards, so can be done on Mariner?..

Let's do this: https://security.googleblog.com/2024/11/retrofitting-spatial-safety-to-hundreds.html

Hardening documentation: https://libcxx.llvm.org/Hardening.html

@achamayou
Copy link
Member

achamayou commented Jan 9, 2025

Worth noting that AL/Mariner builds currently use libstdcxx: https://github.com/microsoft/CCF/blob/main/.github/workflows/ci.yml#L135

CC=which clang CXX=which clang++ cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Debug -DLVI_MITIGATIONS=OFF -DUSE_LIBCXX=OFF ..

But libc++ is available:

root [ /CCF/build ]# tdnf list | grep libcxx
libcxx.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxx.x86_64 18.1.2-3.azl3 azurelinux-official-base
libcxxabi.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxxabi.x86_64 18.1.2-3.azl3 azurelinux-official-base
libcxxabi-devel.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxxabi-devel.x86_64 18.1.2-3.azl3 azurelinux-official-base
libcxxabi-static.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxxabi-static.x86_64 18.1.2-3.azl3 azurelinux-official-base
libcxx-devel.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxx-devel.x86_64 18.1.2-3.azl3 azurelinux-official-base
libcxx-static.x86_64 18.1.2-2.azl3 azurelinux-official-base
libcxx-static.x86_64 18.1.2-3.azl3 azurelinux-official-base

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

No branches or pull requests

2 participants