]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle kmod local relocation failures gracefully
authormhorne <mhorne@FreeBSD.org>
Wed, 7 Oct 2020 23:14:49 +0000 (23:14 +0000)
committermhorne <mhorne@FreeBSD.org>
Wed, 7 Oct 2020 23:14:49 +0000 (23:14 +0000)
commit299d2d9341b4db25074aa02ea903655e8ec77699
treeec7691cc7f42f196f689f33b2920c8292b874c22
parent87db4e5eb0bbb55bb156c9451a0fd6ff4e8fb325
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