diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-04 02:19:36 +0200 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-13 16:03:14 +0200 |
| commit | de770681234d001a1f4cdb8121179331dc3a2def (patch) | |
| tree | 3db8040c7b6d87dab8575bfd8150b49581b794b2 /source/Plugins/ScriptInterpreter/Python | |
| parent | 7361727d4584b5e303183c836497ae2754ce0e53 (diff) | |
rfork(2): fix swap accounting in vmspace_unshare()
When an attempt to increase the swap charge for the ucred failed, we
must forcibly increase the charge to allow the vmspace_destroy()
operation to correctly un-charge the accumulated objects.
Add a swap_reserve_force_by_cred() helper and use it in
vmspace_unshare(), same as it is done in normal fork operations.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D54572
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
