From: Andrew Cooper Date: Wed, 23 Sep 2020 13:09:03 +0000 (+0100) Subject: Adjust XSA-221 PoC based on XSA-343 behaviour change X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=604f403907e47d4eb447040faf0f213f1b16b20f;p=people%2Fandrewcoop%2Fxen-test-framework.git Adjust XSA-221 PoC based on XSA-343 behaviour change XSA-343 has made SCHEDOP_poll fail for un-established event channels, which is reasonable behaviour. Don't bother trying to audit the error codes, and always run to the end of the loop. Signed-off-by: Andrew Cooper --- diff --git a/tests/xsa-221/main.c b/tests/xsa-221/main.c index 4998640..66efe97 100644 --- a/tests/xsa-221/main.c +++ b/tests/xsa-221/main.c @@ -33,25 +33,7 @@ void test_main(void) }; for ( port = 32; port <= 4096; ++port ) - { - int rc = hypercall_sched_op(SCHEDOP_poll, &poll); - - switch ( rc ) - { - case 0: - continue; - - case -EINVAL: - /* Upper ABI limit of 2l evtchn. */ - if ( port == 4096 ) - break; - - /* Fallthrough. */ - default: - return xtf_error("Error: Unexpected " - "SCHEDOP_poll(port %u) return: %d\n", port, rc); - } - } + hypercall_sched_op(SCHEDOP_poll, &poll); /* * If Xen is still alive at this point, it hasn't fallen over a NULL