From 4dad8407a98f1f21d62481f5271088c79338bfd6 Mon Sep 17 00:00:00 2001 From: Mathias Krause Date: Mon, 6 Jul 2015 11:48:57 -0400 Subject: 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 Signed-off-by: Paul Moore (imported from commit 62f1e7e2fa6163964322d232bde89e37478772e9) --- tests/12-sim-basic_masked_ops.tests | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1