Q: "Why have you suddenly been reworking coredumping, Christian?"
A: "Because I'm a clown and also I had it with all the CVEs because we provide a **** API for userspace."
So now that @torvalds merged the pidfs and initial coredump work things are already better but I have more work there.
In other news, there's two new CVEs in userpace that should be gone completely by installing a pidfd into the umh or by using the coredump socket.
[1]: https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt
@ljs @torvalds I think APIs age and like many things in life they often age badly simply because no one could predict the use cases they would be subjected to. It will happen to mine as well I'm sure.
So I'm being a bit playful with the "**** API" here. I don't hate it, I just think it ran its course and we've not done something to replace it.
I have done custom backports of the patches to install a pidfd into the legacy usermodehelper coredump handler for v6.12, v6.6, v6.1, v5.14, v5.10, and v5.4.
So that all those kernels can defend against the Qualys vulnerabilities reported earlier this week in:
https://www.qualys.com/2025/05/29/apport-coredump/apport-coredump.txt
@gregkh should hopefully have not too much pain with these backports now. Otherwise it would've been rather unpleasant to do them.
Testing is of course very welcome!
@gregkh @brauner you have a good point there, didn't think of that, was more in the path of replacing old stuff with new ones.
Think I have a TV with 2.6 kernel, in case someone would be interested it sometimes don't turn on the screen, you need to turn it off and then on again, but it's yours for anyone who want to fetch it in southern part of Scandinavia.
Manual with schematics and remote.