1. A method for modifying a process memory for a process executing in user mode, the method comprising: generating a modification to a context of the process from kernel mode; passing control to the process in user mode after generating the modification to the context of the process; passing control from user mode to kernel mode in response to the modification to the context of the process; and modifying the process memory from kernel mode after passing control from user mode to kernel mode.