- User Since
- Mar 12 2014, 1:00 AM (279 w, 4 d)
- Fix bugs found by Peter.
Here's the result so far from the test: https://reviews.freebsd.org/P277
Fri, Jul 19
Committed in r349846.
Rebase and fix some problems found by pho.
I'll give this patch a try on a system running "poudriere bulk", which tends to use most of my system's swap.
Thu, Jul 18
Don't attempt to free the page if it is busy at all.
IMO fhold() and refcount_acquire_checked() should have the __result_use_check annotation.
Restore a lost comment.
Wed, Jul 17
Tue, Jul 16
Shouldn't the VFS and VM changes be split into a separate review and committed separately?
Mon, Jul 15
- Check for AF when promoting.
- Convert clean, RW mappings to RO when promoting.
- When demoting, assert that writeable mappings are dirty.
Sun, Jul 14
We also have the (unused) so_linger_set(), which should possibly assert that the input value is valid.
It seems that there are two related problems:
- Refcount overflows triggered by a kernel bug, such as the one dissected in the link.
- Refcount overflows triggered by malicious or buggy userspace, for instance by allocating 2^32 descriptors. (Note, at present this requires sizeof(filedescent) * (1 << 32) = 206GB of memory on amd64, including for descriptors internalized in unix socket buffers.)
- Restore comment in pmap_ts_referenced().
- Assert that writeable mappings are dirty in pmap_l2_demote_locked().
- Style in pmap_mincore().
Sat, Jul 13
Remove obsolete comment from pmap_ts_referenced().
Fri, Jul 12
- Leave AF set in unmanaged speculatively created mappings.
- Restore part of the comment above pmap_pte_dirty().
This matches the IPv4 change, so I'm fine with it going in. I agree that having a goto to the read lock case would make a bit more sense.
- Update pmap_mincore() to only call pmap_pte_dirty() on managed mappings.
Fix ATTR_AP_RW_BIT handling bugs.