Writes to port 0x64, 0xcf9 etc.

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
Kamala
Posts: 18
Joined: Sun Nov 28, 2010 11:03 am

Writes to port 0x64, 0xcf9 etc.

Post by Kamala »

Hi,

When I try to write to port 0x64 (keyboard controller command port), 0xcf9 etc. to reset the system, it works under Fedora, Debian but not under Windows or Ubuntu. It looks like I am missing something obvious that Windows/Ubuntu does while others don't or vise versa. Would you happen to know what it might be? Thanks.

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

Re: Writes to port 0x64, 0xcf9 etc.

Post by Brendan »

Hi,
Kamala wrote:When I try to write to port 0x64 (keyboard controller command port), 0xcf9 etc. to reset the system, it works under Fedora, Debian but not under Windows or Ubuntu. It looks like I am missing something obvious that Windows/Ubuntu does while others don't or vise versa. Would you happen to know what it might be?
I'm not too sure what might be causing the security vulnerability in Fedora or Debian. I'd assume that you're running a normal process as "root" on these systems, and they're still using some sort of antiquated "let root be malicious in case it's a video driver in user space" design flaw.


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.
Gigasoft
Member
Member
Posts: 856
Joined: Sat Nov 21, 2009 5:11 pm

Re: Writes to port 0x64, 0xcf9 etc.

Post by Gigasoft »

I'm not too sure what might be causing the security vulnerability in Fedora or Debian. I'd assume that you're running a normal process as "root" on these systems, and they're still using some sort of antiquated "let root be malicious in case it's a video driver in user space" design flaw.
I guess it would be this: http://linux.die.net/man/2/iopl
Kamala
Posts: 18
Joined: Sun Nov 28, 2010 11:03 am

Re: Writes to port 0x64, 0xcf9 etc.

Post by Kamala »

Yes, I was running as root on all three distros to test this and it is the same code. I suspect Windows and Ubuntu disables something in an attempt to render the operations I am attempting on those ports ineffective (system reset) while Debian and Fedora does not. I understand it is likely Windows/Ubuntu are rendering those ops ineffective for the sake of security. But, I am trying to find out what it is Windows/Ubuntu does that Debian/Fedora does not. Thanks.

Kamala
Post Reply