diff options
author | Mathias Krause <minipli@googlemail.com> | 2015-07-06 11:48:57 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-07-06 11:48:57 -0400 |
commit | 4dad8407a98f1f21d62481f5271088c79338bfd6 (patch) | |
tree | 67bf1fa36751c2b4feab148890147a30745d00c1 | |
parent | e8a79036f53f3830f26baa653dd1d075cc62474b (diff) | |
download | libseccomp-4dad8407a98f1f21d62481f5271088c79338bfd6.tar.gz |
tests: extend 12-sim-basic_masked_ops with 64 bit values
Add test vectors with bits set in the upper half of the syscall argument.
They trigger a bug with mask values having the upper half set to 0. We
accidentally emit a test for 0 in this case when we should not test the
upper half at all.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
(imported from commit 62f1e7e2fa6163964322d232bde89e37478772e9)
-rw-r--r-- | tests/12-sim-basic_masked_ops.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/12-sim-basic_masked_ops.tests b/tests/12-sim-basic_masked_ops.tests index 20e0f6d..5f1327f 100644 --- a/tests/12-sim-basic_masked_ops.tests +++ b/tests/12-sim-basic_masked_ops.tests @@ -30,6 +30,12 @@ test type: bpf-sim 12-sim-basic_masked_ops all 1000 0 0x400 2 N N N KILL 12-sim-basic_masked_ops all 1000 0 0x402-0x4FF 2 N N N KILL 12-sim-basic_masked_ops all 1000 0 0x10300-0x103FF 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0x00000000F00003E8 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0x00000000800003E8 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0x00000001800003E8 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0x00000001000003E8 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0x0000000F000003E8 2 N N N ALLOW +12-sim-basic_masked_ops all 1000 0 0xFFFFFFFFFFFF03E8 2 N N N ALLOW test type: bpf-sim-fuzz |