From 1bf5eb12ff86ff72f837a79ea186d4391edd4214 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Mon, 13 Oct 2025 15:05:46 +0200 Subject: executor: rework GDT setup for SYZOS Untangle SYZOS GDT setup from the legacy one. Drop LDT and TSS for now. --- executor/common_kvm_amd64_syzos.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'executor/common_kvm_amd64_syzos.h') diff --git a/executor/common_kvm_amd64_syzos.h b/executor/common_kvm_amd64_syzos.h index a8e825ab9..9baf9c5f5 100644 --- a/executor/common_kvm_amd64_syzos.h +++ b/executor/common_kvm_amd64_syzos.h @@ -77,6 +77,13 @@ typedef enum { UEXIT_ASSERT = (uint64)-3, } uexit_code; +__attribute__((naked)) +GUEST_CODE static void +dummy_null_handler() +{ + asm("iretq"); +} + // Main guest function that performs necessary setup and passes the control to the user-provided // payload. __attribute__((used)) -- cgit mrf-deployment