From owner-freebsd-stable@freebsd.org Thu Oct 15 20:12:19 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58E00A15AF5 for ; Thu, 15 Oct 2015 20:12:19 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE7911457 for ; Thu, 15 Oct 2015 20:12:18 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by lffv3 with SMTP id v3so46463178lff.0 for ; Thu, 15 Oct 2015 13:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Ekb2U2Bzl/V53m4MKK18V4Vl6c4E23Iwc4RtbStb9qo=; b=PxBRzgtAy1xM3rGZrOcVA7k3v2y8pPuK9nof/1C9o/8JznbeN9MXCdH0sMkU6mQrTI 9i9x2/KulsZ57KSAMJoGN5tfXVOmyZB/R14uGrh+X8wu1hA20grEZC1yPkGJxArNByuA t03FP3TKqUzsBLitDp8z5ln2YxkD2Lk+v1phQ8PPOHGkKVRGnpU97UItxDYF1ngzfzF9 f3R+9ciuNFHwpjvhqrumsU0MFhC6DHghiKFuR60XWmvVMYPIQ3WSPv3kdbBqO3fJdvSC SMwC8kcp8znaLVyvCn4Wrvf8gnmj8ESV1U+LCU/Z/GSlMghdX5JTFMyYKG3Ih6OOvH9T YOOw== X-Received: by 10.194.59.236 with SMTP id c12mr12748433wjr.23.1444939936518; Thu, 15 Oct 2015 13:12:16 -0700 (PDT) Received: from brick.home (abvf228.neoplus.adsl.tpnet.pl. [83.8.203.228]) by smtp.gmail.com with ESMTPSA id cc8sm18396235wjc.46.2015.10.15.13.12.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 13:12:15 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Thu, 15 Oct 2015 22:12:12 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: "Frank de Bot (lists)" Cc: FreeBSD Stable Subject: Re: Reloading iscsi target, iscsi initiator panics Message-ID: <20151015201212.GA4609@brick.home> Mail-Followup-To: "Frank de Bot (lists)" , FreeBSD Stable References: <561EC629.30106@searchy.net> <20151015113428.GA3741@brick.home> <561FEAF5.8080607@searchy.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <561FEAF5.8080607@searchy.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 20:12:19 -0000 On 1015T2005, Frank de Bot (lists) wrote: > Edward Tomasz NapieraƂa wrote: > > On 1014T2316, Frank de Bot (lists) wrote: > >> Hello, > >> > >> I have a FreeBSD 10.2 server running as iSCSI target. Another FreeBSD > >> 10.2 is an initiator and has several targets used. > >> > >> When I add a target and reload its config with 'service ctld reload', > >> the FreeBSD initiator server panics. It's reproducable (I have a > >> coredump, but I think it's clear what the problem is) > > > > How easy it is to reproduce, eg. does it happen about every time? > > Could you paste the backtrace? > > The first time I didn't understand what happened, the second time I > could relate it directly to the reloading of ctld on the iSCSI, within > moments the server paniced. > > I got 2 backtraces: > > First one: > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; softdep_deallocate_dependencies: got error 6 while accessing This is the FFS on the initiator side panicing because the device it's on went away. The softupdates code can't handle that very well. I have no idea why the devices went away and then reappeared, as visible in the logs. What has the changed in the ctl.conf? Do you have any iscsi-related sysctls set on the initiator side?