Page 1 of 1

Mapping a 0x1000 page in iOS

PostPosted: Sun Mar 26, 2017 4:28 pm
by LIJI
Hey,

In A7 and A8 devices the "internal" page size in iOS is 0x1000 while the OS "exposes" a 0x4000 page size to user space.

However, considering the kernel does map pages in 0x1000 resolution, is it possible to map a 0x1000-sized page (or a page aligned to 0x1000 but not 0x4000) from user space?

The only interesting thing I could find in the sources is VM_FLAGS_RETURN_4K_DATA_ADDR, which only modifies the return value, it seems.

Thanks!