Re: Direct access to hardware

From: Stuart MacDonald (stuartm@connecttech.com)
Date: Tue Jul 25 2000 - 10:04:00 EST


From: "James Sutherland" <jas88@cam.ac.uk>
> On Tue, 25 Jul 2000, Horst von Brand wrote:
>
> > James Sutherland <jas88@cam.ac.uk> said:
> > > On Sun, 23 Jul 2000, Horst von Brand wrote:
> >
> > [...]
> >
> > > > Yep. It should also carefully check that those damn ELF thingies
being
> > > > thrown at the CPU better contain valid code!
> >
> > > It does. How do you think the kernel works around CPU bugs - replicate
> > > nanites to rewire the CPU?
> >
> > Please show me where Linux checks every byte of an executable before
> > running it to make sure it doesn't f00f or coma your CPU.
>
> Inside the CPU, in hardware. If you attempt to execute invalid code, Linux
> knows about it straight away.

Which is exactly the point. The hard drives should be checking for
invalid ATA commands in hardware, right in the drive, preventing
damage from bad commands. Putting a filter into the kernel is not
the right fix.

..Stu

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



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:19 EST