]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- rel 3; previous fix was buggy (oops at vserver guest stop) auto/th/kernel-4.1-4.1.16-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 30 Jan 2016 08:52:14 +0000 (09:52 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 30 Jan 2016 08:52:14 +0000 (09:52 +0100)
kernel-vserver-fixes.patch
kernel.spec

index f18f26d80438aac883c507f52f6ffcc326280428..d4f117307f8080b513e9bc0f5eb2c2fd60a20354 100644 (file)
                        reparent_leader(father, p, dead);
        }
        list_splice_tail_init(&father->children, &reaper->children);
+diff -Nurp linux-4.1.3-vs2.3.8.2.fakeinit04/kernel/exit.c linux-4.1.3-vs2.3.8.2.fakeinit05/kernel/exit.c
+--- linux-4.1.3-vs2.3.8.2.fakeinit04/kernel/exit.c     2016-01-29 23:56:25.077386945 +0100
++++ linux-4.1.3-vs2.3.8.2.fakeinit05/kernel/exit.c     2016-01-30 00:12:30.693073246 +0100
+@@ -579,8 +579,10 @@ static void forget_original_parent(struc
+               return;
+       reaper = find_new_reaper(father, reaper);
+-      list_for_each_entry(p, &father->children, sibling) {
+-              struct task_struct *this_reaper = reaper;
++      for (p = list_first_entry(&father->children, struct task_struct, sibling);
++           &p->sibling != &father->children;
++           ) {
++              struct task_struct *next, *this_reaper = reaper;
+               if (p == reaper)
+                       this_reaper = task_active_pid_ns(reaper)->child_reaper;
+               for_each_thread(p, t) {
+@@ -598,8 +600,11 @@ static void forget_original_parent(struc
+                */
+               if (!same_thread_group(this_reaper, father))
+                       reparent_leader(father, p, dead);
++              next = list_next_entry(p, sibling);
++              list_add(&p->sibling, &this_reaper->children);
++              p = next;
+       }
+-      list_splice_tail_init(&father->children, &reaper->children);
++      INIT_LIST_HEAD(&father->children);
+ }
+ /*
index 3bc7226b28ebefab47f0e20251c32c2be57e542a..ae0a6801998c71ba96fff29a2c4d32ed4db5bd0e 100644 (file)
@@ -69,7 +69,7 @@
 %define                have_pcmcia     0
 %endif
 
-%define                rel             2
+%define                rel             3
 %define                basever         4.1
 %define                postver         .16
 
This page took 0.067493 seconds and 4 git commands to generate.