Process ids again
Process ids again
Posted Jun 7, 2025 19:05 UTC (Sat) by donald.buczek (subscriber, #112892)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, and guarantee that they are not reused except after a reboot
Or a UUID for every process. While pidfs inode numbers (or a hypothetical 64bit pid) are good for the lifetime of the system, you sometimes want to persist identifiers for longer than that, for example in a database or on another system. We have this problem for a cluster queuing system where the job controller is designed to be restartable and has to identify which of its jobs, which are stored in a sql database, are still alive and which aren't. Our current solution is so ugly that I don't want to mention it and our next solution might be to consider boot_id + pidfs inode number. Any better ideas someone?
