Is there a list of errors that will appear as "segfaults" if they are really not related to memory access?

In this question, I found out that trying to run privileged commands when not in ring 0 can lead to what looks like segfaultin a user process, and I have two subsequent questions.

  • Does this apply to all privileged instructions?
  • What other types of errors can fake segfault cause, but are not related to trying to read memory?
+1
source share
2 answers

, #GP , . : CLI, CLTS, HLT, IN, INT ( ), INVD, INVLPG, IRET ( ), LDMXCSR ( (t216 > ), MOV ( CRx DRx), MWAIT, > ( ECX), OUT, RDMSR, RDPMC, SWAPGS, SYSEXIT, SYSRET, WBINVD, WRMSR, XGETBV ( ECX), XRSTOR, XSETBV

+1

, , MOV / .

- , "", . , JMP CALL , . , .

, , LEA , , .

, , , SEGV, , , POP, PUSH, CALL RET, ( CALL, valid, RET , ... .)

, IP- , , --... SEGV. , , (.. , RET, INT 3 , , , ...)

-1

Source: https://habr.com/ru/post/1530918/


All Articles