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, Feb 13, 11:59 AM
Unknown Object (File)
Sat, Jan 31, 2:42 PM
Unknown Object (File)
Jan 17 2026, 6:56 AM
Unknown Object (File)
Jan 17 2026, 6:43 AM
Unknown Object (File)
Jan 15 2026, 11:56 PM
Unknown Object (File)
Jan 12 2026, 6:21 AM
Unknown Object (File)
Jan 7 2026, 10:23 PM
Unknown Object (File)
Dec 20 2025, 10:46 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 Passed
Unit
No Test Coverage
Build Status
Buildable 63981
Build 60865: arc lint + arc unit