📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

Blogs >> EliCZ's Blog

Created: Thursday, June 8 2006 08:33.50 CDT  
Printer Friendly ...
#SS is not generated in real mode on some CPUs
Author: EliCZ # Views: 2782

http://www.anticracking.sk/EliCZ/bugs/SSGP.zip

Some processors do not generate 'Stack Exception' (#SS, Vector 12) when a stack segment limit is overrun in real mode. This is not vendor-specific behaviour.

Example:

  MOV  SP, 0FFFFH
  POP  AX

should generate #SS. If it doesn't so, SP is normally adjusted, AL contains byte from SS:[0FFFFH] and AH is undefined (0 or higher byte of CS? value). Even constructions that would stop CPU are allowed:

  MOV  SP, 1
  PUSH AX

or

  MOV  SP, 5
  INT  xxH

IRET from such INT will succeed even if stack contains incomplete iret information (higher byte of CS is lost). Is there some stack cache?.

SSGP.com's output:

a) Standard behaviour, (e.g. AMD 00020F32)
#SS IP=014E SI=FFFF EAX=FFFFFFFF
#GP IP=0170 SI=FFFF EAX=FFFFFFFF
#SS IP=018E SI=FFFF EAX=FFFFFFFF
#GP IP=01AC SI=FFFF EAX=FFFFFFFF

b) No #SS (e.g. Intel 00000F34, AMD 00000FC0)
#NN IP=AAA0 SI=0003 EAX=00000033
#GP IP=0170 SI=FFFF EAX=FFFFFFFF
#NN IP=AAA2 SI=FFFF EAX=00000033
#GP IP=01AC SI=FFFF EAX=FFFFFFFF
#NN IP=AAA4 SI=FFFF EAX=00000033
#NN IP=AAA5 SI=FFFF EAX=00004227


------
See you next week at REcon.




Add New Comment
Comment:









There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit