Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: Initialize stxr_status in asm in vm_do_cheri_revoke()
If the capability under test changes between the initial load (done to clear the tag before storing it) and the load-link, the initial comparison fails and the inline asm block is supposed to leave stxr_status set to 2. However, the lack of an input constraint meant that the compiler simply elided the initialization of stxr_status, which could lead to an infinite loop. This could be fixed by making stxr_status an input operand, but it seems safer to just initialize it in the asm block.
- Loading branch information