From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 10 21:50:41 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AF95106566B; Wed, 10 Mar 2010 21:50:41 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-relay3.uni-muenster.de (ZIVM-RELAY3.UNI-MUENSTER.DE [128.176.192.19]) by mx1.freebsd.org (Postfix) with ESMTP id A305A8FC08; Wed, 10 Mar 2010 21:50:40 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.49,616,1262559600"; d="scan'208";a="28112451" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER04.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay3.uni-muenster.de with ESMTP; 10 Mar 2010 22:50:38 +0100 Received: by ZIVMAILUSER04.UNI-MUENSTER.DE (Postfix, from userid 149459) id C68421B07C1; Wed, 10 Mar 2010 22:50:38 +0100 (CET) Date: Wed, 10 Mar 2010 22:50:38 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Jaakko Heinonen , Message-ID: In-Reply-To: <20100305055758.GA1062@a91-153-117-195.elisa-laajakaista.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, Poul-Henning Kamp , Bruce Evans Subject: Re: namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 21:50:41 -0000 Jaakko Heinonen schrieb am 2010-03-05: > On 2010-02-28, Jaakko Heinonen wrote: > > > > http://people.freebsd.org/~jh/patches/lookup-root.diff > I have updated the patch taking some of bde's comments into account. > The > new version also includes updates for namei(9) manual page. could this panic have been triggered by the patch? Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x12 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff8048af0f stack pointer = 0x28:0xffffff8040495000 frame pointer = 0x28:0xffffff8040495020 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1402 (sh) Tracing pid 1402 tid 100092 td 0xffffff000729d000 strlen() at strlen+0x1f kvprintf() at kvprintf+0x1027 vsnprintf() at vsnprintf+0x48 panic() at panic+0x15f _mtx_lock_flags() at _mtx_lock_flags+0xc5 fdesc_allocvp() at fdesc_allocvp+0xbf fdesc_lookup() at fdesc_lookup+0x15c VOP_LOOKUP_APV() at VOP_LOOKUP_APV+0x11c VOP_LOOKUP() at VOP_LOOKUP+0x45 lookup() at lookup+0x8cf namei() at namei+0x730 vn_open_cred() at vn_open_cred+0x114 vn_open() at vn_open+0x55 kern_openat() at kern_openat+0x178 kern_open() at kern_open+0x3e open() at open+0x26 syscall() at syscall+0x2a7 Xfast_syscall() at Xfast_syscall+0xe1 --- syscall (5, FreeBSD ELF64, open), rip = 0x8009a3bec, rsp = 0x7fffffffd3c8, rbp = 0x800e143b0 --- this was 100% reducible when doing `portsnap fetch` though i changed a lot of stuff in my kernel config and reverted a lot of src patches to resolve the issue so i'm not sure what exactly was causing it. cheers. alex > The patch is attached to this mail and also found at: > http://people.freebsd.org/~jh/patches/lookup-root.2.diff