Skip to content

Commit 311cb32

Browse files
drakenclimberpcmoore
authored andcommitted
tests: Skip tests 60 and 61 on x32
x32 syscalls require the X32_SYSCALL_BIT (0x4000 0000) to be set, and thus syscalls less than that are invalid on the x32 architecture. Tests 60 and 61 utilize syscalls less than 0x4000 0000, so skip those tests for the x32 arch. Fixes Github Issue #472. Reported-by: Sam James <[email protected]> Signed-off-by: Tom Hromatka <[email protected]> [PM: fixed test header indentation to properly align] Signed-off-by: Paul Moore <[email protected]> (imported from commit 9b9ea8e)
1 parent 38c524f commit 311cb32

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/60-sim-precompute.tests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
test type: bpf-sim
99

10-
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
11-
60-sim-precompute all 0-10 N N N N N N ALLOW
12-
60-sim-precompute all 1000 N N N N N N KILL
13-
60-sim-precompute all 1001 N N N N N N KILL
10+
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
11+
60-sim-precompute all,-x32 0-10 N N N N N N ALLOW
12+
60-sim-precompute all,-x32 1000 N N N N N N KILL
13+
60-sim-precompute all,-x32 1001 N N N N N N KILL
1414

1515
test type: bpf-sim-fuzz
1616

tests/61-sim-transactions.tests

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77

88
test type: bpf-sim
99

10-
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
11-
61-sim-transactions all 1000 N N N N N N KILL
12-
61-sim-transactions all 1001 N N N N N N KILL
13-
61-sim-transactions all 1002 N N N N N N KILL
14-
61-sim-transactions all 1003 N N N N N N KILL
15-
61-sim-transactions all 1101-1104 N N N N N N KILL
16-
61-sim-transactions all 1105 N N N N N N ALLOW
17-
61-sim-transactions all 1106-1109 N N N N N N KILL
18-
61-sim-transactions all 1110 N N N N N N ALLOW
19-
61-sim-transactions all 1200-1210 N N N N N N ALLOW
10+
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
11+
61-sim-transactions all,-x32 1000 N N N N N N KILL
12+
61-sim-transactions all,-x32 1001 N N N N N N KILL
13+
61-sim-transactions all,-x32 1002 N N N N N N KILL
14+
61-sim-transactions all,-x32 1003 N N N N N N KILL
15+
61-sim-transactions all,-x32 1101-1104 N N N N N N KILL
16+
61-sim-transactions all,-x32 1105 N N N N N N ALLOW
17+
61-sim-transactions all,-x32 1106-1109 N N N N N N KILL
18+
61-sim-transactions all,-x32 1110 N N N N N N ALLOW
19+
61-sim-transactions all,-x32 1200-1210 N N N N N N ALLOW
2020

2121
test type: bpf-sim-fuzz
2222

0 commit comments

Comments
 (0)