From owner-freebsd-geom@FreeBSD.ORG Tue May 13 12:00:12 2008 Return-Path: Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 673A91065688 for ; Tue, 13 May 2008 12:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67C578FC1F for ; Tue, 13 May 2008 12:00:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4DC0Ad3095175 for ; Tue, 13 May 2008 12:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4DC0Ajr095174; Tue, 13 May 2008 12:00:10 GMT (envelope-from gnats) Date: Tue, 13 May 2008 12:00:10 GMT Message-Id: <200805131200.m4DC0Ajr095174@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Pawel Jakub Dawidek Cc: Subject: Re: kern/123606: Executing files on encrypted usb stick fails with g_vfs_done() error = 22 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pawel Jakub Dawidek List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2008 12:00:12 -0000 The following reply was made to PR kern/123606; it has been noted by GNATS. From: Pawel Jakub Dawidek To: Christian =?iso-8859-1?Q?Kr=E4mer?= Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/123606: Executing files on encrypted usb stick fails with g_vfs_done() error = 22 Date: Tue, 13 May 2008 13:38:13 +0200 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 12, 2008 at 09:19:29AM +0000, Christian Kr=E4mer wrote: >=20 > >Number: 123606 > >Category: kern > >Synopsis: Executing files on encrypted usb stick fails with g_vfs_= done() error =3D 22 > >Confidential: no > >Severity: non-critical > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Quarter: =20 > >Keywords: =20 > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Mon May 12 09:30:01 UTC 2008 > >Closed-Date: > >Last-Modified: > >Originator: Christian Kr=E4mer > >Release: Release 6.2 > >Organization: > >Environment: > FreeBSD humbert 6.2-RELEASE FreeBSD 6.2-RELEASE #2: Sun Apr 20 07:40:27 C= EST 2008 root@humbert:/usr/src/sys/i386/compile/MYKERNEL i386 >=20 > >Description: > I tried to create an encrypted memory stick using geli. When I try to exe= cute files the following error message shows up in dmesg: > May 6 22:17:33 kernel: g_vfs_done():da0s1b.eli[READ(offset=3D3748950016,= l > ength=3D8192)]error =3D 22 > May 6 22:17:33 kernel: vnode_pager_getpages: I/O read error >=20 > - The file itself is readable and correctly copied > MD5 (/bin/ls) =3D d8360b60978850cb2821b1e742ea4723 > MD5 (/mnt/usb/ls) =3D d8360b60978850cb2821b1e742ea4723 > - I am using via epia padlock for encryption, but this happens too when s= oftware crypto is enabled. > - After reading the file into memory for examples by md5 summing it file = execution works. > - This might be the same problem as pr-id: 98742 > - I tried ufs block sizes of 4096 and 16384 bytes > - I tried various geli sector sizes (-s) I don't think that you actually tried various sector sizes. At least you didn't try secor sizes less than page size. I'm quite sure geli(8) warns about using sector sizes bigger than page size. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFIKX2kForvXbEpPzQRAlBdAJ9+jG7bqWo8hGdGCa6GdBcrBRBJgwCdEQjb OPDUheEq3G3oTGnQCuVvgVE= =2rCh -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--