]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle kmod local relocation failures gracefully
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 7 Oct 2020 23:14:49 +0000 (23:14 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Wed, 7 Oct 2020 23:14:49 +0000 (23:14 +0000)
commit44c705cf15cdf7485d23fbaa26c92bc13db097ea
treeec7691cc7f42f196f689f33b2920c8292b874c22
parent5152b4f74fb581bbc9a1f10e9b9f6204fff1ae27
Handle kmod local relocation failures gracefully

It is possible for elf_reloc_local() to fail in the unlikely case of
an unsupported relocation type. If this occurs, do not continue to
process the file.

Reviewed by: kib, markj (earlier version)
MFC after: 1 week
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D26701
sys/kern/link_elf_obj.c