From nobody Fri Oct 11 16:53:44 2024 X-Original-To: dev-commits-src-main@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 4XQCPh3bnZz5Z7Ln; Fri, 11 Oct 2024 16:53:44 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XQCPh1ZkBz56rT; Fri, 11 Oct 2024 16:53:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728665624; 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=QExtNj/sIRuSy+yGReVDBqE+sY/zZK5VMcJu+zZEi0c=; b=oLOb7x/mjrXxLBZhEx2FmmnwB98bdcUidNCWWdEG+xj2zTqgW0ugTUIZ45UEKOUnP3vV0r XvBDTiGPI971HNH8/hQNZ8uBJPeG2aYSszCGQ43hDGQjmA7vnZ/8CFW9+Sv71tfH7B4rxf thp+2CxcMojbD/1SM1NtWOnPnsW0dugkycdHvQ0BO/zL/4k39ESVf8yIQH5yJJEYyPjpTX rYOwtyKezvevl12ERfFCKye+4Ob4CX6c6NRP7GWYTWL+8dYGMJ4OEkqWL3EQe4PVSTcWpG 8Al7EINKFLILw0AD05Fr3dPStccsG8MLu6/MfBqlDAg8z4g2NA1H7oNkJwyeHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728665624; 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=QExtNj/sIRuSy+yGReVDBqE+sY/zZK5VMcJu+zZEi0c=; b=QzC/tnS+tKqGgDoMOdIznnQM8pHYx6MqATVdz7Y4XkYzPOhBGxVDZwx3JANFQQDwU3Qjpb a6dLPeLLTsHdVZ0GcKrsbavYBn36o0sOiyyKK0EPsmYSBaIx3OQRWSnF67QfeQHToTKUdl 6hV3GVD+fT55BVqwOJzAl/lNu766OL3t8+LtsDZfAfmr5LmTyakEs4InuOff2NL10eU84u P9ESnPn6MTbT0/TCxSI8v/AfYUWWQjRPDJTXKg8E7jk+OLr/TqDlWf2XX6vlEY9TCCzGTm e3KxiHQK8NvClpTahOz5wb2IMTASNCyM9Rv0WK1+x382NRCr+J5nIfRne2Qw8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728665624; a=rsa-sha256; cv=none; b=NUv1E2r39KAVhrYXx6aCChGUq7SM+hVPbWHQ0hB+8qyK7YrRJsxRfIP52R5JJ89gH6o8pw d/99E/AIV4E1e/hok3BxVWiH4ZM3Rr4BbXEgHxSd7Sa9Yg2CI8eKuTjFnriv7l1c5aP9op GXk22NavqViueg7j5shVvGuM/jJphA8L5rMIkM80FJZlxXB09MJtCivbkOiUUR+Wvr+EHc QrQYXyvdA/AihI6Fec909fJi7uOm41gkCuxgSG37xRPbmkGJYxhhzdMcEpkgT7C9r6C+K2 txpv11KOgmxWaj0ZK0hsni9vuSlIMUwCCG2uvwdNDn3JBIxY+ywr2+aR9/g7GQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XQCPh1Bndzqbf; Fri, 11 Oct 2024 16:53:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49BGrimc091048; Fri, 11 Oct 2024 16:53:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49BGrin3091045; Fri, 11 Oct 2024 16:53:44 GMT (envelope-from git) Date: Fri, 11 Oct 2024 16:53:44 GMT Message-Id: <202410111653.49BGrin3091045@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 4f2ca36c7bec - main - arm64: Disable coverage sanitization of `pmap_update_strided` List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4f2ca36c7becd20b21ce5ef7256bbd42f732dafe Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4f2ca36c7becd20b21ce5ef7256bbd42f732dafe commit 4f2ca36c7becd20b21ce5ef7256bbd42f732dafe Author: Zhuo Ying Jiang Li AuthorDate: 2024-10-11 16:41:49 +0000 Commit: Mark Johnston CommitDate: 2024-10-11 16:52:53 +0000 arm64: Disable coverage sanitization of `pmap_update_strided` The break-before-make update invalidates PTEs, including the PTE pointing to curthread, causing a fault in `trace_pc`. This addresses a similar issue in 01bb9a2a3557bc9389f628d301cd691e08266f1d. Reviewed by: markj MFC after: 1 week --- sys/arm64/arm64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index 6f758b7ff10c..2c8f8b416a9e 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -4618,7 +4618,7 @@ pmap_update_entry(pmap_t pmap, pd_entry_t *ptep, pd_entry_t newpte, /* * Performs a break-before-make update of an ATTR_CONTIGUOUS mapping. */ -static void +static void __nosanitizecoverage pmap_update_strided(pmap_t pmap, pd_entry_t *ptep, pd_entry_t *ptep_end, pd_entry_t newpte, vm_offset_t va, vm_offset_t stride, vm_size_t size) {