vmem: Automatically align input memory addresses to page starts