From owner-freebsd-geom@FreeBSD.ORG Thu Apr 7 23:44:36 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BF8616A4CE for ; Thu, 7 Apr 2005 23:44:36 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0E3E43D2D for ; Thu, 7 Apr 2005 23:44:34 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 4F98DACAFE; Fri, 8 Apr 2005 01:44:24 +0200 (CEST) Date: Fri, 8 Apr 2005 01:44:24 +0200 From: Pawel Jakub Dawidek To: freebsd-geom@FreeBSD.org Message-ID: <20050407234424.GV837@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VnCKLxguT6BBzdXa" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: Bug in geom_ctl errors handling. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 23:44:36 -0000 --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@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--