[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] x86_64: install emergency handler for double fault
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 2/3] x86_64: install emergency handler for double fault |
Date: |
Sat, 17 Jun 2023 23:12:45 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Luca Dariz, le jeu. 15 juin 2023 23:49:30 +0200, a ecrit:
> diff --git a/i386/i386/ktss.c b/i386/i386/ktss.c
> index 1d880167..52f3722c 100644
> --- a/i386/i386/ktss.c
> +++ b/i386/i386/ktss.c
> @@ -61,6 +61,7 @@ ktss_fill(struct task_tss *myktss, struct real_descriptor
> *mygdt)
> /* Initialize the master TSS. */
> #ifdef __x86_64__
> myktss->tss.rsp0 = (unsigned long)(exception_stack+1024);
> + myktss->tss.ist1 = (unsigned long)(exception_stack+1024);
Shouldn't we use a different stack, to avoid overwriting information
from the first fault?
Samuel
[PATCH 3/3] x86_64: add a critical section on entry and exit from syscall/sysret, Luca Dariz, 2023/06/15
Re: [PATCH 1/3] x86_64: use solid intstack already during bootstrap, Samuel Thibault, 2023/06/17