A computer-readable, non-transitory medium storing a memory access control program causing an information processing apparatus to execute a memory access control procedure, the memory access control procedure comprising:
- accepting addresses of respective page tables generated for each of operation modes having different privilege levels where a first access right in accordance with a first operation mode is set with respect to one virtual address space, from an operating system that manages the virtual address space and associating the addresses with the operating system to be recorded in a page table correspondence information storage;
- switching the first operation mode to a second operation mode, and in accordance selectively setting, in a memory management device, a second access right indicating a value lower than or equal to a value of the first access right in an operation mode where the first access right is smaller compared with other operation modes;
- and
- setting, when a memory access is identified to be beyond the second access right, an address corresponding to the second operation mode in the memory management device causing execution of a flush of a translation look-aside buffer, and setting the second access right indicating a value for validating the first access right set in the page table related to a relevant address in the memory management device,
- wherein the memory management device controls memory access related to an address associated with the page table while the second access right is prioritized over the first access right.