Files
RedBear-OS/src
Anhad Singh af36ae12b0 fix(mremap): fix referencing
Before it was first add_ref'ed by `borrow_frame_enforce_rw_allocated`,
manually and then by `allocated_shared_one_page`.

Now it is only done by `borrow_frame_enforce_rw_allocated` and does not
get unref-ed as take() is called on the returned `RaiiFrame`.

Now the page is manually mapped and an `Allocated` type grant is
constructed (synonymous to `MAP_PRIVATE`). Before by using `allocated_shared_one_page`
an `AllocatedShared` provided grant was constructed (synonymous to
`MAP_SHARED`), which was wrong as the TCB would've not got CoW-ed
after fork(), making the Tcb malformed.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2024-12-11 16:37:01 +11:00
..
2024-09-25 21:51:39 +03:00
2024-11-07 05:09:24 +03:00
2022-08-26 08:24:04 -06:00
2024-07-15 18:08:42 +02:00
2024-12-11 16:37:01 +11:00
2024-10-20 16:24:21 +03:00
2024-10-30 16:16:24 -06:00
2024-12-11 16:08:08 +11:00
2024-11-06 12:13:13 +03:00
2024-12-11 16:37:01 +11:00
2024-07-15 17:50:18 +02:00
2024-09-26 22:34:55 +00:00
2024-09-04 10:55:01 +03:00
2024-07-15 17:50:18 +02:00
2024-11-01 06:51:13 +03:00
2024-09-26 19:22:21 +03:00
2024-09-04 10:55:01 +03:00
2024-09-04 10:55:01 +03:00