From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 11 21:30:04 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA8CD10656E5 for ; Sat, 11 Apr 2009 21:30:04 +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 83E058FC19 for ; Sat, 11 Apr 2009 21:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n3BLU4Fm039346 for ; Sat, 11 Apr 2009 21:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n3BLU4DY039344; Sat, 11 Apr 2009 21:30:04 GMT (envelope-from gnats) Resent-Date: Sat, 11 Apr 2009 21:30:04 GMT Resent-Message-Id: <200904112130.n3BLU4DY039344@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mikhail T." Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E7291065791 for ; Sat, 11 Apr 2009 21:26:49 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 04F3C8FC23 for ; Sat, 11 Apr 2009 21:26:48 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.3/8.14.3) with ESMTP id n3BL6vtG001365 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 11 Apr 2009 17:06:57 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.14.3/8.14.3/Submit) id n3BL6veO001364; Sat, 11 Apr 2009 17:06:57 -0400 (EDT) (envelope-from mi) Message-Id: <200904112106.n3BL6veO001364@aldan.algebra.com> Date: Sat, 11 Apr 2009 17:06:57 -0400 (EDT) From: "Mikhail T." To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/133614: panic: ffs_truncate: read-only filesystem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 21:30:06 -0000 >Number: 133614 >Category: kern >Synopsis: panic: ffs_truncate: read-only filesystem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 11 21:30:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Mikhail T. >Release: FreeBSD 7.2-PRERELEASE amd64 >Organization: Virtual Estates, Inc. http://libpipe.com/ >Environment: System: FreeBSD aldan.algebra.com 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #2: Thu Apr 9 06:23:59 EDT 2009 root@aldan.algebra.com:/var/src/sys/amd64/compile/SILVER-SMP amd64 >Description: Hello! I have a filesystem, that is mounted read-only by default: /dev/ad10 /ad10 ufs ro 0 1 It is holding data, that's modified infrequently and I thought, keeping it RO most of the time will be safer. I had to add a few (large) files recently and remounted the FS in read-write mode. "To be sure", I did an umount, fsck, and rw-mount: umount /ad10 fsck -y /ad10 # No errors reported by fsck mount -orw /ad10 mount # See /ad10 mounted as (ufs, local, soft-updates) When I then proceeded to write to the filesystem (via Samba), the system paniced as follows: Unread portion of the kernel message buffer: panic: ffs_truncate: read-only filesystem cpuid = 3 Uptime: 35m50s Physical memory: 5911 MB Dumping 519 MB: 504 488 472 456 440 424 408 392 376 360 344 328 312 296 280 264 248 232 216 200 184 168 152 136 120 104 88 72 56 40 24 8Attempt to write outside dump device boundaries. ** DUMP FAILED (ERROR 6) ** Automatic reboot in 15 seconds - press a key on the console to abort fs = /ad10 panic: ffs_sync: rofs mod cpuid = 3 Rebooting... cpu_reset: Stopping other CPUs Uptime: 36m33s Physical memory: 5911 MB Dumping 519 MB: 504 488 472 456 440 424 408 392 376 360 344 328 312 296 280 264 248 232 216 200 184 168 152 136 120 104 88 72 56 40 24 8 Reading symbols from /opt/modules/rtc.ko...done. Loaded symbols for /opt/modules/rtc.ko #0 doadump () at pcpu.h:195 195 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) Please, advise... Thanks! >How-To-Repeat: >Fix: I suppose, I could just be mounting it RW from the beginning, but it was certainly nicer to be able to switch to/from RW on the fly... >Release-Note: >Audit-Trail: >Unformatted: