Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 13:18:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 211837] POLA violation : SVR4(32bit binaries)  does not operate.
Message-ID:  <bug-211837-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211837

            Bug ID: 211837
           Summary: POLA violation : SVR4(32bit binaries)  does not
                    operate.
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: kenji@kens.fm
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org

In 10.2-RELEASE_amd64(BASE+KERNEL+LIB32+compat4x-i386) the environment
The binaries name=3D"old_program" was operating normally.

# brandelf ./old_program
File './old_program' is of brand 'SVR4' (0)

It is an error in the 10.3-RELEASE after freebsd-update.

# ./old_program
ELF interpreter /usr/libexec/ld-elf.so.1 not found, error 8
Abort

As a result of verifying the update of STABLE/10 to 10.3R from 10.2R
https://svnweb.freebsd.org/base/stable/10/sys/kern/imgact_elf.c?r1=3D293318=
&r2=3D293449
That can be repaired by removing r293499 was found .


cd /usr/src/
patch -p2 -R -i  r293499.diff
make buildkernel
make installkernel
reboot


######### r293449.diff ########################################
--- stable/10/sys/kern/imgact_elf.c     2016/01/07 15:37:17     293318
+++ stable/10/sys/kern/imgact_elf.c     2016/01/09 00:34:48     293449
@@ -986,7 +986,9 @@
                        if (error =3D=3D 0)
                                have_interp =3D TRUE;
                }
-               if (!have_interp && newinterp !=3D NULL) {
+               if (!have_interp && newinterp !=3D NULL &&
+                   (brand_info->interp_path =3D=3D NULL ||
+                   strcmp(interp, brand_info->interp_path) =3D=3D 0)) {
                        error =3D __elfN(load_file)(imgp->proc, newinterp, =
&addr,
                            &imgp->entry_addr, sv->sv_pagesize);
                        if (error =3D=3D 0)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211837-8>