From nobody Sat Dec 17 13:38:28 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZ6Vs0Jw6z1ChG6 for ; Sat, 17 Dec 2022 13:38:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZ6Vr66VDz3Ffx for ; Sat, 17 Dec 2022 13:38:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671284308; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=df8vDcmmdwwhDLCj0ZPN8VV/ugBDleq24cQ0VdHWeds=; b=Z3gCELW01UVS7v4s6oSc4Vf4o32i9gUV/xv1Of9ptRzQhembc9dGluZDXJI854eP2yPAfy EW1YQryNfln/DsrZTSvq9re3Ed7CzmC5BGIjd/5sJYpTU/NIqA3cFmLc7WXyXk/nF1ICB7 6sC6Q4fqMs/A5eOvF96pHJDH/M8jMyKe2tVHcREQ2dtFKnKGSWfBRiNpjpvJ0sIDddR5YC jqnEmlBPlSUXISREo9RwCXroSZtdja4h76D85NOgiD5VhyYvQwu+wTibdxt3al47Pk30c3 iYQcmex8NlIKaySZfAyWrdE3GV/A2NskcYLgQpFQYkbCo5DVn0nov4sBr7kCBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671284308; a=rsa-sha256; cv=none; b=Djr7cvBp40e57jQtL2puRKDZCG0i22/pI7lq80tWHAgVepLcvJlLtD6MSFWvqZYPFMVUBE IcQjck73jVg25Pq9sBigh2TQV5YqFFX4OwhOR28C3TH1e6jijwy1AbI7j0tfUSB+nw26Ny oXbWlHTfm9HFJA/VX7j7qKvXMKXIFlDb0Fl5/ZblaPy+UAkuCGD5AM0v+lFK5XT73wOsfJ kec5WhruEbEFOKJlyT4nRz5rWxkP5DF6PulRpKuUKJoZCwth3nwGrmcr0FIjRZaQTu/KUR +Y5JOktsrrYldLXhYlwzCAs5cpAKCyXgsP/4BiteUUmf9Vrp6o5t96UM/1SHhw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZ6Vr51hqztqv for ; Sat, 17 Dec 2022 13:38:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BHDcSur081073 for ; Sat, 17 Dec 2022 13:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BHDcSse081072 for bugs@FreeBSD.org; Sat, 17 Dec 2022 13:38:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264981] jail with vnet interface stuck in dying state Date: Sat, 17 Dec 2022 13:38:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zlei.huang@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264981 Zhenlei Huang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zlei.huang@gmail.com --- Comment #6 from Zhenlei Huang --- @bz also encountered this issue and reported in mailing list: https://lists.freebsd.org/archives/freebsd-jail/2022-December/000156.html I'll quote from the mail about some analyzations by me: > After DDB debugging and tracing , it seems that is triggered by a combine= of [1] and [2] > > [1] https://reviews.freebsd.org/rGfec8a8c7cbe4384c7e61d376f3aa5be5ac895915 > [2] https://reviews.freebsd.org/rGeb93b99d698674e3b1cc7139fda98e2b175b8c5b > > In [1] the per-VNET uma zone is shared with the global one. > `pcbinfo->ipi_zone =3D pcbstor->ips_zone;` > > In [2] unref `inp->inp_cred` is deferred called in inpcb_dtor() by uma_zf= ree_smr() . > > Unfortunately inps freed by uma_zfree_smr() are cached and inpcb_dtor() i= s not called immediately , > thus leaking `inp->inp_cred` ref and hence `prison->pr_ref`. > > And it is also not possible to free up the cache by per-VNET SYSUNINIT tc= p_destroy / udp_destroy / rip_destroy. --=20 You are receiving this mail because: You are the assignee for the bug.=