|
|
Log in / Subscribe / Register

More efficient?

More efficient?

Posted Jun 6, 2025 17:54 UTC (Fri) by bluca (subscriber, #118303)
In reply to: More efficient? by Nahor
Parent article: Slowing the flow of core-dump-related CVEs

> but it then needs to start a new process to handle a crash, like core_pattern did, so it's no more efficient than before.

It is, as there's one fewer process. It's already socket activated - the umh only receives the core, it doesn't do any analysis, as it's dangerous. The umh forwards the core to a different socket-activated process, that is ran at minimum privilege, which does the analysis.
Now we can remove the middleman.

> But I doubt this is common usage, if it even exists anywhere, since it would combine the worst of both methods.

It's the most common usage (whether via apport or systemd-coredump or something else), as the article writes just writing files around from the kernel is really bad, and only legacy (or manual) setups do that.


to post comments

More efficient?

Posted Jun 6, 2025 19:25 UTC (Fri) by Nahor (subscriber, #51583) [Link] (5 responses)

I guess we are not arguing at the same level.

If your crash manager already has a persistent process, like systemd does, then yes, you become more efficient. Having a persistent process for them was a sunk cost since systemd already has a persistent process for monitoring services. But the gain in efficiency for them comes from their implementation choices, from the kernel API now matching their usage better, it does not come from a more efficient API. I'm arguing the latter, you're arguing the former.

More efficient?

Posted Jun 6, 2025 20:49 UTC (Fri) by bluca (subscriber, #118303) [Link] (4 responses)

> If your crash manager already has a persistent process, like systemd does

It doesn't

More efficient?

Posted Jun 7, 2025 0:41 UTC (Sat) by Nahor (subscriber, #51583) [Link] (3 responses)

>> If your crash manager already has a persistent process, like systemd does
>
> It doesn't

Uh? Systemd has a persistent process, it's called "systemd" daemon, aka "init", aka PID 1. What do you think monitors the various systemd units, including sockets?

More efficient?

Posted Jun 7, 2025 11:46 UTC (Sat) by bluca (subscriber, #118303) [Link] (2 responses)

Oh, really? I had no idea! /s

It's not an _extra_ one as you implied. There's no extra cost, it's already there for other purposes.

More efficient?

Posted Jun 9, 2025 10:04 UTC (Mon) by paulj (subscriber, #341) [Link] (1 responses)

Every additional feature/thing that systemd has to watch for consumes another little bit of memory though, and probably another thing that sits in a list or other DS that has to be scanned through regularly.

Worth it, for me I'd say yes, and I doubt anyone could notice that 1 additional feature, but you can't dismiss the argument others have on the basis there are no extra resources used.

More efficient?

Posted Jun 9, 2025 10:48 UTC (Mon) by bluca (subscriber, #118303) [Link]

Once again: there are no extra resources used. There is already a systemd-coredump.socket, and there always was, as it's trivial to verify.

With this feature it's now kernel -> socket, instead of kernel -> usermode helper -> socket.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds