Re: Rebuild all network-related kernel modules on 8-current due to vnet allocator change

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Wed, 15 Jul 2009 09:59:26 +0100 (BST)
On Wed, 15 Jul 2009, Luiz Otavio O Souza wrote:

>> After update to r195705 my system panic every time i try to create a new 
>> vlan (but i can create a gif interface):
>> 
>> # ifconfig vlan0 create
>> panic: link_elf_load_file: unexpected progbits type
>> cpuid = 1
>> KDB: enter: panic
>> [thread pid 1023 tid 100136]
>> 
>> (hand transcribed - i've just an usb keyboard here)
>> 
>> My kernel don't have any VIMAGE options.
>> 
>> The system is working flawless before the upgrade.
>> 
>> If you need any/more information about this, just let me know.
>
> I've just commented out the panic() in link_elf_obj.c and now i'm able to 
> create vlans again.

This assertion may well be too conservative -- is there any chance you have a 
kernel built with the DTrace CTF support?  It may be using progbits, in which 
case removing the assertion is the right solution.  I'll test this hypothesis.

Robert N M Watson
Computer Laboratory
University of Cambridge

>
> # svn diff link_elf_obj.c
> Index: link_elf_obj.c
> ===================================================================
> --- link_elf_obj.c      (revision 195705)
> +++ link_elf_obj.c      (working copy)
> _at__at_ -793,9 +793,11 _at__at_
>                                       vnet_data_copy(ef->progtab[pb].addr,
>                                           shdr[i].sh_size);
> #endif
> +#if 0
>                               else
>                                       panic("link_elf_load_file: unexpected 
> "
>                                           "progbits type");
> +#endif
>                       } else
>                               bzero(ef->progtab[pb].addr, shdr[i].sh_size);
>
> Now i'll get some sleep (too much coffee for a day...) or i'll not be able to 
> look at screen tomorrow  =)
>
> Thanks and regards,
> Luiz 
>
Received on Wed Jul 15 2009 - 06:59:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC