Process ids again
Process ids again
Posted Jun 7, 2025 5:38 UTC (Sat) by epa (subscriber, #39769)In reply to: Process ids again by Nahor
Parent article: Slowing the flow of core-dump-related CVEs
A shell script needs no update for 64-bit process ids. It’s just a slightly longer string than before. A C program using pid_t may just need a recompile, though of course there will be some code putting a process id into an int (I imagine a compiler warning can mostly catch this).
Rewriting a C program to use pidfds is a much bigger task, and rewriting a shell script with them is essentially impossible.
Scripting languages like Perl, Python, and Tcl would usually just need the interpreter itself recompiled for 64-bit pids and existing scripts will work unchanged.
