Skip to content

Commit

Permalink
arm64: Disable coverage sanitization of pmap_update_strided
Browse files Browse the repository at this point in the history
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
01bb9a2.

Reviewed by:	markj
MFC after:	1 week
  • Loading branch information
RoundofThree authored and markjdb committed Oct 11, 2024
1 parent a78bacf commit 4f2ca36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/arm64/arm64/pmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4f2ca36

Please sign in to comment.