|
|
Log in / Subscribe / Register

Process ids again

Process ids again

Posted Jun 6, 2025 17:38 UTC (Fri) by Nahor (subscriber, #51583)
In reply to: Process ids again by epa
Parent article: Slowing the flow of core-dump-related CVEs

> Why don't we move to 64-bit process ids

What do you give to a process that still expects a 32-bit pid when the value does not fit?
And if we provide a 64-bit API while keeping the 32-bit values for a while for backward compatibility, how long should we wait before switching? ...And in the interim, the problem persists, even for applications that did update.

With pidfs, you solve the problem for modern applications *now*, while keeping backward compatibility for older code forever (or until we choose to remove support for 32-bit PIDs).

> surely if time_t could become 64 bit, we can do the same for pid_t.

You do know how a painful that switch was (and still is, since not everything code base has been updated yet), right?
Remember that this is not just about updating the kernel API, but also updating code wherever pids are used (internally in applications, or externally, i.e. storage, network, ...)

> they will never be used in the long tail of shell scripts and old code

If they won't be updated to pidfs, why do you believe they will be updated for 64-bit pids?


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


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