142 points · by danso · 7y ago · 58 comments
In a context that doesn't involve executing it. On a Linux system, this functionality would probably be implemented with libelf or libbfd, neither of which depends on the kernel.
Then again, the kernel already has such a gigantic attack surface that it doesn't matter if the ELF parser is part of it.
Yes, please.
NT tends to be conceptually about the right trade-off (micro-kernel design, but no context switching) but then they go do stupid crap like this.
fs/binfmt_elf.c is over 2k lines.
That's a radical piece of software, though. I've never seen anything like that before.
The text and technical details supporting the screen caps is very dense and hard to approach as a complete outsider. I would love to have a glossary with all the terms and initialisms/acronyms in use. PTE (apparently means page table entry), for example, is something I've never heard of before.
I looked at the article and it made me mad because it seemed to be a bunch of nonsense.
I mean the second video paragraph is: "A closer look at the memcpy arguments shows that this address is built as 0xfffff8035b2a0000 + 0xe7ff, so we taint the value 0xe7ff to find where it comes from." But there's absolutely zero explanation of what we're looking at.
So it made me mad because it made me feel stupid for not understanding it, when in reality it's just poorly written. Poor communication is theft.
Or "low level/back end" developers; people knowledgeable with operating systems, assembly, and hardware.
The fact that it does this in the kernel is foolish, but there's functionality directly tied to this, not an indirect chain of things that results in parsing this for little reason.
Then you ask the broker to load this corrupt .exe file, and it crashes, and now your system (which hasn't bluescreened! hooray, we win!) can't run executables anymore. Under those circumstances, I would just take the OS down and generate a dump that someone can open up in a kernel debugger instead of letting it stumble along half-broken in a way that makes the problem hard to diagnose.
QuickLook is implemented via a horrific process where multiple plug-ins share the same address space :(
EDIT: Apparently they are videos, but you can still add thumbnail images to native HTML5 videos without loading 40 script files (that uMatrix reported).