kern/123606: Executing files on encrypted usb stick fails with g_vfs_done() error = 22

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue May 13 12:00:12 UTC 2008


The following reply was made to PR kern/123606; it has been noted by GNATS.

From: Pawel Jakub Dawidek <pjd at FreeBSD.org>
To: Christian =?iso-8859-1?Q?Kr=E4mer?= <bug at crasu.de>
Cc: freebsd-gnats-submit at 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 at 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 at 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--


More information about the freebsd-geom mailing list