From owner-freebsd-stable@freebsd.org Mon Dec 7 20:11:38 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AF3984B4CDF for ; Mon, 7 Dec 2020 20:11:38 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CqZG24fvqz3mK9; Mon, 7 Dec 2020 20:11:38 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 7921677D0; Mon, 7 Dec 2020 20:11:38 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id B5F5C4AA88; Mon, 7 Dec 2020 21:11:36 +0100 (CET) From: "Kristof Provost" To: Peter Cc: freebsd-stable@freebsd.org Subject: Re: Panic: 12.2 fails to use VIMAGE jails Date: Mon, 07 Dec 2020 21:11:32 +0100 X-Mailer: MailMate (1.13.2r5673) Message-ID: <39DBEA53-960F-4D70-86D7-847E6DFA437D@FreeBSD.org> In-Reply-To: <20201207125451.GA11406@gate.oper.dinoex.org> References: <20201207125451.GA11406@gate.oper.dinoex.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2020 20:11:38 -0000 On 7 Dec 2020, at 13:54, Peter wrote: > After clean upgrade (from source) from 11.4 to 12.2-p1 my jails do > no longer work correctly. > > Old-fashioned jails seem to work, but most are VIMAGE+NETGRAPH style, > and do not work properly. > All did work flawlessly for nearly a year with Rel.11. > > If I start 2-3 jails, and then stop them again, there is always a > panic. > Also reproducible with GENERIC kernel. > > Can this be fixed, or do I need to revert to 11.4? > > The backtrace looks like this: > > #4 0xffffffff810bbadf at trap_pfault+0x4f > #5 0xffffffff810bb23f at trap+0x4cf > #6 0xffffffff810933f8 at calltrap+0x8 > #7 0xffffffff80cdd555 at _if_delgroup_locked+0x465 > #8 0xffffffff80cdbfbe at if_detach_internal+0x24e > #9 0xffffffff80ce305c at if_vmove+0x3c > #10 0xffffffff80ce3010 at vnet_if_return+0x50 > #11 0xffffffff80d0e696 at vnet_destroy+0x136 > #12 0xffffffff80ba781d at prison_deref+0x27d > #13 0xffffffff80c3e38a at taskqueue_run_locked+0x14a > #14 0xffffffff80c3f799 at taskqueue_thread_loop+0xb9 > #15 0xffffffff80b9fd52 at fork_exit+0x82 > #16 0xffffffff8109442e at fork_trampoline+0xe > > This is my typical jail config, designed and tested with Rel.11: > That smells a lot like the epair/vnet issues in bugs 238870, 234985, 244703, 250870. I pushed a fix for that in CURRENT in r368237. It’s scheduled to go into stable/12 sometime next week, but it’d be good to know that it fixes your problem too before I merge it. In other words: can you test a recent CURRENT? It’s likely fixed there, and if it’s not I may be able to fix it quickly. Best regards, Kristof