Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Older kernels may return EINVAL on unshare when a process is reading runc's /proc/$PID/status or /proc/$PID/maps. This was fixed by kernel commit 12c641ab8270f ("unshare: Unsharing a thread does not require unsharing a vm") in Linux v4.3. For CentOS 7, the fix was backported to CentOS 7.7 (kernel 3.10.0-1062). To work around this kernel bug, let's retry on EINVAL a few times. Reported-by: zzyyzte <[email protected]> Signed-off-by: Kir Kolyshkin <[email protected]> (cherry picked from commit cecb039) Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information