2 ms·
You can do that even without the NOPs or any other special preparation beforehand --- API hooking is one example that's used all the time, and there's no shorta
by userbinator 8y ago
You can do that even without the NOPs or any other special preparation beforehand --- API hooking is one example that's used all the time, and there's no shortage of code samples out there to do it.
- gruez 8y agothe point of using a nop is that the patch can be done atomically. otherwise you run into race conditions if a thread's currently executing the instruction(s) you're patching.
- userbinator 8y agoGiven that the patching mechanism can (must --- due to what gets updated sometimes) be implemented in kernel mode, it's not hard to ensure that all threads are away from the "construction zones", even a "stop the world" type scan if necessary, which is still going to be far less disruptive than rebooting. The point is that this is not an open problem, and has been solved before multiple times.