However as soon as it comes to swapping of shm the kernel oopses:
Thanks Wolfgang for the extensive debugging on this one.
The bug is my fault, please try this fix.
--- ipc/shm.c.~1~ Wed Apr 30 23:34:27 1997
+++ ipc/shm.c Mon May 5 04:05:56 1997
@@ -806,7 +806,7 @@
flush_tlb_page(shmd, tmp);
/* continue looping through circular list */
} while (0);
- if ((shmd = shmd->vm_next_share) == shp->attaches)
+ if ((shmd = shmd->vm_next_share) == NULL)
break;
}