mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
relabel malloc read-only after init data
This commit is contained in:
parent
fc8f2c3b60
commit
98deb9de52
1 changed files with 1 additions and 0 deletions
|
@ -1060,6 +1060,7 @@ COLD static void init_slow_path(void) {
|
|||
if (memory_protect_ro(&ro, sizeof(ro))) {
|
||||
fatal_error("failed to protect allocator data");
|
||||
}
|
||||
memory_set_name(&ro, sizeof(ro), "malloc read-only after init");
|
||||
|
||||
mutex_unlock(&lock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue