From owner-freebsd-stable@FreeBSD.ORG Sun Nov 16 21:08:28 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4BC7443D for ; Sun, 16 Nov 2014 21:08:28 +0000 (UTC) Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 065AE9F7 for ; Sun, 16 Nov 2014 21:08:28 +0000 (UTC) Received: by mail-yk0-f181.google.com with SMTP id 142so4487370ykq.40 for ; Sun, 16 Nov 2014 13:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=oght6qLas36MpAlFTaCEDYlzvQ7B2oMVnNTi43sKcVI=; b=mG6LlZJPSU/AUcKenjiBBZ1pMXB81eha7TLVIVbxhi/LkkbncSxsfgZCwHhsl+tbus mDp/E2xwQ8m2kN26yMjf0JdlAC4Qcm+oqicrJ1OK5iJbbZcfMCvnckSUtL7IFU6G/wsd 1/pDiHCX7VYNtcSnl0jCjKVQD+t4EQczq4E8fL2s9nKDtanK261/wDBC+r2xME1uaSD6 nNBEJmKFA5OHbbiDD2PNDAmsgq2jPkzx1c9o2HGQraDQ9UA+HmsOFKGJBlmSPAWL35ot xhy6YxwuETjTTR6Aj3jnLkNpQi/k6A8007wSKUtYWH5tugXh7ffxNxDaR4BLdbF1hz3S fSfA== MIME-Version: 1.0 X-Received: by 10.236.66.40 with SMTP id g28mr21202157yhd.6.1416172107118; Sun, 16 Nov 2014 13:08:27 -0800 (PST) Sender: kmacybsd@gmail.com Received: by 10.170.82.197 with HTTP; Sun, 16 Nov 2014 13:08:27 -0800 (PST) In-Reply-To: <5468CD8C.7070500@multiplay.co.uk> References: <54685EB8.9050800@FreeBSD.org> <5468CD8C.7070500@multiplay.co.uk> Date: Sun, 16 Nov 2014 13:08:27 -0800 X-Google-Sender-Auth: PUERHa6A0Tf71OsoeOIXrpz9HFk Message-ID: Subject: Re: ZFS pool creation from files leads to a crash From: "K. Macy" To: Steven Hartland Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 21:08:28 -0000 On Sun, Nov 16, 2014 at 8:15 AM, Steven Hartland wrote: > > On 16/11/2014 08:22, Andriy Gapon wrote: >> >> On 16/11/2014 09:29, K. Macy wrote: >>> >>> #23 0xffffffff819b9a2c in zfs_vn_rdwr (rw=UIO_WRITE, >>> vp=0xfffff8005d94a3b0, base=0x0, len=104857600, offset=0, >>> seg=UIO_SYSSPACE, ioflag=128, ulimit=0, cr=0xfffff80002cd9000, >>> residp=0xfffffe01219f6f18) at vnode.h:237 >>> #24 0xffffffff819b9706 in vdev_file_io_start (zio=0xfffff80009ebb000) >>> at >>> /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c:188 >>> #25 0xffffffff819fcea3 in zio_vdev_io_start (zio=0xfffff80009ebb000) >>> at >>> /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:2709 >>> #26 0xffffffff819f51f1 in zio_execute (zio=0xfffff80009ebb000) >>> at >>> /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1409 >>> #27 0xffffffff819f368a in zio_wait (zio=0xfffff80009ebb000) >>> at >>> /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c:1433 >>> #28 0xffffffff819bb51e in vdev_label_init (vd=0xfffff80009919800, >>> crtxg=4, reason=VDEV_LABEL_CREATE) >>> at >>> /usr/home/kmacy/devel/freebsd-head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c:718 >> >> Seems like this crash is caused by vdev_file_io_start being blissfully >> unaware >> of ZIO_TYPE_FREE. >> > It is indeed see the following bug for breakdown and patch: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195061 > > I'd love to know why I can run this many times over here and not a single > sign of a panic :( Do you somehow have TRIM disabled? -K