Re: [PATCH 1/2] char/mem: Add /dev/io (v2)

From: Alan Cox
Date: Wed Feb 08 2012 - 04:25:00 EST


> Yeah, I'll be sure to do that right as soon as I can stop supporting the
> vesa driver. Until that time I don't really have any choice but to
> expose the whole of I/O port space, since I have no idea what the video
> BIOS is going to touch.

I would be surprised if you couldn't make a very good guess, and many
things it might want to touch are things that need blocking/emulating
anyway.

> I don't disagree with wanting to limit access to these services, but
> /dev/io is at least somewhat containable, whereas iopl is insane.

They are both equally insane and have effectively identical security
semntics. Continuing to use iopl is both faster and avoids adding a kernel
API however. Even better it's x86 specific so that piece of manure
doesn't escape onto other platforms without the legacy vesa mess.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/