Re: bug in kernel

From: Arjan van de Ven
Date: Mon Mar 14 2005 - 09:52:02 EST

On Mon, 2005-03-14 at 17:48 +0300, Evgeniy wrote:
> Here is a simple program.
> #include <stdio.h>
> #include <errno.h>
> main(){
> int err;
> err=read(0,NULL,6);
> printf("%d %d\n",err,errno);
> }
> I think that it should be an error : Null pointer assignment, like in windows.
> But in practise it is not so.
> Mandrake Linux kernel 2.4.21-0.13mdk
> I am a programmer too and i am very interested to solve this problem. Please,
> send me fragment of sourse code of kernel with this bug.

well what is the value of errno ?
-EFAULT by chance ?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at