From nobody Fri May 06 11:56:23 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 B8B561AB66BA for ; Fri, 6 May 2022 11:56:23 +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 4Kvptv1m96z4vsx for ; Fri, 6 May 2022 11:56:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 18FB51B6AF for ; Fri, 6 May 2022 11:56:23 +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 246BuNrr084840 for ; Fri, 6 May 2022 11:56:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 246BuN7C084839 for bugs@FreeBSD.org; Fri, 6 May 2022 11:56:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262829] epair: New panic when destroying epair interface of vnet jail Date: Fri, 06 May 2022 11:56:23 +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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651838183; 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=sQvMgkCoreH/KyA+nw3nywoFUPjhTnoy7+4KX/p8ygA=; b=OW20l9v8FNkvqJi5fIvDoKC86y2S0P4qbkpwE1/Fjye4rbiSePSbRX7sH+4pcgzTg6GcFr 1/P3prDDSHKvXzVWWXM9g5c+rK+oHODwnw7hpa1CQqVpsLzlx/Fowc7jeNBLUZI/9ka5x+ UO6ObSIV+NuRwxur8Hy/Ui2D0ZpSKw1SMjCroKxJcHeyd/8qNGIP96QI/GqyMXHDOxmgTN 3XZFW36vVtP/HyX8P9wzRHXNd9suaZHPaz+iH2MPtzZ4Y9oJR0t53qXLyR/3KlaSqtF7hh vqgj15TCw188GC8YECDyd/4JPU3YXH6+0MZu0V1K551LTTK1hETcYsXf7fk8nQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651838183; a=rsa-sha256; cv=none; b=sdu2PVeEdscWy67ekZRJnkFgzK36XpdT4moU4c81c11098Q8aNImG6rNm2IvSoO8IOZqXD M9Kq/i/KgN5ShchTgOJYIFq5EtC1e7Xwn23/xJk6xVxK6rGt8cS29MbRjzapLRfjL824iP 9OsztVM6OF2bjS8xzG3kyuNWfQzPiH4mK1VrGzXDxAkki1+hYcSsZw+5EFULK3KwYzsUSr mcVXLe3SCDaZdC4RGq20L13XqfGpaWFXEF8q4bptU3anLywFCiP/8+kiB5mnfIUvXVp8g/ rpew0kjz/h+AVTiiR4ZUqDXJsnXLVZNcDb7WA42Lk4dK4kZgxOxs5+nTeM+rwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262829 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D868bf82153e8ff22f09a8860c872149e0= fb6bdef commit 868bf82153e8ff22f09a8860c872149e0fb6bdef Author: Kristof Provost AuthorDate: 2022-03-27 18:23:25 +0000 Commit: Kristof Provost CommitDate: 2022-05-06 11:55:08 +0000 if: avoid interface destroy race When we destroy an interface while the jail containing it is being destroyed we risk seeing a race between if_vmove() and the destruction code, which results in us trying to move a destroyed interface. Protect against this by using the ifnet_detach_sxlock to also covert if_vmove() (and not just detach). PR: 262829 MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D34704 sys/net/if.c | 22 ++++++++++++++++++++-- tests/sys/net/if_clone_test.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=