ring 0 to ring 3 without iret
-
- Member
- Posts: 70
- Joined: Tue Jul 14, 2020 4:01 am
- Libera.chat IRC: clementttttttttt
ring 0 to ring 3 without iret
is there even a way?
Re: ring 0 to ring 3 without iret
Why even try? IRET has worked satisfactorily for decades and is unlikely to be phased out anytime soon. SYSRET might be faster, though.
Carpe diem!
Re: ring 0 to ring 3 without iret
You can do it with hardware task switching, but then you must first load the register area of the TSS with the desired registers for ring 3. However, it has side effects since a new context is loaded, including a new TR and potentially CR3. When you return to kernel you will need to fixup the context by copying back the registers from ring 3 to the original TSS and then jmp back to it. I don't think this is a method that is practical for changing rings.