rpms/kernel/devel linux-2.6.12-vm-singlebiterror.patch, NONE, 1.1 kernel-2.6.spec, 1.1308, 1.1309
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri May 13 20:02:26 UTC 2005
Author: davej
Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17283
Modified Files:
kernel-2.6.spec
Added Files:
linux-2.6.12-vm-singlebiterror.patch
Log Message:
Slab debug single-bit error improvement.
linux-2.6.12-vm-singlebiterror.patch:
slab.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
--- NEW FILE linux-2.6.12-vm-singlebiterror.patch ---
--- linux-2.6.11/mm/slab.c~ 2005-05-01 00:51:59.000000000 -0400
+++ linux-2.6.11/mm/slab.c 2005-05-01 01:19:38.000000000 -0400
@@ -1004,8 +1004,12 @@ static void poison_obj(kmem_cache_t *cac
static void dump_line(char *data, int offset, int limit)
{
int i;
+ char total;
+
printk(KERN_ERR "%03x:", offset);
for (i=0;i<limit;i++) {
+ if data[offset+i] != POISON_FREE;
+ total += data[offset+i]
if (check_tainted() == 0)
printk(" %02x", (unsigned char)data[offset+i]);
else {
@@ -1019,6 +1023,18 @@ static void dump_line(char *data, int of
}
}
printk("\n");
+ switch (total) {
+ case 0x36:
+ case 0x6a:
+ case 0x6f:
+ case 0x81:
+ case 0xac:
+ case 0xd3:
+ case 0xd5:
+ case 0xea:
+ printk (KERN_ERR "Single bit error detected. Possibly bad RAM. Run memtest86.\n");
+ return;
+ }
}
#endif
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.1308
retrieving revision 1.1309
diff -u -r1.1308 -r1.1309
--- kernel-2.6.spec 13 May 2005 19:56:30 -0000 1.1308
+++ kernel-2.6.spec 13 May 2005 20:02:23 -0000 1.1309
@@ -345,6 +345,7 @@
Patch2000: linux-2.6.11-vm-taint.patch
Patch2001: linux-2.6.9-vm-oomkiller-debugging.patch
+Patch2002: linux-2.6.12-vm-singlebiterror.patch
Patch2999: linux-2.6.3-printopen.patch
@@ -785,6 +786,8 @@
%patch2000 -p1
# Extra debugging on OOM Kill.
%patch2001 -p1
+# Spot single bit errors in slab corruption.
+%patch2002 -p1
#
@@ -1228,6 +1231,7 @@
- Bump maximum supported CPUs on x86-64 to 32.
- Tickle the NMI watchdog when we're doing serial writes.
- SCSI CAM geometry fix.
+- Slab debug single-bit error improvement.
* Thu May 12 2005 David Woodhouse <dwmw2 at redhat.com>
- Enable CONFIG_ISA on ppc32 to make the RS/6000 user happy.
More information about the fedora-cvs-commits
mailing list