<div dir="ltr">Thank you both for your feedback.  I agree that testing the minimal requirements (category 1) would be a better default action.  I was trying to maintain some sort of compatibility with how it worked before.  But if that&#39;s not an issue, how about the following?<div><br></div><div>1. criu check   // category 1 only</div><div>2. criu check --extra   // category 2 only</div><div>3. criu check --experimental   // category 3 only</div><div>4. criu check --all   // all categories</div><div>5. criu check --feature FEAT   // specific feature</div><div><br></div><div>--Saied</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 2:58 AM, Adrian Reber <span dir="ltr">&lt;<a href="mailto:adrian@lisas.de" target="_blank">adrian@lisas.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Mar 01, 2016 at 12:59:03PM +0300, Pavel Emelyanov wrote:<br>
&gt; On 03/01/2016 01:58 AM, Saied Kazemi wrote:<br>
&gt; &gt; Pavel and Adrian,<br>
&gt; &gt;<br>
&gt; &gt; Had some time this morning and did a quick rework of criu check hopefully without having broken anything.  Haven&#39;t had time for thorough testing but in the interest of time wanted to send the patch for everyone&#39;s comments.<br>
&gt; &gt;<br>
&gt; &gt; With this patch, &quot;criu check --abs&quot; passes on 3.19 but fails on 3.13 due to PR_SET_MM_MAP.<br>
&gt;<br>
&gt; I like the patch and have only two suggestions:<br>
&gt;<br>
&gt; 1. Isn&#39;t it better to make &#39;criu check&#39; w/o any option to check for minimally<br>
&gt;    required set of features? And, the --full (or smth like this) to check for<br>
&gt;    all the possible functionality.<br>
<br>
</span>This is also what I would expect. For a new criu user the check command<br>
is a good start to see if criu is usable on his platform. Only checking<br>
for the minimum which is required to run criu would make sense and if<br>
advanced features are needed/desired a more detailed or better check can<br>
be run.<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; 2. The PR_SET_MM_MAP is really optional. The criu/pie/restorer.c has proper<br>
&gt;    fall-back in case this API is not supported and there are cases when restore<br>
&gt;    w/o this kernel API work. So I suggest to fix the check_prctl to be optional.<br>
&gt;<br>
&gt; What do you think?<br>
&gt;<br>
&gt; -- Pavel<br>
&gt;<br>
&gt; &gt; Look forward to your review and feedback.<br>
&gt; &gt;<br>
&gt; &gt; --Saied<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Mon, Feb 29, 2016 at 2:52 PM, Saied Kazemi &lt;<a href="mailto:saied@google.com">saied@google.com</a> &lt;mailto:<a href="mailto:saied@google.com">saied@google.com</a>&gt;&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;     The &quot;criu check&quot; command to check if the kernel is properly configured<br>
&gt; &gt;     to run criu is broken.<br>
&gt; &gt;<br>
&gt; &gt;     The &quot;criu check --ms&quot; command used to be the way to tell criu to check<br>
&gt; &gt;     only for features that have been merged upstream.  But recent kernels<br>
&gt; &gt;     have a set of features whose presence doesn&#39;t necessarily mean dump will<br>
&gt; &gt;     fail but rather *may* fail to dump or restore (e.g., soft dirty tracker,<br>
&gt; &gt;     tun support, seccomp).<br>
&gt; &gt;<br>
&gt; &gt;     This patch deprecates --ms and introduces --abs for absolutely needed<br>
&gt; &gt;     features.<br>
&gt; &gt;<br>
&gt; &gt;     Typical use cases are:<br>
&gt; &gt;<br>
&gt; &gt;             $ sudo criu check --abs<br>
&gt; &gt;             Looks good.<br>
&gt; &gt;             $ sudo criu check<br>
&gt; &gt;             &lt;zero or more errors...&gt;<br>
&gt; &gt;             Looks good but some kernel features are missing.<br>
&gt; &gt;             $ sudo criu check --feature mnt_id<br>
&gt; &gt;             Looks good.<br>
&gt; &gt;             $ sudo criu check --feature seccomp_suspend<br>
&gt; &gt;             Error (cr-check.c:604): Kernel doesn&#39;t support PTRACE_O_SUSPEND_SECCOMP<br>
&gt; &gt;             $ sudo criu check --feature list<br>
&gt; &gt;             mnt_id aio_remap timerfd tun userns fdinfo_lock seccomp_suspend \<br>
&gt; &gt;                     seccomp_filters loginuid cgroupns<br>
&gt; &gt;<br>
&gt; &gt;     Signed-off-by: Saied Kazemi &lt;<a href="mailto:saied@google.com">saied@google.com</a> &lt;mailto:<a href="mailto:saied@google.com">saied@google.com</a>&gt;&gt;<br>
&gt; &gt;     ---<br>
&gt; &gt;      criu/cr-check.c           | 178 +++++++++++++++++++++++-----------------------<br>
&gt; &gt;      criu/cr-service.c         |   4 +-<br>
&gt; &gt;      criu/crtools.c            |  28 ++++++--<br>
&gt; &gt;      criu/include/cr_options.h |   2 +-<br>
&gt; &gt;      4 files changed, 112 insertions(+), 100 deletions(-)<br>
&gt; &gt;<br>
&gt; &gt;     diff --git a/criu/cr-check.c b/criu/cr-check.c<br>
&gt; &gt;     index a67ee2d..d08e085 100644<br>
&gt; &gt;     --- a/criu/cr-check.c<br>
&gt; &gt;     +++ b/criu/cr-check.c<br>
&gt; &gt;     @@ -171,7 +171,6 @@ static int check_kcmp(void)<br>
&gt; &gt;<br>
&gt; &gt;      static int check_prctl(void)<br>
&gt; &gt;      {<br>
&gt; &gt;     -       unsigned long user_auxv = 0;<br>
&gt; &gt;             unsigned int *tid_addr;<br>
&gt; &gt;             unsigned int size = 0;<br>
&gt; &gt;             int ret;<br>
&gt; &gt;     @@ -183,37 +182,13 @@ static int check_prctl(void)<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;             /*<br>
&gt; &gt;     -        * Either new or old interface must be supported in the kernel.<br>
&gt; &gt;     +        * The new interface must be supported in the kernel.<br>
&gt; &gt;              */<br>
&gt; &gt;             ret = prctl(PR_SET_MM, PR_SET_MM_MAP_SIZE, (unsigned long)&amp;size, 0, 0);<br>
&gt; &gt;             if (ret) {<br>
&gt; &gt;     -               if (!opts.check_ms_kernel) {<br>
&gt; &gt;     -                       pr_msg(&quot;prctl: PR_SET_MM_MAP is not supported, which &quot;<br>
&gt; &gt;     -                              &quot;is required for restoring user namespaces\n&quot;);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               } else<br>
&gt; &gt;     -                       pr_warn(&quot;Skipping unssuported PR_SET_MM_MAP\n&quot;);<br>
&gt; &gt;     -<br>
&gt; &gt;     -               ret = prctl(PR_SET_MM, PR_SET_MM_BRK, brk(0), 0, 0);<br>
&gt; &gt;     -               if (ret) {<br>
&gt; &gt;     -                       if (ret == -EPERM)<br>
&gt; &gt;     -                               pr_msg(&quot;prctl: One needs CAP_SYS_RESOURCE capability to perform testing\n&quot;);<br>
&gt; &gt;     -                       else<br>
&gt; &gt;     -                               pr_msg(&quot;prctl: PR_SET_MM is not supported\n&quot;);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               }<br>
&gt; &gt;     -<br>
&gt; &gt;     -               ret = prctl(PR_SET_MM, PR_SET_MM_EXE_FILE, -1, 0, 0);<br>
&gt; &gt;     -               if (ret != -EBADF) {<br>
&gt; &gt;     -                       pr_msg(&quot;prctl: PR_SET_MM_EXE_FILE is not supported (%d)\n&quot;, ret);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               }<br>
&gt; &gt;     -<br>
&gt; &gt;     -               ret = prctl(PR_SET_MM, PR_SET_MM_AUXV, (long)&amp;user_auxv, sizeof(user_auxv), 0);<br>
&gt; &gt;     -               if (ret) {<br>
&gt; &gt;     -                       pr_msg(&quot;prctl: PR_SET_MM_AUXV is not supported\n&quot;);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               }<br>
&gt; &gt;     +               pr_msg(&quot;prctl: PR_SET_MM_MAP is not supported, which &quot;<br>
&gt; &gt;     +                      &quot;is required for restoring user namespaces\n&quot;);<br>
&gt; &gt;     +               return -1;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;             return 0;<br>
&gt; &gt;     @@ -766,11 +741,8 @@ static int check_aio_remap(void)<br>
&gt; &gt;             ctx = (aio_context_t)naddr;<br>
&gt; &gt;             r = syscall(SYS_io_getevents, ctx, 0, 1, NULL, NULL);<br>
&gt; &gt;             if (r &lt; 0) {<br>
&gt; &gt;     -               if (!opts.check_ms_kernel) {<br>
&gt; &gt;     -                       pr_err(&quot;AIO remap doesn&#39;t work properly\n&quot;);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               } else<br>
&gt; &gt;     -                       pr_warn(&quot;Skipping unsupported AIO remap\n&quot;);<br>
&gt; &gt;     +               pr_err(&quot;AIO remap doesn&#39;t work properly\n&quot;);<br>
&gt; &gt;     +               return -1;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;             return 0;<br>
&gt; &gt;     @@ -782,12 +754,8 @@ static int check_fdinfo_lock(void)<br>
&gt; &gt;                     return -1;<br>
&gt; &gt;<br>
&gt; &gt;             if (!kdat.has_fdinfo_lock) {<br>
&gt; &gt;     -               if (!opts.check_ms_kernel) {<br>
&gt; &gt;     -                       pr_err(&quot;fdinfo doesn&#39;t contain the lock field\n&quot;);<br>
&gt; &gt;     -                       return -1;<br>
&gt; &gt;     -               } else {<br>
&gt; &gt;     -                       pr_warn(&quot;fdinfo doesn&#39;t contain the lock field\n&quot;);<br>
&gt; &gt;     -               }<br>
&gt; &gt;     +               pr_err(&quot;fdinfo doesn&#39;t contain the lock field\n&quot;);<br>
&gt; &gt;     +               return -1;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;             return 0;<br>
&gt; &gt;     @@ -823,14 +791,10 @@ static int check_clone_parent_vs_pid()<br>
&gt; &gt;      static int check_cgroupns(void)<br>
&gt; &gt;      {<br>
&gt; &gt;             int ret;<br>
&gt; &gt;     -       if (opts.check_ms_kernel) {<br>
&gt; &gt;     -               pr_warn(&quot;Skipping cgroup namespaces check\n&quot;);<br>
&gt; &gt;     -               return 0;<br>
&gt; &gt;     -       }<br>
&gt; &gt;<br>
&gt; &gt;             ret = access(&quot;/proc/self/ns/cgroup&quot;, F_OK);<br>
&gt; &gt;             if (ret &lt; 0) {<br>
&gt; &gt;     -               pr_err(&quot;cgroupns not supported. This is not fatal.&quot;);<br>
&gt; &gt;     +               pr_err(&quot;cgroupns not supported. This is not fatal.\n&quot;);<br>
&gt; &gt;                     return -1;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;     @@ -839,9 +803,22 @@ static int check_cgroupns(void)<br>
&gt; &gt;<br>
&gt; &gt;      static int (*chk_feature)(void);<br>
&gt; &gt;<br>
&gt; &gt;     +/*<br>
&gt; &gt;     + * There are three categories of kernel features:<br>
&gt; &gt;     + *<br>
&gt; &gt;     + *     1. Absolutely required (/proc/pid/map_files, ptrace PEEKSIGINFO, etc.)<br>
&gt; &gt;     + *     2. Required only for specific cases (aio remap, tun, etc.)<br>
&gt; &gt;     + *     3. Experimental (task-diag)<br>
&gt; &gt;     + *<br>
&gt; &gt;     + * We fail if any feature in category 1 is missing but tolerate failures<br>
&gt; &gt;     + * in the other categories.  Currently, there is nothing in category 3.<br>
&gt; &gt;     + */<br>
&gt; &gt;     +#define GOOD           &quot;Looks good.&quot;<br>
&gt; &gt;     +#define GOOD_BUT       &quot;Looks good but some kernel features are missing.&quot;<br>
&gt; &gt;      int cr_check(void)<br>
&gt; &gt;      {<br>
&gt; &gt;             struct ns_id ns = { .type = NS_CRIU, .ns_pid = PROC_SELF, .nd = &amp;mnt_ns_desc };<br>
&gt; &gt;     +       int absret = 0;<br>
&gt; &gt;             int ret = 0;<br>
&gt; &gt;<br>
&gt; &gt;             if (!is_root_user())<br>
&gt; &gt;     @@ -863,26 +840,39 @@ int cr_check(void)<br>
&gt; &gt;                     return -1;<br>
&gt; &gt;<br>
&gt; &gt;             if (chk_feature) {<br>
&gt; &gt;     -               ret = chk_feature();<br>
&gt; &gt;     +               if (chk_feature())<br>
&gt; &gt;     +                       return -1;<br>
&gt; &gt;                     goto out;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;     -       ret |= check_map_files();<br>
&gt; &gt;     -       ret |= check_sock_diag();<br>
&gt; &gt;     -       ret |= check_ns_last_pid();<br>
&gt; &gt;     -       ret |= check_sock_peek_off();<br>
&gt; &gt;     -       ret |= check_kcmp();<br>
&gt; &gt;     -       ret |= check_prctl();<br>
&gt; &gt;     -       ret |= check_fcntl();<br>
&gt; &gt;     -       ret |= check_proc_stat();<br>
&gt; &gt;     -       ret |= check_tcp();<br>
&gt; &gt;     -       ret |= check_fdinfo_ext();<br>
&gt; &gt;     -       ret |= check_unaligned_vmsplice();<br>
&gt; &gt;     -       ret |= check_tty();<br>
&gt; &gt;     -       ret |= check_so_gets();<br>
&gt; &gt;     -       ret |= check_ipc();<br>
&gt; &gt;     -       ret |= check_sigqueuinfo();<br>
&gt; &gt;     -       ret |= check_ptrace_peeksiginfo();<br>
&gt; &gt;     +       /*<br>
&gt; &gt;     +        * Category 1 - absolutely required.<br>
&gt; &gt;     +        */<br>
&gt; &gt;     +       absret |= check_map_files();<br>
&gt; &gt;     +       absret |= check_sock_diag();<br>
&gt; &gt;     +       absret |= check_ns_last_pid();<br>
&gt; &gt;     +       absret |= check_sock_peek_off();<br>
&gt; &gt;     +       absret |= check_kcmp();<br>
&gt; &gt;     +       absret |= check_prctl();<br>
&gt; &gt;     +       absret |= check_fcntl();<br>
&gt; &gt;     +       absret |= check_proc_stat();<br>
&gt; &gt;     +       absret |= check_tcp();<br>
&gt; &gt;     +       absret |= check_fdinfo_ext();<br>
&gt; &gt;     +       absret |= check_unaligned_vmsplice();<br>
&gt; &gt;     +       absret |= check_tty();<br>
&gt; &gt;     +       absret |= check_so_gets();<br>
&gt; &gt;     +       absret |= check_ipc();<br>
&gt; &gt;     +       absret |= check_sigqueuinfo();<br>
&gt; &gt;     +       absret |= check_ptrace_peeksiginfo();<br>
&gt; &gt;     +       if (absret || opts.check_abs_features) {<br>
&gt; &gt;     +               if (!absret)<br>
&gt; &gt;     +                       print_on_level(DEFAULT_LOGLEVEL, &quot;%s\n&quot;, GOOD);<br>
&gt; &gt;     +               return absret;<br>
&gt; &gt;     +       }<br>
&gt; &gt;     +<br>
&gt; &gt;     +       /*<br>
&gt; &gt;     +        * Category 2 - required for specific cases.<br>
&gt; &gt;     +        */<br>
&gt; &gt;             ret |= check_ptrace_suspend_seccomp();<br>
&gt; &gt;             ret |= check_ptrace_dump_seccomp_filters();<br>
&gt; &gt;             ret |= check_mem_dirty_track();<br>
&gt; &gt;     @@ -896,10 +886,8 @@ int cr_check(void)<br>
&gt; &gt;             ret |= check_cgroupns();<br>
&gt; &gt;<br>
&gt; &gt;      out:<br>
&gt; &gt;     -       if (!ret)<br>
&gt; &gt;     -               print_on_level(DEFAULT_LOGLEVEL, &quot;Looks good.\n&quot;);<br>
&gt; &gt;     -<br>
&gt; &gt;     -       return ret;<br>
&gt; &gt;     +       print_on_level(DEFAULT_LOGLEVEL, &quot;%s\n&quot;, ret ? GOOD_BUT : GOOD);<br>
&gt; &gt;     +       return 0;<br>
&gt; &gt;      }<br>
&gt; &gt;<br>
&gt; &gt;      static int check_tun(void)<br>
&gt; &gt;     @@ -947,32 +935,42 @@ static int check_loginuid(void)<br>
&gt; &gt;             return 0;<br>
&gt; &gt;      }<br>
&gt; &gt;<br>
&gt; &gt;     +struct feature_list {<br>
&gt; &gt;     +       char *name;<br>
&gt; &gt;     +       int (*func)();<br>
&gt; &gt;     +};<br>
&gt; &gt;     +<br>
&gt; &gt;     +static struct feature_list feature_list[] = {<br>
&gt; &gt;     +       { &quot;mnt_id&quot;, check_mnt_id },<br>
&gt; &gt;     +       { &quot;aio_remap&quot;, check_aio_remap },<br>
&gt; &gt;     +       { &quot;timerfd&quot;, check_timerfd },<br>
&gt; &gt;     +       { &quot;tun&quot;, check_tun },<br>
&gt; &gt;     +       { &quot;userns&quot;, check_userns },<br>
&gt; &gt;     +       { &quot;fdinfo_lock&quot;, check_fdinfo_lock },<br>
&gt; &gt;     +       { &quot;seccomp_suspend&quot;, check_ptrace_suspend_seccomp },<br>
&gt; &gt;     +       { &quot;seccomp_filters&quot;, check_ptrace_dump_seccomp_filters },<br>
&gt; &gt;     +       { &quot;loginuid&quot;, check_loginuid },<br>
&gt; &gt;     +       { &quot;cgroupns&quot;, check_cgroupns },<br>
&gt; &gt;     +       { NULL, NULL },<br>
&gt; &gt;     +};<br>
&gt; &gt;     +<br>
&gt; &gt;      int check_add_feature(char *feat)<br>
&gt; &gt;      {<br>
&gt; &gt;     -       if (!strcmp(feat, &quot;mnt_id&quot;))<br>
&gt; &gt;     -               chk_feature = check_mnt_id;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;aio_remap&quot;))<br>
&gt; &gt;     -               chk_feature = check_aio_remap;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;timerfd&quot;))<br>
&gt; &gt;     -               chk_feature = check_timerfd;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;tun&quot;))<br>
&gt; &gt;     -               chk_feature = check_tun;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;userns&quot;))<br>
&gt; &gt;     -               chk_feature = check_userns;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;fdinfo_lock&quot;))<br>
&gt; &gt;     -               chk_feature = check_fdinfo_lock;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;seccomp_suspend&quot;))<br>
&gt; &gt;     -               chk_feature = check_ptrace_suspend_seccomp;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;seccomp_filters&quot;))<br>
&gt; &gt;     -               chk_feature = check_ptrace_dump_seccomp_filters;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;loginuid&quot;))<br>
&gt; &gt;     -               chk_feature = check_loginuid;<br>
&gt; &gt;     -       else if (!strcmp(feat, &quot;cgroupns&quot;))<br>
&gt; &gt;     -               chk_feature = check_cgroupns;<br>
&gt; &gt;     -       else {<br>
&gt; &gt;     -               pr_err(&quot;Unknown feature %s\n&quot;, feat);<br>
&gt; &gt;     -               return -1;<br>
&gt; &gt;     +       struct feature_list *fl;<br>
&gt; &gt;     +<br>
&gt; &gt;     +       if (!strcmp(feat, &quot;list&quot;)) {<br>
&gt; &gt;     +               for (fl = feature_list; fl-&gt;name; fl++)<br>
&gt; &gt;     +                       pr_msg(&quot;%s &quot;, fl-&gt;name);<br>
&gt; &gt;     +               pr_msg(&quot;\n&quot;);<br>
&gt; &gt;     +               return 1;<br>
&gt; &gt;             }<br>
&gt; &gt;<br>
&gt; &gt;     -       return 0;<br>
&gt; &gt;     +       for (fl = feature_list; fl-&gt;name; fl++) {<br>
&gt; &gt;     +               if (!strcmp(feat, fl-&gt;name)) {<br>
&gt; &gt;     +                       chk_feature = fl-&gt;func;<br>
&gt; &gt;     +                       return 0;<br>
&gt; &gt;     +               }<br>
&gt; &gt;     +       }<br>
&gt; &gt;     +       pr_err(&quot;Unknown feature %s\n&quot;, feat);<br>
&gt; &gt;     +       return -1;<br>
&gt; &gt;      }<br>
&gt; &gt;     diff --git a/criu/cr-service.c b/criu/cr-service.c<br>
&gt; &gt;     index 88d4af7..a1d843d 100644<br>
&gt; &gt;     --- a/criu/cr-service.c<br>
&gt; &gt;     +++ b/criu/cr-service.c<br>
&gt; &gt;     @@ -567,8 +567,8 @@ static int check(int sk)<br>
&gt; &gt;<br>
&gt; &gt;             setproctitle(&quot;check --rpc&quot;);<br>
&gt; &gt;<br>
&gt; &gt;     -       /* Check only minimal kernel support */<br>
&gt; &gt;     -       opts.check_ms_kernel = true;<br>
&gt; &gt;     +       /* Check only abolutely needed kernel features */<br>
&gt; &gt;     +       opts.check_abs_features = true;<br>
&gt; &gt;<br>
&gt; &gt;             if (!cr_check())<br>
&gt; &gt;                     resp.success = true;<br>
&gt; &gt;     diff --git a/criu/crtools.c b/criu/crtools.c<br>
&gt; &gt;     index a8ddb82..2120082 100644<br>
&gt; &gt;     --- a/criu/crtools.c<br>
&gt; &gt;     +++ b/criu/crtools.c<br>
&gt; &gt;     @@ -275,6 +275,7 @@ int main(int argc, char *argv[], char *envp[])<br>
&gt; &gt;                     { &quot;timeout&quot;,                    required_argument,      0, 1072 },<br>
&gt; &gt;                     { &quot;external&quot;,                   required_argument,      0, 1073 },<br>
&gt; &gt;                     { &quot;empty-ns&quot;,                   required_argument,      0, 1074 },<br>
&gt; &gt;     +               { &quot;abs&quot;,                        no_argument,            0, 1075 },<br>
&gt; &gt;                     { },<br>
&gt; &gt;             };<br>
&gt; &gt;<br>
&gt; &gt;     @@ -455,8 +456,8 @@ int main(int argc, char *argv[], char *envp[])<br>
&gt; &gt;                             opts.force_irmap = true;<br>
&gt; &gt;                             break;<br>
&gt; &gt;                     case 1054:<br>
&gt; &gt;     -                       opts.check_ms_kernel = true;<br>
&gt; &gt;     -                       break;<br>
&gt; &gt;     +                       pr_err(&quot;--ms is deprecated, use --abs instead\n&quot;);<br>
&gt; &gt;     +                       return 1;<br>
&gt; &gt;                     case &#39;L&#39;:<br>
&gt; &gt;                             opts.libdir = optarg;<br>
&gt; &gt;                             break;<br>
&gt; &gt;     @@ -490,8 +491,11 @@ int main(int argc, char *argv[], char *envp[])<br>
&gt; &gt;                                     return 1;<br>
&gt; &gt;                             break;<br>
&gt; &gt;                     case 1063:<br>
&gt; &gt;     -                       if (check_add_feature(optarg) &lt; 0)<br>
&gt; &gt;     +                       ret = check_add_feature(optarg);<br>
&gt; &gt;     +                       if (ret &lt; 0)    /* invalid kernel feature name */<br>
&gt; &gt;                                     return 1;<br>
&gt; &gt;     +                       if (ret &gt; 0)    /* list kernel features and exit */<br>
&gt; &gt;     +                               return 0;<br>
&gt; &gt;                             break;<br>
&gt; &gt;                     case 1064:<br>
&gt; &gt;                             if (!add_skip_mount(optarg))<br>
&gt; &gt;     @@ -554,6 +558,9 @@ int main(int argc, char *argv[], char *envp[])<br>
&gt; &gt;                                     return 1;<br>
&gt; &gt;                             }<br>
&gt; &gt;                             break;<br>
&gt; &gt;     +               case 1075:<br>
&gt; &gt;     +                       opts.check_abs_features = true;<br>
&gt; &gt;     +                       break;<br>
&gt; &gt;                     case &#39;V&#39;:<br>
&gt; &gt;                             pr_msg(&quot;Version: %s\n&quot;, CRIU_VERSION);<br>
&gt; &gt;                             if (strcmp(CRIU_GITID, &quot;0&quot;))<br>
&gt; &gt;     @@ -714,7 +721,7 @@ usage:<br>
&gt; &gt;      &quot;Usage:\n&quot;<br>
&gt; &gt;      &quot;  criu dump|pre-dump -t PID [&lt;options&gt;]\n&quot;<br>
&gt; &gt;      &quot;  criu restore [&lt;options&gt;]\n&quot;<br>
&gt; &gt;     -&quot;  criu check [--ms]\n&quot;<br>
&gt; &gt;     +&quot;  criu check [--feature FEAT]\n&quot;<br>
&gt; &gt;      &quot;  criu exec -p PID &lt;syscall-string&gt;\n&quot;<br>
&gt; &gt;      &quot;  criu page-server\n&quot;<br>
&gt; &gt;      &quot;  criu service [&lt;options&gt;]\n&quot;<br>
&gt; &gt;     @@ -807,8 +814,16 @@ usage:<br>
&gt; &gt;      &quot;                            socket[inode]\n&quot;<br>
&gt; &gt;      &quot;                            file[mnt_id:inode]\n&quot;<br>
&gt; &gt;      &quot;  --empty-ns {net}\n&quot;<br>
&gt; &gt;     -&quot;                      Create a namespace, but don&#39;t restore its properies.\n&quot;<br>
&gt; &gt;     -&quot;                      An user will retore them from action scripts.\n&quot;<br>
&gt; &gt;     +&quot;                        Create a namespace, but don&#39;t restore its properies.\n&quot;<br>
&gt; &gt;     +&quot;                        An user will retore them from action scripts.\n&quot;<br>
&gt; &gt;     +&quot;Check options:\n&quot;<br>
&gt; &gt;     +&quot;  --abs                 check availability of absolutely needed kernel features\n&quot;<br>
&gt; &gt;     +&quot;  --ms                  deprecated, use --abs (don&#39;t check not yet merged kernel features)\n&quot;<br>
&gt; &gt;     +&quot;  --feature FEAT        check availability of one of the following kernel features\n&quot;<br>
&gt; &gt;     +&quot;                        &quot;<br>
&gt; &gt;     +       );<br>
&gt; &gt;     +       check_add_feature(&quot;list&quot;);<br>
&gt; &gt;     +       pr_msg(<br>
&gt; &gt;      &quot;\n&quot;<br>
&gt; &gt;      &quot;* Logging:\n&quot;<br>
&gt; &gt;      &quot;  -o|--log-file FILE    log file name\n&quot;<br>
&gt; &gt;     @@ -836,7 +851,6 @@ usage:<br>
&gt; &gt;      &quot;Other options:\n&quot;<br>
&gt; &gt;      &quot;  -h|--help             show this text\n&quot;<br>
&gt; &gt;      &quot;  -V|--version          show version\n&quot;<br>
&gt; &gt;     -&quot;     --ms               don&#39;t check not yet merged kernel features\n&quot;<br>
&gt; &gt;             );<br>
&gt; &gt;<br>
&gt; &gt;             return 0;<br>
&gt; &gt;     diff --git a/criu/include/cr_options.h b/criu/include/cr_options.h<br>
&gt; &gt;     index a6f0b3e..ba2633a 100644<br>
&gt; &gt;     --- a/criu/include/cr_options.h<br>
&gt; &gt;     +++ b/criu/include/cr_options.h<br>
&gt; &gt;     @@ -56,7 +56,7 @@ struct cr_options {<br>
&gt; &gt;             int                     final_state;<br>
&gt; &gt;             char                    *show_dump_file;<br>
&gt; &gt;             char                    *show_fmt;<br>
&gt; &gt;     -       bool                    check_ms_kernel;<br>
&gt; &gt;     +       bool                    check_abs_features;<br>
&gt; &gt;             bool                    show_pages_content;<br>
&gt; &gt;             union {<br>
&gt; &gt;                     bool            restore_detach;<br>
&gt; &gt;     --<br>
&gt; &gt;     2.7.0.rc3.207.g0ac5344<br>
&gt; &gt;<br>
&gt; &gt;<br>
</div></div></blockquote></div><br></div>