OSDN Git Service

samples/seccomp: fix 64-bit comparison macros
authorMathias Svensson <idolf@google.com>
Fri, 6 Jan 2017 21:32:39 +0000 (13:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:46 +0000 (06:41 +0100)
commitd6407e10bcf540a67afbeca83e60a4323cba8b33
treeb580a7e2b92b7c2797edd8c8fa0cdfb427624b11
parentd6dcec965bc53eb375e50642b3b1abb9b835c2a7
samples/seccomp: fix 64-bit comparison macros

commit 916cafdc95843fb9af5fd5f83ca499d75473d107 upstream.

There were some bugs in the JNE64 and JLT64 comparision macros. This fixes
them, improves comments, and cleans up the file while we are at it.

Reported-by: Stephen Röttger <sroettger@google.com>
Signed-off-by: Mathias Svensson <idolf@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/seccomp/bpf-helper.h