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)
Fri, Mar 27, 1:38 PM
Unknown Object (File)
Fri, Mar 27, 2:32 AM
Unknown Object (File)
Sun, Mar 15, 11:52 AM
Unknown Object (File)
Tue, Mar 3, 1:49 AM
Unknown Object (File)
Sun, Mar 1, 12:54 PM
Unknown Object (File)
Feb 13 2026, 11:59 AM
Unknown Object (File)
Jan 31 2026, 2:42 PM
Unknown Object (File)
Jan 17 2026, 6:56 AM
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