Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.1] nsexec: retry unshare on EINVAL #3776

Merged
merged 1 commit into from
Mar 26, 2023

Commits on Mar 26, 2023

  1. nsexec: retry unshare on EINVAL

    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 <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>
    kolyshkin authored and cyphar committed Mar 26, 2023
    Configuration menu
    Copy the full SHA
    8ec02ea View commit details
    Browse the repository at this point in the history