Commit de15ea2
committed
objtool: Revert "skip non-text sections when adding return-thunk sites"
JIRA: https://issues.redhat.com/browse/RHEL-71467
Upstream Status: RHEL only
The RHEL only commit d0fd1f5 ("objtool: skip non-text sections when
adding return-thunk sites") is based on a linux stable commit like the
linux-5.18.y's commit f7b097e ("objtool: skip non-text sections
when adding return-thunk sites") to work around an x86 linking problem
at the time.
Now the linking problem doesn't seem to be present anymore with the
latest RHEL9 source code. It is time to revert the commit as it is
causing objtool to ignore return sites in .altinstr_replacement created
by the ALTERNATIVE* macros. So these return sites never gets added to
.return.sites and thus doesn't get patched by apply_returns(). This is
bad as they can be potential security holes even if RETBleed mitigation
has been enabled. Thank Josh Poimboeuf for figuring out this bug.
Signed-off-by: Waiman Long <longman@redhat.com>1 parent c7149de commit de15ea2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1458 | 1458 | | |
1459 | 1459 | | |
1460 | 1460 | | |
1461 | | - | |
1462 | | - | |
| 1461 | + | |
1463 | 1462 | | |
1464 | 1463 | | |
1465 | 1464 | | |
| |||
0 commit comments