Bug in geom_ctl errors handling.

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Apr 7 22:42:03 PDT 2005


Good catch, go for it!

In message <20050407234424.GV837 at darkness.comp.waw.pl>, Pawel Jakub Dawidek writes:
>
>--VnCKLxguT6BBzdXa
>Content-Type: text/plain; charset=iso-8859-2
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>Hi.
>
>I finally tracked down a bug which I was seeing from time to time.
>If you saw 'Bad address' as an result of some geom(8) command, you saw
>the bug.
>
>The problem we got here, is that copyout(9) was done not from user
>process, but from eg. g_event thread, where address space is different.
>
>Here is the patch to fix it:
>
>	http://people.freebsd.org/~pjd/patches/geom_ctl.c.patch
>
>--=20
>Pawel Jakub Dawidek                       http://www.wheel.pl
>pjd at FreeBSD.org                           http://www.FreeBSD.org
>FreeBSD committer                         Am I Evil? Yes, I Am!
>
>--VnCKLxguT6BBzdXa
>Content-Type: application/pgp-signature
>Content-Disposition: inline
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (FreeBSD)
>
>iD8DBQFCVcXYForvXbEpPzQRAsppAJ4iNhocWjPLVQ33ps1EB0RSr7HpcACdE7Gj
>40Xe83iHSVkAA8Gm8JAjizg=
>=H7Kc
>-----END PGP SIGNATURE-----
>
>--VnCKLxguT6BBzdXa--
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-geom mailing list