kernal bypassing

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
10000001
Posts: 2
Joined: Sun Jul 03, 2005 11:00 pm

kernal bypassing

Post by 10000001 »

Hi all!

I just have a quick question::

How does an application bypass the kernel, and what languages allow it to do so? Right now I am guessing whatever is supported by the CPU-like assembly, etc.??

And what if I didn't want an application to do so? Could I prevent this from happening?
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: kernal bypassing

Post by Legend »

On an Intel-CPU, in general you prevent the application from bypassing the kernel by using the protected mode.

Assembly allows it to bypass it in real mode easily, C can write to any memory and mostly has functions to manipulate I/O ports, similiar to basically all languages.

However, there is a class of safe languages, like Java and C#. These allow verification of the code and allow protection by other methods.
*post*
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: kernal bypassing

Post by JAAman »

basically, if the application CAN bypass the OS, in ANY language, then the OS is not doing its job:

basically the job of the OS is to STOP programs from directly accessing hardware, and to make it think it has control of the computer when it really doesn't
10000001
Posts: 2
Joined: Sun Jul 03, 2005 11:00 pm

Re: kernal bypassing

Post by 10000001 »

So basically the way to do that is through whatever handles the open/run operations in the OS?

Sorry-I'm new to this stuff.
Legend
Member
Member
Posts: 195
Joined: Tue Nov 02, 2004 12:00 am
Contact:

Re: kernal bypassing

Post by Legend »

The CPU supports the OS at keeping a program under control by providing different modes of operation, user-mode for the application and supervisor-(or kernel-)mode for the operating system.

The operating system can control the ways to get into kernel mode, too.
*post*
User avatar
JAAman
Member
Member
Posts: 879
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: kernal bypassing

Post by JAAman »

you could create ways to bypass the OS within your OS, but its usually not considered a good idea, since it will cause bugs in the app to crash the computer, and allow malicious programs full controll of the system (and the ability to destroy your computer)
Post Reply