Changes between Initial Version and Version 1 of Ticket #17895


Ignore:
Timestamp:
Aug 29, 2022, 7:41:55 PM (2 years ago)
Author:
korli
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17895 – Description

    initial v1  
    11I took a few tests from libhugetlbfs, combined them in fork-mprotect-cow to check the page protection after fork. this actually succeeds on Linux and fails on Haiku.
     2
     3Test output on Linux
     4{{{
     5Starting testcase "./fork-mprotect-cow", pid 15944
     6Mapping synchronization area..done
     7Mapping hugepage area...mapped at 0x7f59034f2000
     8Parent writes pre-fork...1234abcd
     9mprotect()ing to prot=0
     10Parent reading..SIGSEGV at 0x7f59034f2000 (sig_expected=0x7f59034f2000)
     11-1
     12Child starts..
     13Child reading..SIGSEGV at 0x7f59034f2000 (sig_expected=0x7f59034f2000)
     14-1
     15Child exits...
     16PASS
     17}}}