mlock tests: Add a regression testThe test tries to trigger creation of a superpage mapping in anmlock()ed region.MFC after: 2 weeks(cherry picked from commit 8f26ed01bd74aab21309ac04ae1d1368a
mlock tests: Add a regression testThe test tries to trigger creation of a superpage mapping in anmlock()ed region.MFC after: 2 weeks(cherry picked from commit 8f26ed01bd74aab21309ac04ae1d1368a6346c90)
show more ...
tests: Handle SIGSEGV in the vm stack mprotect exec testTo exit gracefully handle SIGSEGV and mark the test as failed.MFC after: 3 days
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
vm: Allow MAP_32BIT for all architecturesReviewed by: alc, kib, markjDifferential revision: https://reviews.freebsd.org/D41435
tests: Also exclude powerpc/powerpcspe from mmap_map_32bit_testSponsored by: The FreeBSD Foundation
soxstack: silence GCC warningAdd parens around _STACK_FLAG_GROWS expression to fix GCC warning aboutarithmetic in operand of '|'.Sponsored by: The FreeBSD Foundation
tests: Fix build after 8920c5f2MFC after: 2 weeks
tests: Add stack grows testsReviewed by: kibDifferential Revision: https://reviews.freebsd.org/D41320MFC after: 2 weeks
tests: Add MAP_32BIT flag testReviewed by: kib, markjDifferential Revision: https://reviews.freebsd.org/D41236MFC after: 1 month
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
shared_shadow_inval_test: fix copy-pasto in error messageMFC after: 1 weekSponsored by: Dell EMC Isilon
tests: Handle platforms with MAXPAGESIZES < 2Reported by: JenkinsFixes: 1dfa8b73f6a6 ("tests: Add more shared shadow regression tests")
Fix shared_shadow_inval_test when superpages are disabledIn that case, there is only one page size.Reviewed by: kibMFC after: 1 weekSponsored by: Dell EMC IsilonDifferential Revision: https://
Fix shared_shadow_inval_test when superpages are disabledIn that case, there is only one page size.Reviewed by: kibMFC after: 1 weekSponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D36265
tests: Add more shared shadow regression testsThe new tests exercise simulated COW that occurs when the protections ona wired, copy-on-write mapping are changed from read-only to read-write.MFC
tests: Add more shared shadow regression testsThe new tests exercise simulated COW that occurs when the protections ona wired, copy-on-write mapping are changed from read-only to read-write.MFC after: 2 weeksSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D35636
mmap map_at_zero test: handle W^XUse kern.elfXX.allow_wx to decide whether to map W+X or W-only memory.Future work could expand this test to add an "allow_wx" axis to thetest matrix, but I would
mmap map_at_zero test: handle W^XUse kern.elfXX.allow_wx to decide whether to map W+X or W-only memory.Future work could expand this test to add an "allow_wx" axis to thetest matrix, but I would argue that a separate test should be written,since that's orthogonal to map_at_zero.MFC after: 1 weekSponsored by: Dell EMC Isilon
shared shadow vm object invalidation regression testAdd a regression test for a scenario where a shadow vm object is sharedby multiple mappings. If a page COW occurs through one of the mappings,
shared shadow vm object invalidation regression testAdd a regression test for a scenario where a shadow vm object is sharedby multiple mappings. If a page COW occurs through one of the mappings,then the virtual-to-physical mapping may become invalidated.This tests the scenario from CVE-2021-29626 which was fixed by982693bb729badac4e65ecd59772979f2849a2b2.Reviewed by: markjSponsored by: Dell EMC Isilon
[tests] Fix unused variable warning in gccReviewed by: markj, imp, cem,Approved by: markjDifferential Revision: https://reviews.freebsd.org/D26792
Fix write only mappings on arm64When trapping on a wrote access to a buffer the kernel has mapped as writeonly we should only pass the VM_PROT_WRITE flag. Previously the call tovm_fault_trap as t
Fix write only mappings on arm64When trapping on a wrote access to a buffer the kernel has mapped as writeonly we should only pass the VM_PROT_WRITE flag. Previously the call tovm_fault_trap as the VM_PROT_READ flag was unexpected.Reported by: manuSponsored by: Innovate UK
Adjust tests after page fault changes in r352807Commit r352807 fixed various signal numbers and codes from page faults;adjust the tests so they expect the fixes to be present.PR: 211924
Add some tests for page fault signals and codesIt is useful to have some tests for page fault signals.More tests would be useful but creating the conditions (such as variouskinds of running out
Add some tests for page fault signals and codesIt is useful to have some tests for page fault signals.More tests would be useful but creating the conditions (such as variouskinds of running out of memory and I/O errors) is more complicated.The tests page_fault_signal__bus_objerr_1 andpage_fault_signal__bus_objerr_2 depend on https://reviews.freebsd.org/D21566before they can pass.PR: 211924Reviewed by: kibDifferential Revision: https://reviews.freebsd.org/D21624
Add a few regression tests for mlock(2).These are intended to exercise some rarely executed code paths.MFC after: 2 weeks
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Revert r313565 -- :mmap__bad_arguments passes again after r313655PR: 216976Sponsored by: Dell EMC Isilon
12