flat assembler
Message board for the users of flat assembler.

Index > OS Construction > long mode segment protection?

Author
Thread Post new topic Reply to topic
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 19 Mar 2010, 16:48
I didnt found ANY information in manuals about it.
Why does data segment can be written to without write bit set in long mode?
when i load ds/es/fs/gs, write bit is ignored. base apply only to fs and gs, ok.

why write is ignored?
when i load SS, it require write permissions btw.
Post 19 Mar 2010, 16:48
View user's profile Send private message Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen 20 Mar 2010, 19:21
Correct me if I'm wrong, but it turned out that paging is the usual way to protect memory in most 32-bit OS's so segment-level protection became unused. This featured 64-bit OS's.
Post 20 Mar 2010, 19:21
View user's profile Send private message Visit poster's website Reply with quote
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 20 Mar 2010, 19:31
yes it suck but i care if its used. i must know.......
Post 20 Mar 2010, 19:31
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 557
smiddy 20 Mar 2010, 20:44
Empirically I don't know, when I did my 32 bit OS 5 years ago, I used the flat memory model so paging is a new thing to me, and I'm just setting up my memory map. What I would guess is that CODE type segments are much more critical to intrusion, data is not so much, so they ignore it? That would be my guess.
Post 20 Mar 2010, 20:44
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.