Skip to contentSkip to conversation

Windows on ARM machines : UEFI bugs

DISCUSSION my123 (@never_released) 2 participants 11 messages Aug 23, 2016

lore
Share & tools
lore
#0 lore raw

On WoA(Windows on ARM) machines, ExitBootServices doesn't work, especially on nVidia devices. What action should be taken?

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

Thanks,

#1 lore raw

Note that on the Surface RT, the first GOP handle is unusable, the search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak my123 (@never_released)
Hantar: mardi 23 août 2016 11:33
Kepada: [email protected]
Subjek: Windows on ARM machines : UEFI bugs

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

Thanks,

#2 lore raw
Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, the search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

#3 lore raw

It returns EFI_INVALID_PARAMETER and refuses to work here.
(I didn't try to reverse engineer how Windows does it, yet)
-----Mesej Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#4 lore raw

I have access to a Surface RT, and it doesn't affect other WoA devices with the same SoC. ConOut is also unusable on the Surface RT.

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de my123 (@never_released) Envoyé : mardi 23 août 2016 12:24
À : 'The development of GNU GRUB' <[email protected]>
Objet : RE: Windows on ARM machines : UEFI bugs

It returns EFI_INVALID_PARAMETER and refuses to work here.
(I didn't try to reverse engineer how Windows does it, yet) -----Mesej Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw
In reply to my123 (@never_released)
Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 39 lines

(I didn't try to reverse engineer how Windows does it, yet)
-----Mesej Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#6 lore raw

The call to ExitBootServices as done by Grub returns EFI_INVALID_PARAMETER from the firmware.

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:11
À : The development of GNU GRUB <[email protected]>
Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 37 lines

(I didn't try to reverse engineer how Windows does it, yet) -----Mesej Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#7 lore raw
Quoted 2 lines · Longhorn

The call to ExitBootServices as done by Grub returns EFI_INVALID_PARAMETER from the firmware.

grub has many different loaders. What exactly are you doing?

Quoted 64 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:11
À : The development of GNU GRUB <[email protected]>
Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 37 lines

(I didn't try to reverse engineer how Windows does it, yet) -----Mesej Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#8 lore raw

Load a Linux kernel on Grub for UEFI on ARM.

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:20
À : The development of GNU GRUB <[email protected]>
Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · Longhorn

The call to ExitBootServices as done by Grub returns EFI_INVALID_PARAMETER from the firmware.

grub has many different loaders. What exactly are you doing?

Quoted 61 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:11 À :
The development of GNU GRUB <[email protected]> Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 38 lines

(I didn't try to reverse engineer how Windows does it, yet) -----Mesej
Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#9 lore raw
Quoted 2 lines · Longhorn

Load a Linux kernel on Grub for UEFI on ARM.

In this case grub should retry ExitBootServices again. If ExitBootServices always returns EFI_INVALID_PARAMETER, grub will retry it indefinitely. Is it what you see? If not, *WHAT* do you see?

Quoted 88 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:20
À : The development of GNU GRUB <[email protected]>
Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · Longhorn

The call to ExitBootServices as done by Grub returns EFI_INVALID_PARAMETER from the firmware.

grub has many different loaders. What exactly are you doing?

Quoted 61 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:11 À :
The development of GNU GRUB <[email protected]> Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 38 lines

(I didn't try to reverse engineer how Windows does it, yet) -----Mesej
Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#10 lore raw

Yes, I see an infinite ExitBootServices loop that prevents booting.

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:44
À : The development of GNU GRUB <[email protected]>
Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · Longhorn

Load a Linux kernel on Grub for UEFI on ARM.

In this case grub should retry ExitBootServices again. If ExitBootServices always returns EFI_INVALID_PARAMETER, grub will retry it indefinitely. Is it what you see? If not, *WHAT* do you see?

Quoted 84 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:20 À :
The development of GNU GRUB <[email protected]> Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · Longhorn

The call to ExitBootServices as done by Grub returns EFI_INVALID_PARAMETER from the firmware.

grub has many different loaders. What exactly are you doing?

Quoted 61 lines

-----Message d'origine-----
De : Grub-devel [mailto:[email protected]] De la part de Andrei Borzenkov Envoyé : mardi 23 août 2016 13:11 À :
The development of GNU GRUB <[email protected]> Objet : Re: Windows on ARM machines : UEFI bugs

Quoted 2 lines · On Tue, Aug 23, 2016 at 1:24 PM, my123 (@never_released) <[email protected]>…

It returns EFI_INVALID_PARAMETER and refuses to work here.

What is "it"? What exactly are you doing?

Quoted 38 lines

(I didn't try to reverse engineer how Windows does it, yet) -----Mesej
Asli-----
Daripada: Grub-devel [mailto:[email protected]] Bagi Pihak Andrei Borzenkov
Hantar: mardi 23 août 2016 12:09
Kepada: The development of GNU GRUB <[email protected]>
Subjek: Re: Windows on ARM machines : UEFI bugs

Quoted 4 lines · On Tue, Aug 23, 2016 at 12:39 PM, my123 (@never_released) <[email protected]>…

Note that on the Surface RT, the first GOP handle is unusable, th search for handles has to start at handle 1. This bug doesn’t affect other WoA devices.

Well, someone who has access to such devices needs to find out how to detect this condition.

Quoted 5 lines

On WoA(Windows on ARM) machines, ExitBootServices doesn’t work, especially on nVidia devices. What action should be taken?

Not sure I understand what you say. Could you elaborate on what you are trying to do and what does not work? For booting Windows loader is launched as EFI executable so no ExitBootServices happens.

Quoted 5 lines

(this is a part of the port of Linux to these machines, after neutralizing Secure Boot)

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel