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

Addrenv select to kmap #330

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Addrenv select to kmap #330

merged 3 commits into from
Dec 18, 2024

Conversation

pussuw
Copy link

@pussuw pussuw commented Dec 18, 2024

Semaphore fixes / patches from upstream

This allows mapping pages from others than the running task. Obiously
this can only be done with proper preparations (the task in question
cannot exit before the mapping is released).
The temporary mappings via addrenv_select() and addrenv_restore() simply
do not work from interrupt, so remove its usage and replace with kmap
which is safe.
The holder list can be modified via interrupt so using addrenv_select is
not safe. Access the semaphore by mapping it into kernel virtual memory
instead.
@pussuw pussuw merged commit bd5afce into master Dec 18, 2024
10 checks passed
@pussuw pussuw deleted the addrenv_select_to_kmap branch December 18, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants