mm/sw_tags: add config for no longer checking for tags 0#14114
Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom Oct 12, 2024
W-M-R:swtags
Merged
mm/sw_tags: add config for no longer checking for tags 0#14114xiaoxiang781216 merged 1 commit intoapache:masterfrom W-M-R:swtags
xiaoxiang781216 merged 1 commit intoapache:masterfrom
W-M-R:swtags
Conversation
Contributor
Author
|
#define kasan_random_tag() (1 + rand() % ((1 << (64 - KASAN_TAG_SHIFT)) - 1)) : This macro will only generate values from 1-255, not 0 or 256 |
acassis
approved these changes
Oct 11, 2024
Contributor
|
let's ignore macOS ci temp break. |
xiaoxiang781216
approved these changes
Oct 11, 2024
1. When dynamically loading, the read-only data of arm64 architecture is accessed through PC offset. When opening the tag kasan, because the PC value does not have a tag, accessing the read-only data will be detected with a tag mismatch error. 2. uninitial heap use 0xff poison, initial heap use 1-254 unpoison. Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
xiaoxiang781216
approved these changes
Oct 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When dynamically loading, the read-only data of arm64 architecture is accessed through PC offset. When opening the tag kasan, because the PC value does not have a tag, accessing the read-only data will be detected with a tag mismatch error.
Impact
No
Testing
No