Linux implementation is not compatible with our case. It doesn't provide correct protection flags, it uses MAP_NORESERVE which we don't have support and also madvise flag are different from Linux.
Created attachment 451972 [details] PATCH
Created attachment 452057 [details] PATCH Trial 2
<rdar://problem/89266701>