Unique randomized wide PIDs
Unique randomized wide PIDs
Posted Jun 9, 2025 12:00 UTC (Mon) by bluca (subscriber, #118303)In reply to: Unique randomized wide PIDs by bmenrigh
Parent article: Slowing the flow of core-dump-related CVEs
Although it is mildly amusing watching the rediscovery of UUIDs in this thread (hint: it's what Windows uses), it is unnecessary: with the new kernel the pidfd inode number is guaranteed unique per boot, so we have a solution for this now (there's also the boot uuid, so the combination of boot uuid + pidfd inode id gives a universal unique identifier, if that is needed). PIDs can never be changed, as all existing software will break. No, it's not just a matter of "recompiling", existing binaries need to work too with new kernels, so that's not an option. But we are starting to expose pidfd inodes in more places now, so I guess they'll slowly take over for new functionality.
