From owner-freebsd-pf@freebsd.org Thu Mar 1 03:00:53 2018 Return-Path: Delivered-To: freebsd-pf@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 3DD96F3BD22 for ; Thu, 1 Mar 2018 03:00:53 +0000 (UTC) (envelope-from srs0=y8dj=fx=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF2C174A1D for ; Thu, 1 Mar 2018 03:00:52 +0000 (UTC) (envelope-from srs0=y8dj=fx=sigsegv.be=kristof@codepro.be) Received: from [169.254.13.141] (254.158.dhcp.conference.apricot.net [220.247.158.254]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 5D39A2D8E1; Thu, 1 Mar 2018 04:00:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1519873250; bh=6C87reV53rCwUtJpxM5uPcg5uXsve5NvK26wlPqhCkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jrnOoPofojXkI0ZC/AO0b9e5jNM0QX9pO3GoC0mxzMLIY5ycJQJ6M+p7vunahwLdL FThiQ7+BaDYEdryFPWZkMBx8DVoPKhDaXVwHjoAVLhYjCSVCPNFa/UfvL6X8PzURrE Velx92TBXoTSj5WKtysjoJgKdKhNQI61JMH1CiQg= From: "Kristof Provost" To: "Joe Jones" Cc: freebsd-pf@freebsd.org Subject: Re: Kernel Panic Date: Thu, 01 Mar 2018 08:45:45 +0545 X-Mailer: MailMate (2.0BETAr6104) Message-ID: <06755C0B-4633-4FF7-988B-97A0A04D4EF6@sigsegv.be> In-Reply-To: <22A6028C-9BBA-4117-8734-D976EA5A1367@sigsegv.be> References: <5A842FC6.7020806@stream-technologies.com> <5A8443BF.8040208@stream-technologies.com> <5289570D-24E1-4292-B4D2-D2F67D7D2D4F@sigsegv.be> <5A93EDC9.7020407@stream-technologies.com> <9F39A687-FB34-4984-B969-5264DF38544E@sigsegv.be> <19aedb50-34c0-417d-fc1e-e8d519655684@stream-technologies.com> <22A6028C-9BBA-4117-8734-D976EA5A1367@sigsegv.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; markup=markdown Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2018 03:00:53 -0000 On 28 Feb 2018, at 9:52, Kristof Provost wrote: > On 27 Feb 2018, at 20:40, Joe Jones wrote: >> we have a kernel panic after compiling with witness and invariant >> >> Feb 27 13:49:33 sovapn1 kernel: lock order reversal: >> Feb 27 13:49:33 sovapn1 kernel: 1st 0xfffffe000fed78b8 pf_idhash >> (pf_idhash) @ /usr/src/sys/netpfil/pf/pf.c:1078 >> Feb 27 13:49:33 sovapn1 kernel: 2nd 0xfffff8001e0474a8 pfsync >> (pfsync) @ /usr/src/sys/netpfil/pf/if_pfsync.c:1667 > > That’s a lock order reversal. It’s not good, but it should at > worst result in a deadlock. Did the system stop after this? > It also looks like a different problem from the panic you initially > reported. > Also, do you actively use pfsync in this setup? Does the panic happen on the box where you DIOCRADDADDRS or the other(s)? Regards, Kristof