From nobody Wed Aug 24 19:25:40 2022 X-Original-To: testing@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 4MCbfY1t4Zz4Zfqv for ; Wed, 24 Aug 2022 19:25:41 +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 4MCbfY0DBxz3RPH for ; Wed, 24 Aug 2022 19:25:41 +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 4MCbfX6PTQzKvX for ; Wed, 24 Aug 2022 19:25:40 +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 27OJPerg099941 for ; Wed, 24 Aug 2022 19:25:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27OJPehi099940 for testing@FreeBSD.org; Wed, 24 Aug 2022 19:25:40 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: testing@FreeBSD.org Subject: [Bug 265889] sys.kern.basic_signal.trap_signal_test crashes bhyve in i386 VM Date: Wed, 24 Aug 2022 19:25:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: tests X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: testing@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: Testing List-Archive: https://lists.freebsd.org/archives/freebsd-testing List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-testing@freebsd.org X-BeenThere: freebsd-testing@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661369141; 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=kHXt9ATksFvhzGUCiIk7lvKEAlHszhCKkQephErqLxU=; b=wk1wyGZgYCbBYpZjEvHNDX/vfGX6TOtfZqn5L7JfeQ1RTNGMVjorJRCocoRE2pZgAMam2I 7RR6a6nQJXU3hdMftaRI8n1g8lkmy3MQk1K5whBan7SNEPxV52SC5tu5RrRPhRlz7EruWY 1Aj5ZKUwqv2Yn1TirqALxsC1+qHg8ObCGB6KXuXBqFaASG/GtvI3RP3ajMmkhXJAqs8f+3 6YsUMwrMpFFr5ohQSElTB5oQxKh/LwmmCCZq6MiydMtF+/yr7kYtil7Um1ghRp73Q/K/jq KCBPE91YG5AnYV6BxcmCqY4r5QgTzQ/0QoEXC85HTXpb1ZgZhfiW48vawn9BxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661369141; a=rsa-sha256; cv=none; b=D8jh++kFuxgaSoavrgRDifTil3c2Xhp9tQZSESdyw1G0l+AQf1dHQ3jeFYlbZ15vfGQ0RI k5u9wcUcFDCLxJJopVTiJpKSf70vUXdCeeQ+EiJ0HLpO9lSg/SmWShgYEsHICuJAsWFWf0 tWXUVcwFOb7Y8gxOi6wJ4QN653AzQPpY7qLENHQFpvuGdr1wXElWAfaikrIubL9g6WQBjH tbj24SBgG2fYE/9O44kj7chSO0KD8y/DkgvoCqLXhlzV7BsK+yl7pGpEXvONWUSFIVP3No F5WS2gyXAZ7ArufRv4ShC8nsB1irZ4ggXWbSe2NKzcLp584LNJf03Rl7q5BRKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265889 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Ddc4a2d1d0e838579f21d9d1fef8655f90= 2f06ab2 commit dc4a2d1d0e838579f21d9d1fef8655f902f06ab2 Author: Konstantin Belousov AuthorDate: 2022-08-19 01:26:37 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-24 19:11:57 +0000 i386: do not allow userspace to set tf_trapno on sigreturn(2) tf_trapno is checked on return from interrupt/exception to determine if special handling is needed for switching address space. This is due to the possibility of NMI/MCHK/DBG to occur at arbitrary place in kernel, where both address space and stack used could be transient. Kernel saves current %cr3 in tf_err for such events, to restore on return. If user is able to set tf_trapno, it can trigger that special handling, and since tf_err is also user-controlled by sigreturn(2), the result is undefined. PR: 265889 Reported by: lwhsu Reviewed by: jhb Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36302 sys/i386/i386/exec_machdep.c | 3 +++ 1 file changed, 3 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=