Re: [mpls-linux-devel] Hi, the mpls command doesn't work after patch the kernel and install the ip
Status: Beta
Brought to you by:
jleu
From: Renato W. <ren...@gm...> - 2011-08-10 17:53:47
|
This is a very old bug that comes up when you enable the stack protector (CONFIG_CC_STACKPROTECTOR) on your kernel. Ingo, it seems like you found the problem, would you mind sending a patch? Peng, why are you using such old packages when there are very fresh ones on Sourceforge? http://sourceforge.net/projects/mpls-linux/files/mpls-linux/debian/lenny/ All the packages were successfully tested on Debian Lenny, but they should also work on Debian Squueze and Ubuntu. If you prefer you can apply these patches directly in the upstream tools: http://sourceforge.net/projects/mpls-linux/files/mpls-linux/Patches/ The development repositories can be found here: http://mpls-linux.git.sourceforge.net/git/gitweb-index.cgi Best Regards, Renato. 2011/8/10 Sébastien Cramatte <scr...@ni...> > > Hi, > > As I explain before to Peng, we have release debian ready package .... > Please take a look to http://debian.nixus.es > > I don't understand well what you still try to use alien and rpm ... > > If you do an apt-get source you will be able to download source package and rebuild them for your distrib > using dpkg-buildpackage command ... > > We have prepared a 2.6.32 mpls ready kernel + dkms package for extra modules .... > > Take a look to our repository ! > > > > > 2011/8/10 Peng <jia...@gm...> >> >> Hi, Igor, >> Really appreciate your reply. I'm wondering why nobody raised this issue before and use those packages without any issue. >> I upgraded my ubuntu to 11.04 also yesterday, will try to patch it with your patches. >> >> BR >> Peng >> >> 2011/8/10 Igor Maravić <ig...@et...> >>> >>> Dear Peng, >>> problem is in include/linux/ip_fib.h. In struct fib_config, fc_shim should be defined as pointer to struct rtshim. Because it is not defined as pointer, in net/fib_frontend.c in function rtm_to_fib_config stack is overflowing, when you issue the command >>> ip route add 192.168.1.0/24 via 10.0.0.3 mpls 0x2. >>> I wrote patches for Linux kernel 2.6.38.8, but I didn't test them thoroughly. Maybe you could give them a try. Any feedback would be appreciated. >>> I have installed them on Ubuntu 11.04. >>> BR >>> Igor Maravić >>> 2011/8/9 Peng <jia...@gm...> >>>> >>>> Hi, >>>> >>>> I'm trying to using the mpls on my ubuntu box. I followed the instruction on >>>> >>>> http://ontwerpen1.khlim.be/~lrutten/cursussen/comm2/mpls-linux-docs/index.html >>>> >>>> but with the kernel version of 2.6.35 and linux-kernel-v2.6.35.13-mpls1.980.patch, >>>> >>>> iproute-2.6.27-2.fc10.mpls.1.963.i386.rpm >>>> >>>> ebtables-2.0.8-5.fc10.mpls.1.963.i386.rpm >>>> >>>> iptables-1.4.1.1-2.fc10.mpls.1.963.i386.rpm >>>> >>>> after the patch the kernel, and installed the aliened iproute iptable and ebtable. >>>> >>>> when I used the .deb aliened from corresponding .rpm packages >>>> >>>> root@peng-MacBookPro:~# mpls hnhlfe add key 0 instaructions push gen 1000 nexthop eth0 ipv4 10.0.0.3 >>>> NHLFE entry key 0x00000002 mtu 0 propagate_ttl >>>> (0 bytes, 0 pkts) >>>> >>>> ip route add 192.168.1.0/24 via 10.0.0.3 mpls 0x2 >>>> >>>> it crashes my laptop right away, the whole screen froze and I cannot do anything >>>> >>>> The the kernel and patch method I'm using: >>>> >>>> Linux peng-MacBookPro 2.6.35.13 #1 SMP Thu Aug 4 23:41:12 EDT 2011 i686 GNU/Linux >>>> >>>> root@peng-MacBookPro:/usr/src/ >>>> linux-2.6.35.13# patch -p1 < /usr/src/linux-2.6.35.13/linux-kernel-v2.6.35.13-mpls1.980.patch >>>> >>>> and the methods I installed the iproute iptable and ebtable are: >>>> >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# dpkg -i iproute_2.6.27-3_i386.deb >>>> dpkg: warning: downgrading iproute from 20110728-1 to 2.6.27-3. >>>> (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136388 files and directories currently installed.) >>>> Preparing to replace iproute 20110728-1 (using iproute_2.6.27-3_i386.deb) ... >>>> Unpacking replacement iproute ... >>>> Setting up iproute (2.6.27-3) ... >>>> Processing triggers for man-db ... >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# cd cp /bin/true /sbin/chkconifgfig >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# dpkg -i iptables_1.4.1.1-3_i386.deb >>>> dpkg: warning: downgrading iptables from 1.4.11.1-1 to 1.4.1.1-3. >>>> (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136339 files and directories currently installed.) >>>> Preparing to replace iptables 1.4.11.1-1 (using iptables_1.4.1.1-3_i386.deb) ... >>>> Unpacking replacement iptables ... >>>> dpkg: warning: unable to delete old directory '/usr/local/lib': Directory not empty >>>> dpkg: warning: unable to delete old directory '/usr/local/share': Directory not empty >>>> dpkg: warning: unable to delete old directory '/usr/local': Directory not empty >>>> Setting up iptables (1.4.1.1-3) ... >>>> Processing triggers for man-db ... >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# >>>> root@peng-MacBookPro:~/Desktop/Linuxbackup/Desktop/debian/MPLSopensource# dpkg -i ebtables_2.0.8-6_i386.deb >>>> dpkg: warning: downgrading ebtables from 2.0.9.2-2 to 2.0.8-6. >>>> (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136280 files and directories currently installed.) >>>> Preparing to replace ebtables 2.0.9.2-2 (using ebtables_2.0.8-6_i386.deb) ... >>>> Unpacking replacement ebtables ... >>>> Setting up ebtables (2.0.8-6) ... >>>> Processing triggers for man-db ... >>>> Processing triggers for ureadahead ... >>>> Processing triggers for libc-bin ... >>>> ldconfig deferred processing now taking place >>>> >>>> >>>> I'm wondering why I cannot use a simple function of this opensource project command, is there some command issue? >>>> maybe the command format introduced in the docs are outdated? >>>> or I didn't install the iproute/iptables package correctly? >>>> >>>> Has someone here successfully patched the kernel and installed the package on ubuntu? >>>> >>>> if ubuntu is not a good choice for this project's packages. >>>> >>>> What OS you guys usually use? >>>> >>>> Many thanks! >>>> >>>> BR >>>> Peng >>>> >>>> ------------------------------------------------------------------------------ >>>> uberSVN's rich system and user administration capabilities and model >>>> configuration take the hassle out of deploying and managing Subversion and >>>> the tools developers use with it. Learn more about uberSVN and get a free >>>> download at: http://p.sf.net/sfu/wandisco-dev2dev >>>> >>>> _______________________________________________ >>>> mpls-linux-devel mailing list >>>> mpl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> uberSVN's rich system and user administration capabilities and model >> configuration take the hassle out of deploying and managing Subversion and >> the tools developers use with it. Learn more about uberSVN and get a free >> download at: http://p.sf.net/sfu/wandisco-dev2dev >> >> _______________________________________________ >> mpls-linux-devel mailing list >> mpl...@li... >> https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel >> > > > > -- > Sébastien Cramatte > > > > Complejo Espinardo - Parque Científico > Crta. Madrid KM 388 > 30100 Espinardo (Murcia) - ESPAÑA > > T: +34 868 97 33 97 > F: +34 868 97 33 96 > M: +34 627 665 283 > E: scr...@ni... > W: www.nixus.es > -- > > [Atención] La información contenida en este e-mail es confidencial, privilegiada y está dirigida exclusivamente a su destinatario. Cualquier revisión, difusión, distribución o copiado de este mensaje sin autorización del propietario está prohibido. Si ha recibido este e-mail por error por favor bórrelo y envíe un mensaje al remitente. > > [Disclaimer] The information contained in this e-mail is privileged and confidential and is intended only for its addressee. Any review, dissemination, distribution or copying of this e-mail is prohibited. If you have received it in error please delete the original message and e-mail us. > > (!) El medio ambiente es responsabilidad de todos. > Imprime este mail si es absolutamente necesario. > > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > > _______________________________________________ > mpls-linux-devel mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-devel > -- Renato Westphal |