From feh@fehcom.de  Mon Nov 11 05:41:02 2002
Return-Path: <feh@fehcom.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2F96A37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Nov 2002 05:41:02 -0800 (PST)
Received: from mail.fehcom.de (dial-195-14-251-208.netcologne.de [195.14.251.208])
	by mx1.FreeBSD.org (Postfix) with SMTP id 9911C43E3B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Nov 2002 05:40:59 -0800 (PST)
	(envelope-from feh@fehcom.de)
Received: (qmail 6733 invoked from network); 11 Nov 2002 13:40:50 -0000
Received: from orion.fehnet.de (192.168.192.1)
  by orion.fehnet.de with SMTP; 11 Nov 2002 13:40:50 -0000
Received: (qmail 6730 invoked from network); 11 Nov 2002 13:40:50 -0000
Received: from arkon.fehnet.de (HELO arkon.fehcom.de) (192.168.192.11)
  by orion.fehnet.de with SMTP; 11 Nov 2002 13:40:50 -0000
Message-Id: <4.3.1.1.20021111143639.00e7f7f0@orion.fehnet.de>
Date: Mon, 11 Nov 2002 14:36:40 +0000
From: Erwin Hoffmann <feh@fehcom.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Broken Linux ABI Emulation in FreeBSD 4.7#0 (7.1_1) - Important !!

>Number:         45209
>Category:       bin
>Synopsis:       Broken Linux ABI Emulation in FreeBSD 4.7#0 (7.1_1) - Important !!
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 11 05:50:01 PST 2002
>Closed-Date:    Tue Nov 12 05:15:05 PST 2002
>Last-Modified:  Tue Nov 12 05:15:05 PST 2002
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Hi,
 
 sorry for freely posting this PR without going thru the www.freebsd.org - your web server is broken:
 
 "Forbidden
 
 You don't have permission to access /send-pr.html on this server."
 
 Now the bug itself:
 
 System: 
 
 orion# uname -a
 FreeBSD orion.fehnet.de 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sat Nov  9 18:56:59 CET 2002     root@orion.fehnet.de:/usr/src/sys/compile/ORION  i386
 
 Here, a console log:
 
 orion# file fsavser.4.14.4062.bin 
 fsavser.4.14.4062.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
 orion# chmod +x fsavser.4.14.4062.bin 
 orion# ./fsavser.4.14.4062.bin 
 ELF binary type "0" not known.
 Abort
 orion# brandelf -t Linux fsavser.4.14.4062.bin 
 orion# ./fsavser.4.14.4062.bin
 ELF binary type "3" not known.
 Abort
 
 What happened? 
 I tried to install FSecure's AV tool on my new system (4.3 -> 4.7). The binary is working under FreeBSD 4.3, if its brandelf'ed for Linux.
 
 The new Linux emulation 7.1.1 does not recognize the binary to be Linux anymore.
 
 Workaround:
 Removed the Linux compatibilty 7.1_1. and installed those from 4.6 (6.1_1). 
 
 orion# pkg_info | grep linux
 linux_base-6.1_1    The base set of packages needed in Linux mode
 
 
  From my point of view, this is a major bug in 7.1_1.
 
 regards.
 --eh. 
 +-----------------------------------------------------------------------+
 |  fff        hh         http://www.fehcom.de        Dr. Erwin Hoffmann |
 | ff          hh                                                        |
 | ff    eee   hhhh      ccc   ooo    mm mm  mm       Wiener Weg 8       |
 | fff  ee ee  hh  hh   cc   oo   oo  mmm  mm  mm     50858 Koeln        |
 | ff  ee eee  hh  hh  cc   oo     oo mm   mm  mm                        |
 | ff  eee     hh  hh   cc   oo   oo  mm   mm  mm     Tel 0221 484 4923  |
 | ff   eeee   hh  hh    ccc   ooo    mm   mm  mm     Fax 0221 484 4924  |
 +-----------------------------------------------------------------------+
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->bugs 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Nov 12 02:03:39 PST 2002 
Responsible-Changed-Why:  
Re-file. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45209 
State-Changed-From-To: open->feedback 
State-Changed-By: ru 
State-Changed-When: Tue Nov 12 02:05:52 PST 2002 
State-Changed-Why:  
Was the linux.ko loaded or compiled statically into the kernel? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45209 
State-Changed-From-To: feedback->closed 
State-Changed-By: ru 
State-Changed-When: Tue Nov 12 05:13:48 PST 2002 
State-Changed-Why:  
Originator reports that he was missing the enable_linux="YES" 
line in /etc/rc.conf. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45209 
>Unformatted:
