From owner-freebsd-bugs@FreeBSD.ORG Sun Mar 22 12:32:55 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8DBB6157 for ; Sun, 22 Mar 2015 12:32:55 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59249ADA for ; Sun, 22 Mar 2015 12:32:55 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t2MCWti5040057 for ; Sun, 22 Mar 2015 12:32:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198789] Panic while mounting an NANDFS filesystem Date: Sun, 22 Mar 2015 12:32:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: stefan.berndt@imoriath.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2015 12:32:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198789 Bug ID: 198789 Summary: Panic while mounting an NANDFS filesystem Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: stefan.berndt@imoriath.com I tried to use NANDFS instead of UFS to keep an SD-Card longer alife. I have tested it on 10.1 -> amd64 (seems working) and 11.0 -> amd64 and armv6 (both making panic) root@test:~ # dd if=/dev/zero of=/nandtest bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes transfered in 17.864829 secs (63667521 bytes/sec) root@test:~ # mdconfig -a -t vnode /nandtest md0 root@test:~ # newfs_nandfs /dev/md0 filesystem parametsers: blocksize: 0x1000 sectorsize: 0x200 erasesize: 0x20000 mediasize: 0x40000000 segment size: 0x20000 blocks per segment: 0x20 filesystem created successfully total segments: 0x1ffa valid segments: 0x1ffa total space: 1023 MB free: 1023 MB root@test:~ # kldload nandfs root@test:~ # mount -t nandfs /dev/md0 WARNING: NANDFS is considered to be a highly experimental feature in FreeBSD NULL mp in getnewvnode() NULL mp in getnewvnode() NULL mp in getnewvnode() NULL mp in getnewvnode() panic: bsize == 0, check bo->bo_size cpuid = 2 KDB: stack backtrace: db_trace_self_wrapper() ad db_trace_self_wrapper+0x2b/frame 0xfffffe01207f2220 vpanic() at vpanic+0x189/frame 0xfffffe01207f20a0 kassert_panic() at kassert_panic+0x132/frame 0xfffffe01207f2310 getblk() at getblk+0x850/frame 0xfffffe01207f23d0 breadn_flags() at dreadn_flags+0x2d/frame 0xfffffe01207f2410 nandfs_bread() at nandfs_bread+0x6e/frame 0xfffffe01207f2460 nandfs_get_seg_stat() at nandfs_get_seg_stat+0xa7/frame 0xfffffe01207f24e0 nandfs_mount() at nandfs_mount+0x1f62/frame 0xfffffe01207f26d0 vfs_donmount() at vfs_donmount+0x1330/frame 0xfffffe01207f2aa0 sys_nmount() at sys_nmount+0x72/frame 0xfffffe01207f2ae0 amd64_syscall() at amd64_syscall+0x27f/frame 0xfffffe01207f2bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe01207f2bf0 --- syscall (378, FreeBSD ELF64, sys_nmount) rip = 0x800aab9ca, rsb = 0x7fffffffdb58, rbp = 0x7fffffffffe0c0 --- KDB: enter: panic -- You are receiving this mail because: You are the assignee for the bug.