linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Christian Borntraeger <CBORNTRA@de.ibm.com>
Cc: linux-kernel@vger.kernel.org, Adrian Bunk <bunk@fs.tum.de>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>
Subject: Re: VM: Bad swap entry 0044cb00
Date: Tue, 28 Aug 2001 16:02:44 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0108281555500.990-100000@localhost.localdomain> (raw)
In-Reply-To: <OFB30CAF04.8B81270C-ONC1256AB6.004C780A@de.ibm.com>

On Tue, 28 Aug 2001, Christian Borntraeger wrote:
> 
> I am also interested in getting this patch as I face the same problem on an
> S/390, but with Kernel 2.4.7
> It is a SMP machine.
> I don´t know, if you can get informations about this issue from non-intel
> platforms, but we should try.

Please try the (untested) patch below, which I hope will identify the
failing function, giving the return address back to its caller - please
mail me the message(s), and your System.map entries immediately before
and immediately after the "from" address reported.  Patch is based on
2.4.7, but should apply okay (at different offsets) to anything since.

Thanks,
Hugh

--- 247/mm/swapfile.c	Wed Jul  4 19:50:38 2001
+++ 247tmp/mm/swapfile.c	Tue Aug 28 15:37:26 2001
@@ -191,12 +191,12 @@
 	printk("swap_free: offset exceeds max\n");
 	goto out;
 bad_free:
-	printk("VM: Bad swap entry %08lx\n", entry.val);
+	printk("swap_free from %p: Bad swap entry %08lx\n", __builtin_return_address(0), entry.val);
 	goto out;
 bad_count:
 	swap_device_unlock(p);
 	swap_list_unlock();
-	printk(KERN_ERR "VM: Bad count %hd current count %hd\n", count, p->swap_map[offset]);
+	printk(KERN_ERR "swap_free: Bad count %hd current count %hd\n", count, p->swap_map[offset]);
 	goto out;
 }
 
@@ -867,7 +867,7 @@
 	else {
 		static int overflow = 0;
 		if (overflow++ < 5)
-			printk("VM: swap entry overflow\n");
+			printk("swap_dup: swap entry overflow\n");
 		p->swap_map[offset] = SWAP_MAP_MAX;
 	}
 	swap_device_unlock(p);
@@ -876,13 +876,13 @@
 	return result;
 
 bad_file:
-	printk("Bad swap file entry %08lx\n", entry.val);
+	printk("swap_dup: Bad swap file entry %08lx\n", entry.val);
 	goto out;
 bad_offset:
-	printk("Bad swap offset entry %08lx\n", entry.val);
+	printk("swap_dup: Bad swap offset entry %08lx\n", entry.val);
 	goto out;
 bad_unused:
-	printk("Unused swap offset entry in swap_dup %08lx\n", entry.val);
+	printk("swap_dup from %p: Unused swap offset entry %08lx\n", __builtin_return_address(0), entry.val);
 	goto out;
 }
 
@@ -917,13 +917,13 @@
 	printk(KERN_ERR "swap_count: null entry!\n");
 	goto out;
 bad_file:
-	printk("Bad swap file entry %08lx\n", entry.val);
+	printk("swap_count: Bad swap file entry %08lx\n", entry.val);
 	goto out;
 bad_offset:
-	printk("Bad swap offset entry %08lx\n", entry.val);
+	printk("swap_count: Bad swap offset entry %08lx\n", entry.val);
 	goto out;
 bad_unused:
-	printk("Unused swap offset entry in swap_count %08lx\n", entry.val);
+	printk("swap_count from %p: Unused swap offset entry in swap_count %08lx\n", __builtin_return_address(0), entry.val);
 	goto out;
 }
 
@@ -938,7 +938,7 @@
 
 	type = SWP_TYPE(entry);
 	if (type >= nr_swapfiles) {
-		printk("Internal error: bad swap-device\n");
+		printk("rw_swap_page: Internal error: bad swap-device\n");
 		return;
 	}
 
@@ -949,7 +949,7 @@
 		return;
 	}
 	if (p->swap_map && !p->swap_map[*offset]) {
-		printk("VM: Bad swap entry %08lx\n", entry.val);
+		printk("rw_swap_page from %p: Bad swap entry %08lx\n", __builtin_return_address(0), entry.val);
 		return;
 	}
 	if (!(p->flags & SWP_USED)) {


  reply	other threads:[~2001-08-28 15:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-28 14:01 VM: Bad swap entry 0044cb00 Christian Borntraeger
2001-08-28 15:02 ` Hugh Dickins [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-08-29 15:20 Christian Borntraeger
2001-08-29 13:14 Christian Borntraeger
2001-08-29 10:47 Christian Borntraeger
2001-08-29 14:07 ` Hugh Dickins
2001-08-28 12:15 Christian Borntraeger
2001-08-28  8:25 Christian Borntraeger
2001-08-28  0:07 Adrian Bunk
2001-08-27 22:46 ` Marcelo Tosatti
2001-08-28  0:20   ` Adrian Bunk
2001-08-28  0:23   ` John Levon
2001-08-27 23:03     ` Marcelo Tosatti
2001-08-28  0:32     ` Alan Cox
2001-08-29 15:30     ` Adrian Bunk
2001-08-28  0:31 ` Alan Cox
2001-08-28 12:59 ` Hugh Dickins
2001-08-29 15:30   ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.21.0108281555500.990-100000@localhost.localdomain \
    --to=hugh@veritas.com \
    --cc=CBORNTRA@de.ibm.com \
    --cc=bunk@fs.tum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwidefsky@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).