Re: Reading /dev/mem by dd

From: Henrique de Moraes Holschuh
Date: Thu Nov 12 2009 - 12:37:39 EST


On Thu, 12 Nov 2009 17:44 +0100, "Andi Kleen" <andi@xxxxxxxxxxxxxx> wrote:
> Henrique de Moraes Holschuh <hmh@xxxxxxxxxx> writes:
> > IMO: if you're going to provide /dev/mem, make it as safe as
> > possible.
>
> That would also make it useless for people who want to access MMIO
> using /dev/mem. Which is a lot of programs.

In this case, the problem seems to be access over /dev/mem to stuff the
kernel is already taking care of. Certainly "as safe as possible" does
not have to mean making /dev/mem useless for whatever good uses it has.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh

--
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/