]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 6 Apr 2017 08:21:22 +0000 (09:21 +0100)
commitd039c66901e69d7b4f864d49d0882e7f36150b22
tree7d145546b80b2dab30964098b8686330e87305ec
parent350595c52fc1d44516c1f8e4b65efc21518dc2c2
samples/seccomp: fix 64-bit comparison macros

BugLink: http://bugs.launchpad.net/bugs/1673538
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
samples/seccomp/bpf-helper.h