Process ids again
Process ids again
Posted Jun 7, 2025 2:48 UTC (Sat) by NYKevin (subscriber, #129325)In reply to: Process ids again by Nahor
Parent article: Slowing the flow of core-dump-related CVEs
> What do you give to a process that still expects a 32-bit pid when the value does not fit?
Under the assumption that we're migrating individual PID namespaces rather than a system-wide setting, if a process is in a PID namespace that uses 64-bit PIDs, it should have been migrated to the new API already (or else userspace should not have enabled 64-bit PIDs for this namespace). If it nevertheless asks for a 32-bit PID by calling into the old 32-bit interface, then it gets -ENOSYS or some equivalent, and probably crashes.
