aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2017-03-22 07:05:27 +0000
committerEd Schouten <ed@FreeBSD.org>2017-03-22 07:05:27 +0000
commitae2373da91d8433cc2d204d5966e0565a1508c84 (patch)
tree24ee6e68c72e1ce1e72c4e31b261c6e604086e92 /sys/i386
parent36cc183884417d190d501a09e16ed9f0facc9473 (diff)
downloadsrc-ae2373da91d8433cc2d204d5966e0565a1508c84.tar.gz
src-ae2373da91d8433cc2d204d5966e0565a1508c84.zip
Set the interpreter path to /nonexistent.
CloudABI executables are statically linked and don't have an interpreter. Setting the interpreter path to NULL used to work previously, but r314851 introduced code that checks the string unconditionally. Running CloudABI executables now causes a null pointer dereference. Looking at the rest of imgact_elf.c, it seems various other codepaths already leaned on the fact that the interpreter path is set. Let's just go ahead and pick an obviously incorrect interpreter path to appease imgact_elf.c. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=315701
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/cloudabi32/cloudabi32_sysvec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/cloudabi32/cloudabi32_sysvec.c b/sys/i386/cloudabi32/cloudabi32_sysvec.c
index 9e1dac4122ab..2658c4f9ed66 100644
--- a/sys/i386/cloudabi32/cloudabi32_sysvec.c
+++ b/sys/i386/cloudabi32/cloudabi32_sysvec.c
@@ -201,4 +201,5 @@ Elf32_Brandinfo cloudabi32_brand = {
.machine = EM_386,
.sysvec = &cloudabi32_elf_sysvec,
.compat_3_brand = "CloudABI",
+ .interp_path = "/nonexistent",
};