From owner-freebsd-fs@FreeBSD.ORG Wed Apr 30 11:28:00 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3328837B401; Wed, 30 Apr 2003 11:28:00 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-67-115-75-172.dsl.lsan03.pacbell.net [67.115.75.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61B8D43FB1; Wed, 30 Apr 2003 11:27:59 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 2DDDE66B9B; Wed, 30 Apr 2003 11:27:59 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 0A5F71554; Wed, 30 Apr 2003 11:27:59 -0700 (PDT) Date: Wed, 30 Apr 2003 11:27:58 -0700 From: Kris Kennaway To: current@FreeBSD.org, fs@FreeBSD.org, jeff@FreeBSD.org Message-ID: <20030430182758.GB84601@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline User-Agent: Mutt/1.4i cc: kirk@mckusick.com Subject: Trap 12 in ufs/uma code X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 18:28:00 -0000 --tsOsTdHNUZQcU9Ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline One of the i386 package machines (running current from 9 days ago, with UFS2 filesystems) panicked with this: Fatal trap 12: page fault while in kernel mode fault virtual address = 0xfe8 fault code = supervisor read, page not present instruction pointer = 0x8:0xc039c56b stack pointer = 0x10:0xd8d32690 frame pointer = 0x10:0xd8d326b4 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 90186 (mtree) kernel: type 12 trap, code=0 Stopped at uma_dbg_free+0x4b: subl 0x10(%esi),%ebx db> trace uma_dbg_free(c413a6c0,0,0,6af,0) at uma_dbg_free+0x4b uma_zfree_arg(c413a6c0,0,0,c58c3510,d8d3271c) at uma_zfree_arg+0x121 ffs_ifree(c4483600,c58c3510,c0439575,9d,0) at ffs_ifree+0x4f ufs_reclaim(d8d32750,d8d327c0,c02b894f,d8d32750,1) at ufs_reclaim+0xe2 ufs_vnoperate(d8d32750,1,0,c45a1ab0,0) at ufs_vnoperate+0x18 vclean(c5e2eb68,8,c45a1ab0,c5e2eb68,0) at vclean+0x2ef vgonel(c5e2eb68,c45a1ab0,c042cc76,a6d,c5e2eb68) at vgonel+0x5c vrecycle(c5e2eb68,0,c45a1ab0,52,c0496428) at vrecycle+0x6b ufs_inactive(d8d32868,d8d32894,c02b7f17,d8d32868,0) at ufs_inactive+0x23c ufs_vnoperate(d8d32868,0,c042cc76,8c4,c047f120) at ufs_vnoperate+0x18 vput(c5e2eb68,31e3c40,0,4000,0) at vput+0x137 ffs_vget(c413cc00,31f43d,2,d8d3298c,d8d32990) at ffs_vget+0x310 ufs_lookup(d8d32ab8,d8d32af4,c02abb7c,d8d32ab8,d8d32c38) at ufs_lookup+0xce5 ufs_vnoperate(d8d32ab8,d8d32c38,d8d32c4c,c45a1ab0,c45a1ab0) at ufs_vnoperate+0x18 vfs_cache_lookup(d8d32b68,d8d32b94,c02b07a2,d8d32b68,20002) at vfs_cache_lookup+0x2fc ufs_vnoperate(d8d32b68,20002,c45a1ab0,3,c45a1ab0) at ufs_vnoperate+0x18 lookup(d8d32c24,0,c042c576,a4,c45a1ab0) at lookup+0x302 namei(d8d32c24,0,c04a0020,0,0) at namei+0x24e lstat(c45a1ab0,d8d32d10,c0440774,3fb,2) at lstat+0x52 syscall(2f,2f,2f,8155400,8155448) at syscall+0x26e Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (190, FreeBSD ELF32, lstat), eip = 0x280c4e8f, esp = 0xbfbff64c, ebp = 0xbfbff6e8 --- db> I tried to get a dump but it failed: db> call doadump Dumping 510 MB ata0: resetting devices .. lock order reversal 1st 0xc413a798 PCPU FFS2 dinod (UMA cpu) @ /a/asami/portbuild/i386/src-client/sys/vm/uma_core.c:1693 2nd 0xc413a6e4 FFS2 dinode (UMA zone) @ /a/asami/portbuild/i386/src-client/sys/vm/uma_core.c:1711 3rd 0xc14dc0d8 PCPU 512 (UMA cpu) @ /a/asami/portbuild/i386/src-client/sys/vm/uma_core.c:1343 S Kris --tsOsTdHNUZQcU9Ye Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+sBWuWry0BWjoQKURArpsAKCtQuJP9bLuDMvljLh1piR3FDrUlACgxdbg XVhyqB335IqlY/Pg3NYfnGg= =LkK2 -----END PGP SIGNATURE----- --tsOsTdHNUZQcU9Ye-- From owner-freebsd-fs@FreeBSD.ORG Fri May 2 05:27:30 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B04037B401 for ; Fri, 2 May 2003 05:27:30 -0700 (PDT) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id A27D743F93 for ; Fri, 2 May 2003 05:27:28 -0700 (PDT) (envelope-from mitya@fling-wing.demos.su) Received: from [194.87.5.69] (HELO fling-wing.demos.su) by demos.su (CommuniGate Pro SMTP 4.0.6/D4) with ESMTP-TLS id 69225891 for freebsd-fs@freebsd.org; Fri, 02 May 2003 16:27:27 +0400 Received: from fling-wing.demos.su (localhost [127.0.0.1]) by fling-wing.demos.su (8.12.9/8.12.6) with ESMTP id h42CRRNu071144 for ; Fri, 2 May 2003 16:27:27 +0400 (MSD) (envelope-from mitya@fling-wing.demos.su) Received: (from mitya@localhost) by fling-wing.demos.su (8.12.9/8.12.6/Submit) id h42CRQ6x071140 for freebsd-fs@freebsd.org; Fri, 2 May 2003 16:27:26 +0400 (MSD) Date: Fri, 2 May 2003 16:27:26 +0400 From: Dmitry Sivachenko To: freebsd-fs@freebsd.org Message-ID: <20030502122726.GA70780@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.4i Subject: MFC some nullfs code X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 12:27:30 -0000 Hello! Could someone please MFC 1.50-1.51 delta of null_vnops.c (committed by mkcusick about a year ago). It would not require much work. It fixes panic in the following test: compile nullfs statically with options DIAGNOSTIC; # mount_null /bin /mnt # file /mnt/ps // any open()/close() on mounted filesystem # umount /mnt System will panic. I tested this patch with several buldworlds on nullfs-mounted /usr/src, and it seems to work fine. Thanks!