Skip to content

Add scudo sanitizer support#1253

Open
bkhouri wants to merge 1 commit intoswiftlang:mainfrom
bkhouri:t/main/gh886_add_scudo_sanitizer_support
Open

Add scudo sanitizer support#1253
bkhouri wants to merge 1 commit intoswiftlang:mainfrom
bkhouri:t/main/gh886_add_scudo_sanitizer_support

Conversation

@bkhouri
Copy link
Copy Markdown
Contributor

@bkhouri bkhouri commented Mar 26, 2026

Add support for Scudo sanitizer.

Fixes #886
Linked PR: swiftlang/swift-package-manager#9904

@bkhouri bkhouri self-assigned this Mar 26, 2026
@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from b015d0b to e8a5172 Compare April 2, 2026 15:38
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

chore (blocking): revert changes to this file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

chore (blocking): Revert changes to this file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

chore (blocking): revert changes to this file

if scope.evaluate(BuiltinMacros.ENABLE_ADDRESS_SANITIZER)
|| scope.evaluate(BuiltinMacros.ENABLE_THREAD_SANITIZER)
|| scope.evaluate(BuiltinMacros.ENABLE_UNDEFINED_BEHAVIOR_SANITIZER)
|| scope.evaluate(BuiltinMacros.ENABLE_MEMORY_TAGGING_ADDRESS_SANITIZER)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should we revert this change, or add ENABLED_SCUDO_SANITIZER here?

Suggested change
|| scope.evaluate(BuiltinMacros.ENABLE_MEMORY_TAGGING_ADDRESS_SANITIZER)
|| scope.evaluate(BuiltinMacros.ENABLE_MEMORY_TAGGING_ADDRESS_SANITIZER)
|| scope.evaluate(BuiltinMacros.ENABLE_SCUDO_SANITIZER)

@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from e8a5172 to 1ac8fb7 Compare April 2, 2026 17:25
bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Apr 2, 2026
@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from 1ac8fb7 to 6806d05 Compare April 6, 2026 13:47
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 6, 2026

@swift-ci test

@bkhouri bkhouri marked this pull request as ready for review April 6, 2026 13:48
@bkhouri bkhouri enabled auto-merge April 6, 2026 13:48
@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from 6806d05 to 3158317 Compare April 7, 2026 01:06
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 7, 2026

@swift-ci test

@bkhouri bkhouri requested a review from owenv April 7, 2026 01:06
};
AdditionalLinkerArgs = {
YES = (
"$(LD_SCUDO_SANITIZER)",
Copy link
Copy Markdown
Collaborator

@owenv owenv Apr 7, 2026

Choose a reason for hiding this comment

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

LD_SCUDO_SANITIZER is a boolean setting so I think this will add YES to the link command line in addition to the actual flags

Copy link
Copy Markdown
Contributor Author

@bkhouri bkhouri Apr 7, 2026

Choose a reason for hiding this comment

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

Right. Would "$($(LINKER_DRIVER)_LD_SCUDO_SANITIZER)" work in this case?

@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from 3158317 to 2b7c1af Compare April 7, 2026 14:00
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 7, 2026

@swift-ci test

@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from 2b7c1af to 777d4fa Compare April 7, 2026 14:10
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 7, 2026

@swift-ci test

1 similar comment
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 7, 2026

@swift-ci test

@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from 777d4fa to e52d8a7 Compare April 8, 2026 15:56
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 8, 2026

@swift-ci test

Add support for Scudo sanitizer.

Fixes swiftlang#866
@bkhouri bkhouri force-pushed the t/main/gh886_add_scudo_sanitizer_support branch from e52d8a7 to c5a7d0a Compare April 8, 2026 20:02
@bkhouri
Copy link
Copy Markdown
Contributor Author

bkhouri commented Apr 8, 2026

@swift-ci test

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.

Add support for scudo sanitizer

2 participants