Re: Should this happen?

From: David Lombard (david.lombard@mscsoftware.com)
Date: Fri May 05 2000 - 15:44:51 EST


Manfred Spraul wrote:
>
>
> Very simple&stupid bug:
> try
> strace dd if=/proc/misc bs=1
>
> read(fd,buf,1) returns more than 1 byte, thus it overruns a user space
> buffer in more, and crashes. It won't oops.
>
> I've attached an untested patch, it should fix the bug in 2.2 & 2.3

Error exists in all 2.2 kernels I could find; does not exist in 2.0 (but
you knew that).

Patch works as advertised.

Thanks!

-- 
David N. Lombard
MSC.Software

- 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 : Sun May 07 2000 - 21:00:18 EST