stray mappings left behind by xfs make xen kernels crash.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Gutsy |
Invalid
|
Undecided
|
Unassigned | ||
linux-source-2.6.22 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Gutsy |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: linux-source-2.6.22
When xen in combination with xfs is used, the problem described in http://
If you wish I can attach some of them textually, and more as images (I have an remote access card which allows to take images - quite often I could not directly access any consoles anymore).
After applying the patch out of this mail http://
As this bug causes random crashes, can lead to data corruption, is hard to diagnose and the fix is obviously correct I would suggest adding the patch at least to the xen custom flavour if not to the normal kernel for gutsy.
diff -urNd linux-source-
--- linux-source-
+++ linux-source-
@@ -0,0 +1,14 @@
+diff -urNd custom-
+--- custom-
++++ custom-
+@@ -184,6 +184,10 @@
+ {
+ a_list_t *aentry;
+
++#ifdef CONFIG_XEN
++ vunmap(addr);
++ return;
++#endif
+ aentry = kmalloc(
+ if (likely(aentry)) {
+ spin_lock(
Changed in linux-source-2.6.22: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → High |
status: | New → Triaged |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → High |
milestone: | none → gutsy-updates |
status: | New → Triaged |
Copy of my mail to kernel-team:
Show Details
Hi,
after reading through https:/ /wiki.ubuntu. com/StableRelea seUpdates I think
that bug 164904 is appropriate for gutsy.
Problem:
- XFS delays vunmap and leaves stale mappings. This is considered wrong even
in normal kernel. But as Xen uses those mappings memory corruption can occur
Why I think its appropriate for gutsy
- It causes, sometimes silent, data-corruption and crashes
- Hard to diagnose as the backtraces are quite random
- Obviously correct fix, as the fix is the fallback currently used in tight
memory conditions.
- Patch is applied upstream
Any other Information needed?
Greetings,
Andres