@karolherbst@jhwgh1968 I think what you really want is to logically detach the mapping from the backing (and go back to PROT_NONE) without leaving the address space momentarily available, right? So instead of unmapping you just do a mmap(addr, size, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0); and that should work I think?