Re: bug in kernel

From: Martin Zwickel
Date: Mon Mar 14 2005 - 10:59:50 EST


--Signature_Mon__14_Mar_2005_16_55_49_+0100_Ch1hx5nTTuVOzH0V
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Mon, 14 Mar 2005 17:48:05 +0300
Evgeniy <shubin_evgeniy@xxxxxxx> bubbled:

> Here is a simple program.
>=20
> #include <stdio.h>
> #include <errno.h>
> main(){
> int err;
> err=3Dread(0,NULL,6);
> printf("%d %d\n",err,errno);
> }

Results:
# ./a < /dev/zero=20
read(0, 0, 6) =3D -1 EFAULT (Bad address)
-1 14 Bad address

So everything is fine...

Regards,
Martin

--=20
MyExcuse:
I'd love to help you -- it's just that the Boss won't let me near the
computer.

Martin Zwickel <martin.zwickel@xxxxxxxxxxxxxx>
Research & Development

TechnoTrend AG <http://www.technotrend.de>

--Signature_Mon__14_Mar_2005_16_55_49_+0100_Ch1hx5nTTuVOzH0V
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCNbQFmjLYGS7fcG0RAqYyAJsE+Vzsq+d9Lwp5qj1CYTwzTk5gswCeK0gV
s/+iZMqjoBiVs/W07bh8bvA=
=pG0m
-----END PGP SIGNATURE-----

--Signature_Mon__14_Mar_2005_16_55_49_+0100_Ch1hx5nTTuVOzH0V--
-
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/