From 01eea09519b93ea44123db08895bbb9fcc281e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kowalczyk?= Date: Thu, 9 Apr 2020 14:33:03 +0200 Subject: [PATCH] [Linux-SGX] Remove that weird hack with int3 skipping --- Pal/src/host/Linux-SGX/db_exception.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Pal/src/host/Linux-SGX/db_exception.c b/Pal/src/host/Linux-SGX/db_exception.c index b8516ad1..09d86467 100644 --- a/Pal/src/host/Linux-SGX/db_exception.c +++ b/Pal/src/host/Linux-SGX/db_exception.c @@ -146,10 +146,7 @@ static void save_pal_context(PAL_CONTEXT* ctx, sgx_cpu_context_t* uc, static bool handle_ud(sgx_cpu_context_t * uc) { uint8_t * instr = (uint8_t *) uc->rip; - if (instr[0] == 0xcc) { /* skip int 3 */ - uc->rip++; - return true; - } else if (instr[0] == 0x0f && instr[1] == 0xa2) { + if (instr[0] == 0x0f && instr[1] == 0xa2) { /* cpuid */ unsigned int values[4]; if (!_DkCpuIdRetrieve(uc->rax & 0xffffffff,