From: Emiliano Gabrielli <Emiliano.Gabrielli@roma2.infn.it>
To: tlan@zet.no, linux-kernel@vger.kernel.org
Subject: Re: Kernel BUG at swap.c:62 [2.4.19 vanilla]
Date: Wed, 16 Oct 2002 16:38:45 +0200 [thread overview]
Message-ID: <200210161638.45032.gabrielli@roma2.infn.it> (raw)
In-Reply-To: <20021016150131.F26786@stine.vestdata.no>
On 15:01, mercoledì 16 ottobre 2002, Thomas Langås wrote:
> Reading Oops report from the terminal
> kernel BUG at swap.c:62!
> kernel BUG at swap.c:62!
> invalid operand: 0000
> CPU: 1
> EIP: 0010:[<c01329ca>] Not tainted
> EFLAGS: 00010202
> invalid operand: 0000
>
> This is a vanilla 2.4.19 kernel, and we've seen this bug on several
> machines, but we haven't been able to find out what triggers it. And I
> don't see a BUG-statement at swap.c line 62. So, anyone with an idea of
> what to do is welcome with suggestions :)
well, the BUG() is inplicit in add_page_to_inactive_list in linux.c:61, this
macro is defined in linux/swap.h:197.
Could this one is a patch ?!?:
@linux/swap.h
#define DEBUG_LRU_PAGE(page) \
do { \
- if (!PageLRU(page)) \
- BUG(); \
- if (PageActive(page)) \
- BUG(); \
+ BUG_ON(!PageLRU(page)) \
+ BUG_ON (PageActive(page)) \
} while (0)
@mm/swap.c
void lru_cache_add(struct page * page)
{
+ spin_lock(&pagemap_lru_lock);
if (!TestSetPageLRU(page)) {
- spin_lock(&pagemap_lru_lock);
add_page_to_inactive_list(page);
- spin_unlock(&pagemap_lru_lock);
}
+ spin_unlock(&pagemap_lru_lock);
}
best reguards
Emiliano 'AlberT' Gabrielli
next prev parent reply other threads:[~2002-10-16 14:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 13:01 Thomas Langås
2002-10-16 14:38 ` Emiliano Gabrielli [this message]
2002-10-16 14:42 ` Hugh Dickins
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=200210161638.45032.gabrielli@roma2.infn.it \
--to=emiliano.gabrielli@roma2.infn.it \
--cc=linux-kernel@vger.kernel.org \
--cc=tlan@zet.no \
/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
all inboxes | Powered by JetHome®