]> git.baikalelectronics.ru Git - 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)
commit2c2ed861e2d9da01c7c931c92d385f1de7e37eb2
tree97294420028fa5da68eea29e4fdbfeea518a20e9
parent56bfd77d2de4945a1b3920bf962cd2407ff74379
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