HomeFreeBSD

link_elf_obj: Invoke fini callbacks

Description

link_elf_obj: Invoke fini callbacks

This is required for KASAN: when a module is unloaded, poisoned regions
(e.g., pad areas between global variables) are left as such, so if they
are reused as KLDs are loaded, false positives can arise.

Reported by: pho, Jenkins
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31339

Details

Provenance
markjAuthored on Jul 29 2021, 1:46 PM
Reviewer
kib
Differential Revision
D31339: link_elf_obj: Invoke fini callbacks
Parents
R10:98bfb9dac285: libc/locale: Use O_CLOEXEC when opening locale tables
Branches
Unknown
Tags
Unknown