[Bug 211837] POLA violation : SVR4(32bit binaries) does not operate.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 14 13:18:14 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211837

            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 at FreeBSD.org
          Reporter: kenji at kens.fm
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

In 10.2-RELEASE_amd64(BASE+KERNEL+LIB32+compat4x-i386) the environment
The binaries name="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=293318&r2=293449
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 == 0)
                                have_interp = TRUE;
                }
-               if (!have_interp && newinterp != NULL) {
+               if (!have_interp && newinterp != NULL &&
+                   (brand_info->interp_path == NULL ||
+                   strcmp(interp, brand_info->interp_path) == 0)) {
                        error = __elfN(load_file)(imgp->proc, newinterp, &addr,
                            &imgp->entry_addr, sv->sv_pagesize);
                        if (error == 0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list