summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@fingolfin.org>2021-11-02 19:55:44 -0700
committerRobert Mustacchi <rm@fingolfin.org>2022-01-22 19:57:48 +0000
commit6d25b15cb097cca4822fec6dcaf12fcd345b1a2a (patch)
tree135787d3150e7cc0076075175e93f529fd941eb4 /usr/src
parent1dc4a5921402bdb59d1de1e99e79a3f9d0dd51df (diff)
downloadillumos-gate-6d25b15cb097cca4822fec6dcaf12fcd345b1a2a.tar.gz
14427 amd64 kobj_reloc can infinite loop on bad reloc type
Reviewed by: Andy Fiddaman <andy@omnios.org> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/intel/amd64/krtld/kobj_reloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/intel/amd64/krtld/kobj_reloc.c b/usr/src/uts/intel/amd64/krtld/kobj_reloc.c
index 146a5148a1..9756c847f3 100644
--- a/usr/src/uts/intel/amd64/krtld/kobj_reloc.c
+++ b/usr/src/uts/intel/amd64/krtld/kobj_reloc.c
@@ -213,8 +213,7 @@ do_relocate(struct module *mp, char *reltbl, int nreloc, int relocsize,
rtype);
_kobj_printf(ops, " at 0x%lx:", off);
_kobj_printf(ops, " file=%s\n", mp->filename);
- err = 1;
- continue;
+ return (-1);
}