From nobody@FreeBSD.org  Sun Oct 14 16:43:08 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3643116A421
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Oct 2007 16:43:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 24ADA13C448
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Oct 2007 16:43:08 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9EGh2kM011546
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Oct 2007 16:43:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9EGh2CG011545;
	Sun, 14 Oct 2007 16:43:02 GMT
	(envelope-from nobody)
Message-Id: <200710141643.l9EGh2CG011545@www.freebsd.org>
Date: Sun, 14 Oct 2007 16:43:02 GMT
From: Sean McNeil <sean@mcneil.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kldload Unsupported file type on STABLE amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117186
>Category:       amd64
>Synopsis:       [modules] kldload Unsupported file type on STABLE amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 14 16:50:00 UTC 2007
>Closed-Date:    Sun Dec 05 13:50:50 UTC 2010
>Last-Modified:  Sun Mar  6 22:20:05 UTC 2011
>Originator:     Sean McNeil
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD triton.mcneil.com 6.2-STABLE FreeBSD 6.2-STABLE #208: Fri Oct 12 18:55:33 PDT 2007     root@triton.mcneil.com:/usr/obj/usr/src/sys/TRITON  amd64

>Description:
Loading kernel modules now causes the following output even though the
module appears to be loaded:

kldload: Unsupported file type

>How-To-Repeat:
Install a kernel module with kldload...

triton# kldunload umass
triton# kldload umass

The message is printed to the console and /var/log/messages

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: matteo 
State-Changed-When: Sab 17 Mag 2008 23:51:43 UTC 
State-Changed-Why:  
Sean, are you still able to reproduce this ? did you try newer FreeBSD releases? 
Modules loading/unloading works just fine on my amd64. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117186 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Thu Aug 28 15:58:19 UTC 2008 
State-Changed-Why:  
Feedback timeout (3 months).  To submitter: if you are still seeing 
this issue, we can reopen the PR 


Responsible-Changed-From-To: freebsd-amd64->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Thu Aug 28 15:58:19 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117186 
State-Changed-From-To: closed->open 
State-Changed-By: gavin 
State-Changed-When: Fri Aug 29 15:04:39 UTC 2008 
State-Changed-Why:  
Reopen. Quoting jhb@ on freebsd-amd64: 
http://docs.FreeBSD.org/cgi/mid.cgi?200808291038.56052.jhb 

This is still a bug.  It's a harmless warning, but it is caused by link_elf.c  
not handling a file and link_elf_obj.c then handling it ok.  Probably what  
needs to happen is that this specific error condition shouldn't output an  
error message, but should return a unique error value, and kern_linker.c  
should only output an error if all of the linker_if handlers fail with this  
error value and then output its own error message. 



Responsible-Changed-From-To: gavin->freebsd-amd64 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Fri Aug 29 15:04:39 UTC 2008 
Responsible-Changed-Why:  
Give back to maintainers 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117186 
State-Changed-From-To: open->analyzed 
State-Changed-By: linimon 
State-Changed-When: Fri Aug 29 16:42:18 UTC 2008 
State-Changed-Why:  
I think 'analyzed' might be a better state for this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117186 

From: Nicola Tiling <nti@w4w.net>
To: bug-followup@FreeBSD.org,
 sean@mcneil.com
Cc:  
Subject: Re: amd64/117186: [modules] kldload Unsupported file type on STABLE amd64
Date: Sun, 28 Dec 2008 18:39:26 +0100

 Hi
 
 Bug still exists on 6.4-STABLE FreeBSD amd64 build Sat Dec 27 23:51 2008
 
 from dmesg:
 
 kldload: /boot/kernel/fdescfs.ko: Unsupported file type
 kldload: /boot/kernel/pflog.ko: Unsupported file type
 kldload: /boot/kernel/pf.ko: Unsupported file type
 kldload: /boot/kernel/nullfs.ko: Unsupported file type
 
 Nicola
State-Changed-From-To: analyzed->closed 
State-Changed-By: avg 
State-Changed-When: Sun Dec 5 13:50:24 UTC 2010 
State-Changed-Why:  
This has been fixed for supported branches a while ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117186 

From: "Agarwal, Mayank" <Mayank.Agarwal@netapp.com>
To: <bug-followup@FreeBSD.org>, <sean@mcneil.com>
Cc:  
Subject: Re: amd64/117186: [modules] kldload Unsupported file type on STABLE amd64
Date: Wed, 2 Mar 2011 15:54:00 +0530

 This is a multi-part message in MIME format.
 
 ------_=_NextPart_001_01CBD8C3.F2859328
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 Hi,=20
 
  =20
 
 I am running a FreeBSD 7.2 amd64 machine. While I am trying to load a=20
 kernel module  I got following error:=20
 
  =20
 
 kldload: ./modules/base_kmod.ko: Unsupported file type=20
 
 After this error kernel panicked with following message:=20
 
  =20
 
 Fatal trap 12: page fault while in kernel mode=20
 
 cpuid =3D 0; apic id =3D 00=20
 
 fault virtual address   =3D 0xfffffffe80556000=20
 
 fault code              =3D supervisor read instruction, page not =
 present=20
 
 instruction pointer     =3D 0x8:0xfffffffe80556000=20
 
 stack pointer           =3D 0x10:0xfffffffe8a88c710=20
 
 frame pointer           =3D 0x10:0xfffffffe8a88c760=20
 
 code segment            =3D base 0x0, limit 0xfffff, type 0x1b=20
 
                         =3D DPL 0, pres 1, long 1, def32 0, gran 1=20
 
 processor eflags        =3D interrupt enabled, resume, IOPL =3D 0=20
 
 current process         =3D 1009 (kldload)=20
 
  =20
 
 Machine information's are as follows:=20
 
 FreeBSD 7.2-RELEASE #0: Wed Feb 23 23:34:05 IST 2011     amd64=20
 
  =20
 
  =20
 
 -Mayank
 
 ------_=_NextPart_001_01CBD8C3.F2859328--

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/117186: [modules] kldload Unsupported file type on
 STABLE amd64
Date: Wed, 2 Mar 2011 18:28:31 -0600

 ----- Forwarded message from John Baldwin <jhb@freebsd.org> -----
 
 Date: Wed, 2 Mar 2011 07:41:41 -0500
 From: John Baldwin <jhb@freebsd.org>
 To: freebsd-amd64@freebsd.org,
 	"Agarwal, Mayank" <Mayank.Agarwal@netapp.com>
 Subject: Re: amd64/117186: [modules] kldload Unsupported file type on STABLE
 	amd64
 
 There should have been another message on the console before the panic that 
 would explain why you got the error from kldload.
 
 -- 
 John Baldwin
 
 ----- End forwarded message -----

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/117186: [modules] kldload Unsupported file type on
 STABLE amd64
Date: Wed, 2 Mar 2011 18:29:32 -0600

 ----- Forwarded message from Etienne Robillard <erob@gthcfoundation.org> -----
 
 Date: Wed, 02 Mar 2011 07:42:49 -0500
 From: Etienne Robillard <erob@gthcfoundation.org>
 To: "Agarwal, Mayank" <Mayank.Agarwal@netapp.com>,
 	freebsd-stable@freebsd.org
 Subject: Re: amd64/117186: [modules] kldload Unsupported file type on STABLE
 	amd64
 
 Hi Agarwal,
 
 seems like your kernel is missing support to load this kind
 of binaries. Is that a native ELF module or was it compiled with
 on another machine?
 
 also please send relevant tracebacks messages in plain as
 opposed to html formatted messages!
 
 Thanks,
 
 -- 
 Etienne Robillard
 
 Company: Green Tea Hackers Club
 Occupation: Software Developer (and CEO)
 E-mail:     erob@gthcfoundation.org
 Work phone: 450-936-2123
 Website (Company):  https://gthc.org/
 Website (Blog):     https://gthc.org/blog/
 PGP public key fingerprint:    F2A9 32EA 8E7C 460F 1728  A1A7 649C 7F17 A086 DDEC
 
 During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell 
 
 If a free society cannot help the many who are poor, it cannot save the few who are rich. -- John F. Kennedy
 
 ----- End forwarded message -----

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/117186: [modules] kldload Unsupported file type on
 STABLE amd64
Date: Sun, 6 Mar 2011 16:10:10 -0600

 ----- Forwarded message from "Agarwal, Mayank" <Mayank.Agarwal@netapp.com> -----
 
 Date: Thu, 3 Mar 2011 11:19:56 +0530
 From: "Agarwal, Mayank" <Mayank.Agarwal@netapp.com>
 To: Mark Linimon <linimon@lonesome.com>
 Subject: RE: amd64/117186: [modules] kldload Unsupported file type on STABLE amd64
 
 It is compiled on another machine:
 Output of file command on module is:
 
 bash-3.2# file base_kmod.ko
 base_kmod.ko: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD),
 not stripped
 
 -Mayank	
 
 ----- End forwarded message -----
>Unformatted:
