From nobody Thu Jun 22 17:13:11 2023 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 4Qn6QH1DQ8z4fsL9 for ; Thu, 22 Jun 2023 17:13:11 +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 4Qn6QG6Pvvz3hnW for ; Thu, 22 Jun 2023 17:13:10 +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=1687453990; 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=TisTVIIQiGi0Z0UV9SOsG+rmUi8W9oYm0l0t8P0kx2o=; b=ay75lPglNSor1p6DMVBmZ73jBfVrfA4L+Z5Qmk7dNfWl/DYvbKB09vGIBqgQwC1vPRqd7N E+17WPtsuqSj+gBZQTMhIQm7glquaCoNsy5XNYQbZHvLoO/xZoeNHlR+wk5CQbjDAwvzrP d4CvOm5oxqyWlW6BXdHYKeFpobeMbDnvD3EGzBQNG8TMjpRM0RBBZGMRrX5P2HmqjHYCau hcQx/gS8sJd6pupft49Qj9Qh5eH5xGLIVPXTn75Q1aWsiTPKAdMb8EVVnMiUIES594n30M Yw/5fYpVQIU3DhwhsOaE79hxUa8jg76iUTtgBtsLAwKr4iP0TaLicn7IpTXfdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687453990; a=rsa-sha256; cv=none; b=RoFF271svilmZZnn875YAsBaOC5c4+Sn5rMoI+0t9DPC86muOZKSJ1dC5rQ2uaCQSK231s iTFvEbTWZHPDwgHjpALGG+F53QidLIL3bSy0gjVFp+J0lGbmJYzeKP5sUVbU6KexWQZCzq U2z2Qb+EKN7E6iLQFkZeeDWnh4NfsxBYOeHO1hwPU6Mk2Nkly0MNpV1Cqsy1Lb7eBrRGF5 BccCibJpsf2Ky3FKSbcxCpHPD0xv1Vg92fTzy8ooseEeS1TkyUl6GO0Ieo7VlF68zdOJ+E H7R9CfiyRP/heTvJTjrGJH7EMFPTAe00f5+uAGpeKWTd+SbQqkcGnBhbqNKb1A== 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 4Qn6QG5TtwzWgB for ; Thu, 22 Jun 2023 17:13:10 +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 35MHDAmM066200 for ; Thu, 22 Jun 2023 17:13:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35MHDA9R066199 for bugs@FreeBSD.org; Thu, 22 Jun 2023 17:13:10 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 272151] panic: use-after-free tty race condition Date: Thu, 22 Jun 2023 17:13:11 +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 Many People X-Bugzilla-Who: kevans@freebsd.org X-Bugzilla-Status: Open 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=3D272151 Kyle Evans changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dchagin@FreeBSD.org, | |kevans@freebsd.org, | |markj@FreeBSD.org --- Comment #1 from Kyle Evans --- I guess the implication is that we're hitting https://cgit.freebsd.org/src/tree/sys/kern/kern_event.c#n1732 with a NULL kn->kn_knlist, in which case the previous kn_list_lock() was effectively a = nop and we're not meeting the invariant described in kqueue(9): The knlist_*() family of functions are for managing knotes associated with an object. A knlist is not required, but is commonly used. If used, the knlist must be initialized with either knlist_init() or knlist_init_mtx(). The knlist structure may be embedded into the obje= ct structure. *The lock will be held over f_event calls.* Maybe dchagin@ or markj@ can comment a little further on this one. --=20 You are receiving this mail because: You are the assignee for the bug.=