Mindmap
5.13 Limit Checking
Inhalt der Mindmap
5.13 Limit Checking
Used to prevent a process from accessing memory locations outside segments allocated to that process
- in enforced when a process needs to access a memory location in a given segment and checks the location is within the segment
- Limit checking prevents programming errors or malicious programs crashing the OS or overwriting sensitive infomation
- in enforced when a process needs to access a memory location in a given segment and checks the location is within the segment
the limit check compares the value of an offset with the size of the segment
- The size of a segment is stored in the limit field of the segment descriptor and the G (granularity) bit
- G Bit = 0
- If the G bit is clear the size of the segment is the size of the limit field
- The limit is a 20 bit field
- segment cannot exceed 2/20 =1 MB
- The limit is a 20 bit field
- If the G bit is clear the size of the segment is the size of the limit field
- G Bit = 1
- When the G bit is set the size of the segment is multiplied by 2/12
- the size of the segment cannot exceed 2/32 = 4GB
- When the G bit is set the size of the segment is multiplied by 2/12
- G Bit = 0
- The size of a segment is stored in the limit field of the segment descriptor and the G (granularity) bit
Informationen
- Beschreibung
- Masters Comp Sec Mindmap am 5.13 Limit Checking, erstellt von Craig Parker am 18/12/2014.
- Erstellt von
- Craig Parker
- Aufrufe
- 10
- Bewertung