[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#509613: SOLVED



First, for all users trying to apply the patch, the recipe for building the kernel given in the last post does not work. The following succeeded:

   * rm -Rf linux-2.6-2.6.26; apt-get source -t testing linux-2.6
   * cd linux-2.6-2.6.26/; fakeroot debian/rules debian/build
     debian/stamps
   * fakeroot make -f debian/rules.gen setup_amd64_openvz
   * I have my own patches at the top of the directory tree
     pushd debian/build/build_amd64_openvz_amd64/
     ln -s ../../../../patches/ .
     quilt push -a
     popd
   * fakeroot make -f debian/rules.gen binary-arch_amd64_openvz

And this is the patch in dpatch format, which solves the bug (essentially OpenVZ patch for Bug 1044)

---8<--------------------------------
Index: linux-2.6-2.6.26/net/core/dev.c
===================================================================
--- linux-2.6-2.6.26.orig/net/core/dev.c 2009-01-21 22:45:25.000000000 +0100
+++ linux-2.6-2.6.26/net/core/dev.c     2009-01-21 22:47:29.000000000 +0100
@@ -4239,8 +4239,11 @@
       }

       /* Fixup kobjects */
+       set_exec_env(src_ve);
       netdev_unregister_kobject(dev);
+       set_exec_env(dst_ve);
       err = netdev_register_kobject(dev);
+       set_exec_env(cur_ve);
       WARN_ON(err);

       /* Add the device back in the hashes */
---8<--------------------------------




Reply to: