Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1970605

Summary: loader: Enable BTI for for main executable as well as the interpreter
Product: Red Hat Enterprise Linux 9 Reporter: Jeremy Linton (ARM) <jlinton>
Component: kernelAssignee: Mark Salter <msalter>
kernel sub component: aarch64 QA Contact: Eirik Fuller <efuller>
Status: CLOSED DEFERRED Docs Contact:
Severity: unspecified    
Priority: unspecified CC: darcari, dhoward, dledford
Version: 9.0Flags: pm-rhel: mirror+
Target Milestone: beta   
Target Release: 9.0 Beta   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 15:05:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeremy Linton (ARM) 2021-06-10 19:04:43 UTC
Description of problem: It became apparent a while back that the kernel should be enabling BTI for the segments it maps rather than relying on the dynamic linker to perform that task. Otherwise secomp as used by things like systemd might attempt to block changes to executable page states. The current RHEL9 builds are carrying a glibc that will attempt to remap rather than change protection flags, but this doesn't work for the main .exe pages. Meaning that system services marked MemoryDenyWriteExecute=Yes (MDWE) were running without BTI protection. This series: https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=494119  attempts to correct that and should me merged once it is ready.


Version-Release number of selected component (if applicable): RHEL9


How reproducible: 100%

Steps to Reproduce:
1. Convert BTI's to NOP's in MDWE protected services
2. Note they continue to run, when they should be failing.


Additional info:
I tested the listed set, and its not working right yet, so its possible a newer set will be posted (or I messed something up).

Comment 3 Mark Salter 2022-11-15 15:05:24 UTC
Jeremy, I can't see any resolution to this upstream yet. Reopen when it is worked out upstream.

Comment 4 Jeremy Linton (ARM) 2022-11-15 19:38:10 UTC
There is movement with the https://lore.kernel.org/lkml/20221026150457.36957-1-joey.gouly@arm.com/ set.

Although, its not yet worked out...