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:44:13 +0000 (06:44 +0100)
commit8655a4538d01fe2357a26c4c1c84cfb3a53888fe
tree0caf911d234b81c1f69654763052c0a3193131ff
parent4c30d59d397e40fe1979335ede6ac35d54b88911
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