From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: swap_free: swap-space map bad (entry 00000100)
Date: Fri, 27 Jul 2001 19:13:38 +0000 (UTC) [thread overview]
Message-ID: <9jseh2$lfg$1@penguin.transmeta.com> (raw)
In-Reply-To: <20010727111313.1da63aca.samuel@dupas.com>
In article <20010727111313.1da63aca.samuel@dupas.com>,
Samuel Dupas <samuel@dupas.com> wrote:
>
>Is it a kernel problem, a hardware problem ?
Could be either. However, there thing you quote looks like a traditional
one-bit error.
>Jul 25 02:05:12 euro kernel: Unable to handle kernel NULL pointer
>dereference at virtual address 00000114
>Jul 25 02:05:12 euro kernel: current->tss.cr3 = 0f0be000, %%cr3 = 0f0be000
>
>Jul 25 02:05:12 euro kernel: *pde = 00000000
>Jul 25 02:05:12 euro kernel: Oops: 0000
>Jul 25 02:05:12 euro kernel: CPU: 0
>Jul 25 02:05:12 euro kernel: EIP: 0010:[try_to_free_buffers+18/136]
>Jul 25 02:05:12 euro kernel: EFLAGS: 00010206
>Jul 25 02:05:12 euro kernel: eax: 00000100 ebx: c055e360 ecx: 0001207c edx: 00040000
>Jul 25 02:05:12 euro kernel: esi: 00000100 edi: 00000100 ebp: c055e360 esp: da98be90
%esi is supposed to contain a kernel pointer to the per-page buffer list
at this point.
However, it contains the value 0x00000100, which is not a valid kernel
pointer, so dereferencing it (with an offset of 20, which is why you see
the virtual address 0x00000114) will cause an oops.
Now, I suspect that the value it _should_ contain is just zero. We
probably have the case that "page->buffers" should have been NULL (no
buffers allocated at all), but a one-bit error has turned it into
0x00000100, and then the page freeing logic will try to free the
"buffers" associated with the page.
And obviously, since "page->buffers" was bogus, when it tries to do
if (buffer_busy(tmp))
it will oops.
Now, that one-bit error could easily have come from a software source
too, of course. It might not be your RAM. But it's not as if you're
running an experimental kernel or anything like that..
And if you've also seen a bad page table entry 00000100, it _really_
starts to sound like one bit of your memory is stuck on. Run a memory
tester.
NOTE: hard errors are quite uncommon. It's more likely that you have a
bit (or a row) that has soft-errors: it doesn't necessarily show up
every time, but shows up under heavy memory activity when the RAM chip
or the machine starts heating up.. The fact that this happens when
swapping may be indicative not so much of swapping problems per se, but
just the fact that that's when your machine is under the most load.
Linus
next prev parent reply other threads:[~2001-07-27 20:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-27 10:13 swap_free: swap-space map bad (entry 00000100) Samuel Dupas
2001-07-27 15:24 ` Unable to handle kernel paging request at virtual address 3b617b05 ( was Re: swap_free: swap-space map bad (entry 00000100) ) Samuel Dupas
2001-07-27 15:29 ` Larry McVoy
2001-07-27 15:35 ` Samuel Dupas
2001-07-27 15:40 ` Unable to handle kernel paging request at virtual address 3b617b05 (was " Sunny Zhou
2001-07-27 15:55 ` Samuel Dupas
[not found] ` <018e01c116c1$aba28aa0$bef7020a@mammon>
2001-07-27 17:37 ` swap_free: swap-space map bad (entry 00000100) Samuel Dupas
2001-07-27 19:17 ` Rik van Riel
2001-07-27 20:26 ` Jeremy Linton
2001-07-27 19:13 ` Linus Torvalds [this message]
2001-07-28 1:53 ` Thanks Josh Wyatt
2001-07-28 2:55 ` Thanks John Polyakov
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='9jseh2$lfg$1@penguin.transmeta.com' \
--to=torvalds@transmeta.com \
--cc=linux-kernel@vger.kernel.org \
/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