Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability write ignored when bounds become unrepresentable #58

Open
kevin-brodsky-arm opened this issue Mar 13, 2024 · 0 comments
Open

Comments

@kevin-brodsky-arm
Copy link

Assuming that C0 is a valid capability, it is possible to modify its address without invalidating it using e.g.

(gdb) set $pc0.l += 0x20000

However, if C0 has narrow bounds and such an increment would make its bounds unrepresentable, GDB will silently ignore the command. It would probably be better to allow the set operation to go through and invalidate the capability, optionally printing a warning. Presumably, the same situation may occur if manipulating the bounds by setting a new value for $pc0.u.

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

No branches or pull requests

1 participant