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

From: Luiz Otavio O Souza <lists.br_at_gmail.com>
Date: Wed, 15 Jul 2009 05:02:19 -0300
> >
>> Just a quick heads up:
>>
>> The attached change, which just entered 8-current, modifies kernel 
>> programming and binary interfaces for many network stack 
>> components/modules.  You will want to make sure all kernel modules are 
>> rebuilt.
>>
>> For those willing to take a risk, here's a list of the kernel modules 
>> (and of course the kernel) that I know are definitely affected and will 
>> want to be rebuilt:
>>
>> bridgestp.ko if_vlan.ko kernel ng_atm.ko sppp.ko
>> if_bridge.ko ip_mroute.ko linprocfs.ko ng_eiface.ko svr4.ko
>> if_ef.ko ipdivert.ko linux.ko ng_ether.ko wlan.ko
>> if_faith.ko ipfw.ko netgraph.ko ng_gif.ko
>> if_gif.ko ipfw_nat.ko nfscl.ko ng_iface.ko
>> if_gre.ko ipl.ko nfsclient.ko pf.ko
>> if_stf.ko iw_cxgb.ko nfsd.ko rdma_cma.ko
>>
>> (For those interested: I grepped for vnet_entry in my local kernel module 
>> collection -- these are kernel modules that directly reference 
>> virtualized global network stack variables with a VIMAGE configuration).
>>
>> Robert N M Watson
>> Computer Laboratory
>> University of Cambridge
>>
>
> Robert,
>
> 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.
>
> Regards,
> Luiz

Robert,

I've just commented out the panic() in link_elf_obj.c and now i'm able to 
create vlans again.

# 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:02:11 UTC

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