SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

insn_write should not be necessary from libpulp side #200

Closed giulianobelinassi closed 2 weeks ago

giulianobelinassi commented 1 year ago

Commit b511ebe introduced an instruction queue which communicates to the ulp tool in order to patch memory addresses that are protected by seccomp. It works by telling the ulp tool certain addresses that should be ptrace'd with a write.

Now, turns out this is not really necessary, as the process can directly write into /proc/self/mem directly bypassing any kind of memory protection:

https://offlinemark.com/2021/05/12/an-obscure-quirk-of-proc/

This has the potencial of being simplier, faster and safer. So it should be a good refactoring for libpulp.

giulianobelinassi commented 2 weeks ago

Removed in 795c59019edafb0135560e4a8c9630164b4ef784