fix(quote): backport PERFMON reserved-bit fix to v0.5.x - #220
Merged
Conversation
kvinwang
force-pushed
the
backport/tdattributes-v15-v0.5.x
branch
3 times, most recently
from
August 25, 2026 02:18
67c7925 to
89f4f65
Compare
…arse The & 0x7F mask was incorrectly applied to input[4] (bit 39, a reserved bit that should be checked) instead of input[7] (bit 63 = PERFMON, which should be excluded from reserved_other). This caused PERFMON=1 to be falsely flagged as 'Reserved bits in TD attributes are set'. The fix moves & 0x7F from input[4] to input[7]: - input[7] & 0x7F: excludes PERFMON (bit 63) from reserved_other ✓ - input[4] (no mask): bit 39 is now correctly checked as reserved ✓ Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
kvinwang
force-pushed
the
backport/tdattributes-v15-v0.5.x
branch
from
August 25, 2026 02:26
89f4f65 to
7a44914
Compare
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
Backport #218 to the
release-v0.5.xbranch created fromv0.5.2.PERFMON) fromreserved_otherTesting
cargo fmt --checkcargo test --lib(35 passed)