linux - Is there a list of errors will show up as `segfaults` when they are not really related to memory access? -


in this question, learned attempting run privileged instructions when not in ring 0 can cause looks segfault in user process, , have 2 follow-up questions.

  1. is true of privileged instructions?
  2. what other sorts of errors can cause fake segfault not related trying read memory?

read through instruction set reference , see #gp listed non-memory issue. incomplete list: cli, clts, hlt, in, int (with invalid vector), invd, invlpg, iret (under circumstances), ldmxcsr(setting reserved bits), lgdt, lidt, lldt, lmsw, ltr, monitor (with ecx != 0), mov (to crx or drx), mwait (with invalid ecx), out, rdmsr, rdpmc, swapgs, sysexit, sysret, wbinvd, wrmsr, xgetbv (invalid ecx), xrstor, xsetbv


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -