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

ARM: z_arch_except() is too permissive in user mode #17591

Closed
andrewboie opened this issue Jul 16, 2019 · 0 comments · Fixed by #17815
Closed

ARM: z_arch_except() is too permissive in user mode #17591

andrewboie opened this issue Jul 16, 2019 · 0 comments · Fixed by #17815
Assignees
Labels
area: ARC ARC Architecture area: Memory Protection bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@andrewboie
Copy link
Contributor

Steps to reproduce:

Pull #17589
And run tests/kernel/mem_protect/userspace
All cases need to succeed.

Right now, ARM will accept any reason code.
It should only accept kernel oops, or stack check fail. Other codes should be forced into an oops.

Impact: user mode is able to induce kernel panics, which indicate the entire system needs to be halted. user mode is also able to fake other exception types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARC ARC Architecture area: Memory Protection bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants