Unique randomized wide PIDs
Unique randomized wide PIDs
Posted Jun 8, 2025 9:20 UTC (Sun) by jreiser (subscriber, #11027)In reply to: Process ids again by AClwn
Parent article: Slowing the flow of core-dump-related CVEs
> Randomized PIDs would be incompatible with a no-reuse guarantee because you'd have to store (and search!) a table of previously-used PIDs.
Um, no. A Linear Feedback Shift Register (LFSR) that is based on an irreducible polynomial guarantees uniqueness over its entire period, which is near to 2**N. Just initialize it to a random point in its sequence.
