Bug 255018 - devel/pcre2 apparently incompatible with sysctl kern.elf64.allow_wx=0
Summary: devel/pcre2 apparently incompatible with sysctl kern.elf64.allow_wx=0
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 20:48 UTC by Ed Maste
Modified: 2021-04-12 20:48 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (krion)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2021-04-12 20:48:05 UTC
With the kern.elf64.allow_wx sysctl set to 0 (disabling simultaneously W+X memory) pcre2 fails, as observed e.g. via `git log`

$ git log --author=imp
fatal: Couldn't JIT the PCRE2 pattern 'imp', got '-48'

I'm opening this PR to track the issue as we try to figure out how to deploy mitigations like this more widely, but do not yet have a suggestion on a path to addressing this.