Doesn't kernel already use some kind of a "detour" buffer to execute
the instructions (at least I remember reading about something similar)?
And isn't this kind of code architecture specific, which archs this
 Disabling breakpoint, running the instructions and re-enabling the
breakpoint cannot be used because then there's a race-condition with the
other threads, so the instructions are executed from a buffer set aside
for this purpose.
 there are some instructions which need "emulation" when run from a
different location due to using data at relative offsets.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds