generic: mmap and copy file data with page overlapping