From owner-freebsd-stable@freebsd.org Tue Mar 5 01:03:45 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BE9E1528BBB for ; Tue, 5 Mar 2019 01:03:45 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: from mail-yw1-xc30.google.com (mail-yw1-xc30.google.com [IPv6:2607:f8b0:4864:20::c30]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B01B6A616; Tue, 5 Mar 2019 01:03:44 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: by mail-yw1-xc30.google.com with SMTP id k14so5666570ywe.4; Mon, 04 Mar 2019 17:03:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oISoutCQXQ46jx6t1TNTbXt0zxcJ14GZZ890oSdstw4=; b=syvQmSp/rhvgU/iii076lk7rsAZr0vKWyA9KAaQanVztfxQo2y0CQhIJ4oNwt7IMD2 LVEPnCxekIts9MzaA58Mn8jJ8MJBxq5iFJcN3YaJ+tb6WtDGLtAppoMGjeVUYAfskt5c NoG9TklkSOInS8AWMALhYxObbPxAiVVYDA52TVnyGvJX0dfndYGy/1fTFKAnjvCyV/wV NSjTen8MfsV9znrojIz1Y72m/PqfKBqlWITmvSUcbAj8X8Z2WYctkmeauL5gLhZ5U+59 WmChSwAjHhJd5gD5T7OPOj1RrkpmeyqmiK8yDicUK8nr1FUqinOn+heitxa8OeeFc/3h IKTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oISoutCQXQ46jx6t1TNTbXt0zxcJ14GZZ890oSdstw4=; b=Ye+B8g2CyrWvBTj9eKB4zi5iyVmPklVCS+EcUHN9EMaKtFVQhX5mfhoXbjql4m+lDB Qsc9CJ6H8en3QPR2U5XIF77rNmObNg2jjdFqkWvyDbXIkchaAZu+C9vioGnrPSbtav7d H7pdAw/P5h/ZMYicQV6Wj30+BbpPI9mGJyz2J935+gypjaRMhQGDMnx0uBXeFZOODWsL n8jzyzfaJPlPBk770lRCvbeMz7M0tGCgkwtnAkaUp94m53TSwG6hYOHlPLv/7VUck1kB 9cHmn2+I7FwOPNeCNLTI2z1osrR8+cvPRxMoS20MGEYSm8cAMSVva34ZFw4M/b/Oaf+Z azAw== X-Gm-Message-State: APjAAAX3Utr99FroI/P27Go6SmDt2KfZy+nP6uhAfHzJQmX+XRV3nwHW 79NzQ3DFRtw9s/IRNBgrRVXtQTxYlRR/w20E9owpUw== X-Google-Smtp-Source: APXvYqwoc5NC3no+OqxSx3tMvnuet5W/hb0Teh3Yo6MPXIfI5Y72Co1j4GpOef+njZrmGI1szjn4Lku/ohVoHe6+720= X-Received: by 2002:a25:b942:: with SMTP id s2mr138628ybm.283.1551747822956; Mon, 04 Mar 2019 17:03:42 -0800 (PST) MIME-Version: 1.0 References: <233f3723-a78e-91db-ebe6-9e13c1c9b50d@FreeBSD.org> In-Reply-To: From: Nick Rogers Date: Mon, 4 Mar 2019 20:03:31 -0500 Message-ID: Subject: Re: 12.0-RELEASE zfs/vnode deadlock issue To: Andriy Gapon Cc: FreeBSD STABLE X-Rspamd-Queue-Id: 0B01B6A616 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=syvQmSp/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ncrogers@gmail.com designates 2607:f8b0:4864:20::c30 as permitted sender) smtp.mailfrom=ncrogers@gmail.com X-Spamd-Result: default: False [-6.67 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[0.3.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(-2.81)[ip: (-9.26), ipnet: 2607:f8b0::/32(-2.70), asn: 15169(-2.04), country: US(-0.07)]; NEURAL_HAM_SHORT(-0.84)[-0.842,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2019 01:03:45 -0000 On Mon, Mar 4, 2019 at 5:29 PM Andriy Gapon wrote: > On 04/03/2019 22:35, Nick Rogers wrote: > > v_lock = {lock_object = {lo_name = > > 0xffffffff8144af45 "zfs", lo_flags = 117112840, lo_data = 0, lo_witness = > > 0x0}, lk_lock = 18446744073709551605, lk_exslpfail = 0, lk_timo = 51, > > lk_pri = 96} > > Hmm, lk_lock looks bogus. > 18446744073709551605 == 0xfffffffffffffff5 and it's LK_SHARE | > LK_EXCLUSIVE_WAITERS with 0xfffffffffffffff shared owners. > Perhaps, this is a result of LK_SHARERS_LOCK(-1). > > Is your kernel compiled with INVARIANTS and INVARIANT_SUPPORT? > I suspect that the vnode was accessed (unlocked?) through a stale pointer > after > it was recycled. > I don't believe so - it's basically amd64 GENERIC w/ a reduced set of modules and static zfs option. > -- > Andriy Gapon >