From owner-freebsd-i386@FreeBSD.ORG Sun Oct 14 17:50:00 2007 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E432616A418 for ; Sun, 14 Oct 2007 17:50:00 +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 BD64813C478 for ; Sun, 14 Oct 2007 17:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9EHo0T3017454 for ; Sun, 14 Oct 2007 17:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9EHo0Ul017453; Sun, 14 Oct 2007 17:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 14 Oct 2007 17:50:00 GMT Resent-Message-Id: <200710141750.l9EHo0Ul017453@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Volker Ernst Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C4E016A419 for ; Sun, 14 Oct 2007 17:44:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 192C413C448 for ; Sun, 14 Oct 2007 17:44:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9EHijFK019703 for ; Sun, 14 Oct 2007 17:44:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l9EHij2U019702; Sun, 14 Oct 2007 17:44:45 GMT (envelope-from nobody) Message-Id: <200710141744.l9EHij2U019702@www.freebsd.org> Date: Sun, 14 Oct 2007 17:44:45 GMT From: Volker Ernst To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/117188: System crashes/reboots on access to file on GELI-encrypted drive. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 17:50:01 -0000 >Number: 117188 >Category: i386 >Synopsis: System crashes/reboots on access to file on GELI-encrypted drive. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 14 17:50:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Volker Ernst >Release: 6.2-RELEASE >Organization: >Environment: FreeBSD oxo.grund.xnet 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sat May 5 07:36:30 CEST 2007 root@oxo.grund.xnet:/usr/src/sys/i386/compile/OXO i386 >Description: Hi, my box is running 6.2-RELEASE, using my own kernel (config-file attached). It has 2 harddisks (along with 2 CD-drives on 2nd IDE-controller). Second (300 GB) harddisk is completely used as GELI-encrypted drive. File-system in use on top of that is UFS2. Now i have 2 problems/bugs when using this drive for storage: 1) It permanently gets inconsistent (fsck reports errors) and looses data (however "only" at a low rate), even though its always properly unmounted (umount, geli detach). 2) When accessing _some_ (not all) files on the encrypted drive, the machine gets a "segment violation" and reboots 15 sec later. Its interesting to see that this behaviour depends on how you access the file: - It seems to happen only if you "copy/move" the file to a different (unencrypted) partition on the system. - If you dont "copy" the "critical" file to the unencrypted partition, but just read it (i.e. by adding it to an archive on the unencrypted partition) - then the machine does _not_ crash. When the encrypted disk is mounted at 3am (when system cron-jobs run), then the machine sometimes crashes while cron-jobs access files on the encrypted drive (however not always). My GELI-parameters are not standard, maybe thats the problem? I have included the output of some relevant utilities, please get http://www.cphone.de/bug.tgz (cant attach tgz-files here). "geli.txt" shows what GELI-parameters are used on the encrypted drive. "dumpfs.txt" shows UFS2 file-system parameters on GELI-encrypted drive. "fdisk.txt" shows physical disk-parameters for the encrypted drive. "kernel.conf" is the config-file that was used to build the kernel. "uname.txt" is the output of "uname -a". Apart from this the system has no problems, access to other unencrypted drives etc is ok. Volker >How-To-Repeat: Attach 300 GB 2nd harddisk to machine running 6.2-RELEASE, build kernel with attached config-file, build GELI encrypted 2nd harddisk with attached parameters, build UFS2 filesystem on top of that, copy lots of data to the drive. Do regular checks with "fsck" --> you should usually see some errors on the file-system Try "copying" or "moving" many files to different (unencrypted) drive --> machine should reboot on access to certain files Watch for spontaneous reboot while running cron-jobs --> you should sometimes see the machine rebooting >Fix: >Release-Note: >Audit-Trail: >Unformatted: