News for hackers. Stuff that matters.
Re:Microsoft Engineer Proposes “Trampfd” for Improving Linux... by ori_b on Thursday July 30, 2020 @10:00AM (#23998218)
Double map it, like a JIT does. Once writable, and once executable. Put the pointers into different shared objects so that ASLR puts a randomized offset between them and you can't discover the write pointers from the execute pointer, and vice versa.
Re:Microsoft Engineer Proposes “Trampfd” for Improving Linux... by vardump on Thursday July 30, 2020 @01:05PM (#24000516)
You still need to store the write pointers somewhere. So this very quickly becomes a game of cat and mouse.
Re:Microsoft Engineer Proposes “Trampfd” for Improving Linux... by saagarjha on Thursday July 30, 2020 @04:01PM (#24002280)
JavaScriptCore had an amusing scheme where they'd make an (executable) memcpy gadget with the address hardcoded, then throw away read permissions to that memory. So the pointer's address is thus not readable without modifying memory permissions.