mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
Base: Mention new immutable memory mappings security feature
This commit is contained in:
parent
4b4b15adb1
commit
2b5d7a8a72
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/2b5d7a8a72 Pull-request: https://github.com/SerenityOS/serenity/pull/16529
1 changed files with 31 additions and 0 deletions
|
@ -163,6 +163,37 @@ Date: Tue Feb 2 19:56:11 2021 +0100
|
|||
Kernel: Add a way to specify which memory regions can make syscalls
|
||||
```
|
||||
|
||||
### Immutable memory mappings
|
||||
|
||||
[Immutable memory mappings](https://lwn.net/SubscriberLink/915640/53bc300d11179c62/) is
|
||||
a mitigation which originated from OpenBSD.
|
||||
In short the annotation of a particular Kernel Region as immutable implies that
|
||||
that these virtual memory mappings are locked to their last state (in regard to protection bits, etc),
|
||||
and they cannot be unmapped by a process until that process gets finalized.
|
||||
|
||||
It was first enabled in the following [commit](https://github.com/SerenityOS/serenity/commit/8585b2dc23ec206777a4cfbd558766d90fc577e7):
|
||||
|
||||
```
|
||||
commit 8585b2dc23ec206777a4cfbd558766d90fc577e7
|
||||
Author: Liav A <liavalb@gmail.com>
|
||||
Date: Thu Dec 15 21:08:57 2022 +0200
|
||||
|
||||
Kernel/Memory: Add option to annotate region mapping as immutable
|
||||
|
||||
We add this basic functionality to the Kernel so Userspace can request a
|
||||
particular virtual memory mapping to be immutable. This will be useful
|
||||
later on in the DynamicLoader code.
|
||||
|
||||
The annotation of a particular Kernel Region as immutable implies that
|
||||
the following restrictions apply, so these features are prohibited:
|
||||
- Changing the region's protection bits
|
||||
- Unmapping the region
|
||||
- Annotating the region with other virtual memory flags
|
||||
- Applying further memory advises on the region
|
||||
- Changing the region name
|
||||
- Re-mapping the region
|
||||
```
|
||||
|
||||
### Post-init read-only memory
|
||||
|
||||
[Post-init read-only memory](https://lwn.net/Articles/666550/) is
|
||||
|
|
Loading…
Reference in a new issue