Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: Make stxr_status an input operand 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. Thus, make stxr_status an input operand as well as an output operand.
- Loading branch information