Implement uaccess validation with objtool
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- operating-systems, tooling
Research direction
Start with the tentative patch linked in the issue and the existing x86 objtool switch/case analysis. Compare that approach with the code GCC generates for powerpc and define a more reliable analysis; done means objtool can validate uaccess regions correctly on powerpc without relying on the weak x86 approach.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- No language data
- Stars
- 14
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxppc/issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
riscv/riscv-unified-db#2909 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
PixarAnimationStudios/OpenUSD#4383 ·
Maintainers usually reply within 1 day
-
nixos/rog-control-center: autoStart fails to build with asusctl 6.5.0 due to renamed .desktop fileOpen0.kind: bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
NixOS/nixpkgs#597200 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Cisco-Talos/clamav#1957 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 2 days