Page MenuHomeFreeBSD

rtld-elf: Use clear pointer provenance when updating DTV pointer
ClosedPublic

Authored by jrtc27 on May 7 2025, 3:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 1, 12:06 PM
Unknown Object (File)
Mon, Jun 30, 5:34 PM
Unknown Object (File)
Mon, Jun 30, 4:39 PM
Unknown Object (File)
Mon, Jun 30, 10:51 AM
Unknown Object (File)
Mon, Jun 30, 5:05 AM
Unknown Object (File)
Mon, Jun 30, 12:49 AM
Unknown Object (File)
Mon, Jun 30, 12:23 AM
Unknown Object (File)
Sun, Jun 29, 6:06 PM
Subscribers

Details

Summary

On traditional architectures where uintptr_t is just a plain integer,
there is no provenance from the order of operations. However, on CHERI
there is even for uintptr_t, and in future this code will use actual
pointer types anyway, where the provenance does technically matter even
for non-CHERI. Commute and associate the operands appropriately to
ensure the provenance is for the new allocation, not the old one.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable