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 Linuxt 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 <zhang.yu58@zte.com.cn> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit cecb039) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information