From nobody Thu Jun 22 15:24:59 2023 X-Original-To: standards@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 4Qn41S0Drcz4gh9G for ; Thu, 22 Jun 2023 15:25:00 +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 4Qn41R5Lpyz3tCm for ; Thu, 22 Jun 2023 15:24:59 +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=1687447499; 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; bh=Xv/U2B/pbEWnPe1tfbqSR86k+Y5PvMCWtDE0VNeCa7A=; b=ZZ86E1Uva+zpR86ulGHhpGL7yPZUGtGpipgNXFDeV0MIGj5MTVZE29bPtXbicxZKNOb7Nt D2QrOtzh21wBmV2YeA3cV7r0QCrfPyquJDlMolYlV9dTxj+xABHf9+T9ecZwHGJ0l8ziQV HEyVduxr7LR8oZawCrKs1XEKho8whtsmtzlUCrYjl1OJM8fgNt6NEindkD3roeVBqxwxwD TltIYwyCIrJmMgW3ONbnGUmXZicDD4cQcbMSkFvGt7chY1+xpveH5cHNZdtRRxetvukR3O ZG1h3MdxA0zfevhD5Nxw0n/4rZNRE68Vk8FBk2IKbrbKQB0OjRAKFP6gkBUtgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687447499; a=rsa-sha256; cv=none; b=Ay2gxeK5ZLeEGAYm0eD1j6QCDGTwC0FaGg9Q+4N1sr0mAyPkAZQ3z07oAC7qolERKXsmhT Mg1qcpi95d/yusFNVbQh4JIxywYDFRqCzDxP1qOlpO/lih9iyYiRk9/NSQQBdEwLpYTYec YOM1+Vb39wqXw/lY5vc3980eZyx42acnkEUThP9qup2xac9UN6ZI3YjCRc0qLQ3/Y/Oox4 oAER5YMYY0gP+B+7E+DgdMny1ikc3DRs7U81C2NE1kzvViMHYs4BcxucEWG6Bkf//kwpzI DWJHLJ5BPM6Ic9+2E6PTAJyYLobsrmpTI3jYYdXX+0YvDdoS6VQOt503zJYb5g== 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 4Qn41R4Ps6zT2W for ; Thu, 22 Jun 2023 15:24:59 +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 35MFOx4r005266 for ; Thu, 22 Jun 2023 15:24:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35MFOxX3005265 for standards@FreeBSD.org; Thu, 22 Jun 2023 15:24:59 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: standards@FreeBSD.org Subject: [Bug 272149] mc_trapno incorrectly reports 0xc instead of 0xe Date: Thu, 22 Jun 2023 15:24:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: doctorwhoguy@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272149 Bug ID: 272149 Summary: mc_trapno incorrectly reports 0xc instead of 0xe Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: doctorwhoguy@gmail.com I'm filing this bug on behalf of someone else who understands the issue bet= ter than I, so I'll try to give the relevant info but can get more if necessary= . I asked for a brief description: "When SIGSEGV is delivered due to a page fault, freebsd sets mc_trapno sigcontext member to 0xc, as if it was a stack fault. But mc_addr and mc_err are the correct values corresponding to a page fault (for stack fault they'= d be entirely different), so simply changing mc_trapno from 0xc to 0xe by hands, allows the JIT to work. This means the bug is very simple: freebsd just corrupts the mc_trapno value somehow. If it be something more complex, like= a real stack fault in between, then simply fixing up the mc_trapno would not help, but it does." Here is a test case: https://github.com/dosemu2/dosemu2/commit/180184d2efa8f80db60330f823cfa1bc9= b9e40f2 --=20 You are receiving this mail because: You are the assignee for the bug.=