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

Robert Watson rwatson at FreeBSD.org
Wed Jul 15 08:59:26 UTC 2009


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)
> @@ -793,9 +793,11 @@
>                                       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 
>


More information about the freebsd-current mailing list