• Register
0 votes
1.1k views

Problem :

I am learning the Kernel mode. If I run the below assembly sequence in the kernel mode of my Windows 7 x64 bit machine running in the VMWare Workstation virtual machine:

xor eax, eax
mov ax, gs
mov gs, ax     ; this line

Then that last line mov gs, ax instruction immediately causes my VM to crash with the below shown pop-up message:

A fault has occurred causing a virtual CPU to enter the shutdown state. If this fault had occurred outside of a virtual machine, it would have caused the physical machine to restart. The shutdown state can be reached by incorrectly configuring the virtual machine, a bug in the guest operating system, or a problem in VMWare Workstation.

How to fix this issue?

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have also faced such issue while I was learning to use the kernel mode.

Your mov gs,ax instruction is loading a dummy 32-bit base value stored in your GDT and not your 64-bit value stored in the IA32_GS_BASE. You should know here the base address of a GS segment is now set to 0 and not to a address of your PCR for your current CPU. And on loading such incorrect GS base it is obvious that before your Windows kernel tries to use a GS register to access your PCR and while doing so ends up reading what is most probably the unmapped memory causing the very unexpected kernel page fault and crashing. And so you are facing this issue.

5 2 1
4,980 points

Related questions

0 votes
1 answer 5 views
5 views
Problem: The vm session was closed before any attempt to power it on.
asked Feb 16 Ethan ross 1.8k points
0 votes
1 answer 88 views
88 views
Problem: I am new, I need help, can anyone help me? The wireless spectrum, as defined by the FCC, spans between which two frequencies? A) 2 KHz B) 9 KHz C) 300 GHz D) 500 GHz
asked Feb 17, 2020 maddi86 5.4k points
0 votes
1 answer 6 views
6 views
Problem: Hi there! I am trying to run following program: using System; using System.IO; namespace ConsoleApp2 { class Program { public static void Main(string[] args) { FileStream fs = File.Open("e:\\file.txt", FileMode.Open); Console.ReadKey(); } ... .IOFileNotFoundException could not load file or assembly I want to know why these exceptions are thrown by the compiler and how to resolve them?
asked Dec 4, 2020 Code Learner 5.8k points
0 votes
1 answer 49 views
49 views
how should I fix this problem?
asked Jan 2 TeamScript 13.5k points
0 votes
1 answer 4 views
4 views
the kernel power manager has initiated a shutdown transition.
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 6 views
6 views
Problem: the kernel power manager has initiated a shutdown transition.
asked Feb 16 Ethan ross 1.8k points
0 votes
1 answer 1 view
1 view
Problem: an ssl error has occurred and a secure connection to the server cannot be made Since I upgraded my existing project with iOS 9, I keep getting the error : An SSL error has occurred and a secure connection to the server cannot be made.
asked 16 hours ago Umar Ahmad 2.1k points
0 votes
1 answer 143 views
143 views
Problem : Since I upgraded the existing project with the iOS 9, I keep getting the below error : “An SSL error has occurred and a secure connection to the server cannot be made.”
asked Jan 4, 2020 alecxe 7.5k points
0 votes
1 answer 821 views
821 views
Problem: I am beginner to Python programming. I am trying to do some very simple PySide and PyQt tutorials in the IPython. In one of the tasks I simply needs to create the window with some of the sliders to exhibit the slots and signals.But as soon as I close a window of my ... /scratch/<ipython-input-1-88966dcfb499> in main() 29 w.show() 30 app.exec_() ---> 31 sys.exit(0) 32 33 SystemExit: 0
asked Aug 8, 2020 Raphael Pacheco 4.9k points