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.
- is true of privileged instructions?
- 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
Post a Comment