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

Implement uaccess validation with objtool #474

Open
chleroy opened this issue Feb 16, 2024 · 0 comments
Open

Implement uaccess validation with objtool #474

chleroy opened this issue Feb 16, 2024 · 0 comments

Comments

@chleroy
Copy link

chleroy commented Feb 16, 2024

On x86 objtool can perform uaccess validation, that is check that no function is called with user access is enabled after user_access_begin() and before user_access_end()

First tentative at https://patchwork.ozlabs.org/project/linuxppc-dev/list/?state=*&series=363369

The challenge is to implement switch/case code walk, the way it is implemented for x86 is too weak and doesn't fit the code GCC generates for powerpc because powerpc RISC assembly provides much more flexibility to GCC than on x86.

objtool switch/case analysis needs to be re-written in a more reliable way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant