summaryrefslogtreecommitdiff
path: root/test/double-poll-crash.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-02-09 10:56:59 -0700
committerJens Axboe <axboe@kernel.dk>2022-02-09 10:56:59 -0700
commite4170c717ef9a619c1df1a9840613f30db7baf19 (patch)
tree838bb2243a9e4f671849f0875dbe5c9854581614 /test/double-poll-crash.c
parent5bde26e4587168a439cabdbe73740454249e5204 (diff)
downloadliburing-e4170c717ef9a619c1df1a9840613f30db7baf19.tar.gz
liburing-e4170c717ef9a619c1df1a9840613f30db7baf19.tar.bz2
test/double-poll-crash: only run on x86/x86-64
Various syzbot oddities makes this x86 specific, so just disable the run on other archs. Also kill useless mmap() while in there. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'test/double-poll-crash.c')
-rw-r--r--test/double-poll-crash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/double-poll-crash.c b/test/double-poll-crash.c
index d9277be..e932bec 100644
--- a/test/double-poll-crash.c
+++ b/test/double-poll-crash.c
@@ -107,11 +107,13 @@ uint64_t r[4] = {0xffffffffffffffff, 0x0, 0x0, 0xffffffffffffffff};
int main(int argc, char *argv[])
{
+#if !defined(__i386) && !defined(__x86_64__)
+ return 0;
+#endif
if (argc > 1)
return 0;
- mmap((void *)0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);
mmap((void *)0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul);
mmap((void *)0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);
intptr_t res = 0;