Better HN
topnewbestaskshowjobs
Log inSign up

robertdfrench

6 karma · joined May 8, 2026 (6mo ago) · 13 submissions

github.com/robertdfrench
Submissions

comment 6mo ago · link · parent

that's what Big POSIX wants you to think pal

comment 6mo ago · link · parent

Ohhh I had no idea about hwcaps! This is great! That is the way to solve this problem.

comment 6mo ago · link · parent

I have a conspiracy theory, unsupported by facts, that Richard Stallman secretly invented POSIX as a way to get the proprietary UNIX vendors to waste time on something whose only value was to make it easier for folks to port their apps to GNUUUUUUUU/Linux.

comment 6mo ago · link · parent

I think .init_array is too late in the game. ifunc lets you hijack the loader, because it is sort of like a plugin or dynamic config for the loader itself. Everything should be loaded and resolved by the point that .init_array stuff starts getting triggered, though ELF is dark and full of terrors so who knows really.

comment 6mo ago · link · parent

You may well be right about this! What I genuinely don't understand then, is why Jia Tan relied on ifunc rather than POSIX constructors. Seems like that would have been easier and more widely applicable, right?

comment 6mo ago · link · parent

I don't have any secret information! Folks were giving me a hard time about claiming that ifunc is central to this attack, and I would genuinely find it valuable to know that Jia Tan could have (for example) performed this attack against a musl-based distro.

comment 6mo ago · link · parent

I've updated the post and am offering $500 if you can pull this attack off without ifunc.

comment 6mo ago · link · parent

Take my money!!

comment 6mo ago · link · parent

I take your meaning, but I think a threat actor targeting a system without IFUNC would be delighted if it suddenly showed up. It's like finding a website with a file upload form that purposefully supports ../ in paths.

comment 6mo ago · link · parent

I do not think the OpenSSH folks are at fault! I was trying to drive the point that OpenSSH was forced to work in an environment that is very, very different from where it is primarily developed. I don't think the OpenSSH folks should have been expected to anticipate something as genuinely unusual as ifunc, since there is no analog on OpenBSD.

comment 6mo ago · link · parent

> The game was lost as soon as the attacker had arbitrary code installed in a semi-common library.

That is not quite true! You still have to get the code to be executed. I can call dlopen on a malicious library, load it into my address space, and still not necessarily invoke any dangerous functions. What ifunc did in this case is allow the attacker to manipulate symbols so that calls to real, well-behaved xz routines were instead redirected to the attack payload.