bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] fix fs/gs save/restore and USER32


From: Samuel Thibault
Subject: Re: [PATCH] fix fs/gs save/restore and USER32
Date: Thu, 18 May 2023 23:12:32 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Luca Dariz, le jeu. 18 mai 2023 23:08:39 +0200, a ecrit:
> * x86_64/locore.S: fix PUSH_FSGS -> _ISR and always make room for
>   fsgsbase on a 64-bit kernel.
> ---
>  x86_64/locore.S | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/x86_64/locore.S b/x86_64/locore.S
> index a782ec8a..d456b06b 100644
> --- a/x86_64/locore.S
> +++ b/x86_64/locore.S
> @@ -446,11 +446,9 @@ push_fs:
>       pushq   %fs                     /* restore fs, */
>  push_gs:
>       pushq   %gs                     /* restore gs. */
> -#ifdef USER32
>  push_gsbase:
>       pushq   $0
>       pushq   $0
> -#endif
>  push_segregs:
>       movq    %rax,R_TRAPNO(%rsp)     /* set trap number */
>       movq    %rdx,R_ERR(%rsp)        /* set error code */
> @@ -873,7 +871,7 @@ ast_from_interrupt:
>       push    %rdx
>       mov     %es,%rdx
>       push    %rdx
> -     PUSH_FSGS
> +     PUSH_FSGS_ISR
>  
>       mov     %ss,%dx                 /* switch to kernel segments */
>       mov     %dx,%ds
> -- 
> 2.30.2
> 
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]