Aurelio Bernal and morluto
9b1ffa1f7d
fix(ghidra): protect only unapplied relocation destinations, not their whole block ( #11996 )
...
Since #10483 , an unapplied loader relocation in a non-writable block made
that whole block volatile. TLS slots are such relocations and sit in .got
beside the entries Ghidra did apply, so in any shared object or PIE with
initial-exec or dynamic TLS every GOT-indirect call decompiled as pointer
arithmetic instead of a named call.
Mark each unapplied destination volatile through its data item's Mutability
setting, creating an undefined item of the relocation's length where nothing
is defined. Fall back to the whole block only when an instruction or a data
item starting before the destination occupies it. Eligibility, limitations,
the read-only path, permissions and source FileBytes are unchanged.
The loader-relocation fixture now reads an initial-exec TLS variable whose
R_X86_64_TPOFF64 slot shares .got with the applied entries. The probe
requires that block and its applied entries to stay non-volatile and both
unapplied destinations to have volatile data items; on the previous bridge
it fails at applied_got_relocations_not_volatile.
Rename loader_relocation_semantics to
volatile-unapplied-relocation-destinations to state the new behavior.
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com >
2026-11-18 20:30:01 -05:00
..
2026-11-18 15:27:23 -05:00
2026-11-16 14:58:17 -05:00
2026-11-18 19:31:12 -05:00
2026-11-16 10:59:18 +08:00
2026-11-18 19:07:02 -05:00
2026-10-21 21:19:45 -07:00
2026-10-23 02:31:11 +08:00
2026-11-11 17:28:10 +08:00
2026-11-18 16:06:51 -05:00
2026-10-26 16:04:44 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-15 20:35:48 +08:00
2026-10-26 14:46:35 +08:00
2026-11-11 00:16:44 -05:00
2026-11-16 10:59:18 +08:00
2026-10-13 18:23:17 +08:00
2026-10-26 15:49:58 +08:00
2026-10-08 22:43:51 +08:00
2026-11-16 05:31:37 +08:00
2026-10-13 12:06:41 +08:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-14 11:48:19 +08:00
2026-10-14 04:47:34 +08:00
2026-11-03 09:33:41 +08:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-16 13:56:34 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-11-18 07:00:09 +08:00
2026-10-11 11:49:49 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-10-14 13:58:17 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-18 17:54:40 -05:00
2026-11-18 07:12:22 +08:00
2026-11-18 07:12:22 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:55:29 -05:00
2026-11-15 20:32:38 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:01:18 +08:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 05:31:37 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-11-18 15:08:58 -05:00
2026-11-16 05:31:37 +08:00
2026-11-17 10:47:29 +00:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:07:13 +08:00
2026-11-17 14:57:30 -05:00
2026-11-17 10:04:46 +00:00
2026-11-17 10:04:46 +00:00
2026-11-16 00:06:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:39:50 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 20:30:01 -05:00
2026-11-16 06:28:01 +08:00
2026-11-17 08:19:52 +00:00
2026-11-16 06:28:01 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:38:57 +08:00
2026-11-15 22:01:49 +08:00
2026-08-05 19:07:46 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 20:19:27 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 20:19:27 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-14 04:08:37 -05:00
2026-11-16 08:04:12 +08:00
2026-11-17 08:28:59 -05:00
2026-10-24 22:28:39 +08:00
2026-11-15 21:51:18 +08:00
2026-11-18 15:33:46 -05:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-17 16:34:22 -05:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-10-27 17:13:17 +00:00
2026-11-16 00:04:05 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 00:06:34 +08:00
2026-11-15 22:01:49 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 20:19:27 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 00:06:34 +08:00
2026-11-02 02:13:32 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-14 04:08:37 -05:00
2026-11-16 00:19:07 +08:00
2026-11-18 16:40:18 -05:00
2026-11-15 19:52:38 +08:00
2026-11-15 19:52:38 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-04 19:51:27 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 07:04:34 +08:00
2026-11-16 05:37:57 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 20:04:59 -05:00
2026-11-18 16:06:51 -05:00
2026-10-05 22:54:17 +08:00
2026-10-06 01:59:19 +08:00
2026-11-16 06:28:01 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-16 03:56:10 +08:00
2026-11-15 21:37:40 +08:00
2026-11-15 21:51:18 +08:00
2026-11-16 08:08:38 +08:00
2026-11-18 16:06:51 -05:00
2026-10-27 01:11:51 +08:00
2026-11-15 21:51:18 +08:00
2026-11-15 22:01:49 +08:00
2026-10-08 10:13:05 +00:00
2026-11-15 22:01:49 +08:00
2026-11-17 08:28:59 -05:00
2026-11-15 21:51:18 +08:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:28:01 +08:00
2026-11-16 06:38:13 -05:00
2026-10-23 16:06:27 +08:00
2026-10-26 16:04:44 +08:00
2026-11-15 21:50:00 +08:00
2026-11-16 03:56:10 +08:00
2026-11-17 08:28:59 -05:00
2026-11-03 09:33:41 +08:00
2026-10-23 16:06:27 +08:00
2026-11-03 09:33:41 +08:00
2026-10-26 14:46:23 +08:00