Page 1 of 1
Writes to port 0x64, 0xcf9 etc.
Posted: Thu Apr 12, 2012 8:33 pm
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
Re: Writes to port 0x64, 0xcf9 etc.
Posted: Thu Apr 12, 2012 9:00 pm
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
Re: Writes to port 0x64, 0xcf9 etc.
Posted: Fri Apr 13, 2012 2:45 am
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
Re: Writes to port 0x64, 0xcf9 etc.
Posted: Fri Apr 13, 2012 7:00 am
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