]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
samples/seccomp: fix 64-bit comparison macros
authorMathias Svensson <idolf@google.com>
Fri, 6 Jan 2017 21:32:39 +0000 (13:32 -0800)
committerJames Morris <james.l.morris@oracle.com>
Mon, 9 Jan 2017 06:22:03 +0000 (17:22 +1100)
commit916cafdc95843fb9af5fd5f83ca499d75473d107
tree97294420028fa5da68eea29e4fdbfeea518a20e9
parenta121103c922847ba5010819a3f250f1f7fc84ab8
samples/seccomp: fix 64-bit comparison macros

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>
Cc: stable@vger.kernel.org
Signed-off-by: James Morris <james.l.morris@oracle.com>
samples/seccomp/bpf-helper.h