Userspace with DPL 0.

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
AlexHully
Member
Member
Posts: 62
Joined: Mon Jul 20, 2015 3:32 pm

Userspace with DPL 0.

Post by AlexHully »

Hi,

Could userspace still being considered userspace if it doesn't mess with the kernel virtual space but use DPL 0 permission (it can alter interrupt states and so on)?

Granted, that can be dangerous and let all sorts of bad things happen.

But, is it still considered userspace?

Bye
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Userspace with DPL 0.

Post by Brendan »

Hi,
AlexHully wrote:Could userspace still being considered userspace if it doesn't mess with the kernel virtual space but use DPL 0 permission (it can alter interrupt states and so on)?
Yes; it could still be considered user space (but couldn't be considered secure, unless the OS is doing something else to ensure isolation - e.g. managed code).

Don't forget that you could set IOPL=3 to allow CPL=3 tasks to use some things (HLT, CLI/STI, IO ports) without given them full access to things like CR0, CR3, MSRs, etc.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
AlexHully
Member
Member
Posts: 62
Joined: Mon Jul 20, 2015 3:32 pm

Re: Userspace with DPL 0.

Post by AlexHully »

Perfect.

Thanks a lot Brendan :)
Post Reply