Live data from Hacker News

Microsoft Engineer Proposes “Trampfd” for Improving Linux Security

phoronix.com

1–10 of 39 posts

Re: Microsoft Engineer Proposes “Trampfd” for Improving Linux Security

#2
Someone in the Phoronix comments wondered why not just map it (the kernel-assisted trampoline memory page) executable and not writeable, to avoid the attack surface but be significantly faster. I also wonder exactly why, admittedly I haven’t read the mailing list thread entirely but purely working on theory I wonder what the advantages of working on page fault is. Less abusable gadgets in memory? More flexibility? Perhaps additional Spectre-type mitigations?

Re: Microsoft Engineer Proposes “Trampfd” for Improving Linux Security

#6
post #2

Someone in the Phoronix comments wondered why not just map it (the kernel-assisted trampoline memory page) executable and not writeable, to avoid the attack surface but be significantly faster. I also wonder exactly why, admittedly I haven’t read the mailing list thread entirely but purely working on theory I wonder what the advantages of working on page fault is. Less abusable gadgets in memory? More flexibility? Pe…

Currently the page must be writeable at some point in order to create the trampoline.

A page fault is used as a way of executing the trampoline without the page having to be made executable/writable---the page fault handler recognises the page as a special trampoline page and handles the jump to the trampolines target address (which was previously registered using the new syscall).

Note that AFAICS this is unrelated to Spectre. The intended use is for constructing closures for use in FFI libraries such as libffi.

EDIT: I think I perhaps misunderstood your query---are you saying why not just make a system call where the kernel creates the page for you with the desired trampoline code and execute permissions?

Re: Microsoft Engineer Proposes “Trampfd” for Improving Linux Security

#8
post #5
post #3

This is not just "Microsoft Engineer", it is Michael Larabel, the principal author of phoronix.com.

> From: "Madhavan T. Venkataraman" https://lkml.org/lkml/2020/7/28/640

Who would thought, years ago, seeing an email address "@linux.microsoft.com"?

Re: Microsoft Engineer Proposes “Trampfd” for Improving Linux Security

#9
post #8
post #5

Earlier quoted context omitted.

> From: "Madhavan T. Venkataraman" https://lkml.org/lkml/2020/7/28/640

Who would thought, years ago, seeing an email address "@linux.microsoft.com"?

What was the saying...embrace extend extinguish
Post reply on HN