2002-07-31 10:03:17

by Petr Vandrovec

[permalink] [raw]
Subject: BUG at rmap.c:212

Hello,
yesterday I told (in IDE thread) that BUG at rmap.c:212 is probably
already fixed by changeset 520. Unfortunately, it is not, I got it again
with BK tree. It happened again when 'ntpd' called exit() upon receiving
sigterm.

Stack trace:

page_remove_rmap
zap_pte_range
zap_pmd_range
unmap_page_range
exit_mmap
mmput
do_exit
sys_exit
syscall_call

If it is not known bug, I'll rebuild kernel with DEBUG_RMAP. Unfortunately
it looks like that machine must have uptime > 12hrs to trigger this. Probably
updatedb or some other task must be run to try to swap ntpd out?
Best regards,
Petr Vandrovec
[email protected]


2002-07-31 12:46:37

by Rik van Riel

[permalink] [raw]
Subject: Re: BUG at rmap.c:212

On Wed, 31 Jul 2002, Petr Vandrovec wrote:

> yesterday I told (in IDE thread) that BUG at rmap.c:212 is probably
> already fixed by changeset 520. Unfortunately, it is not, I got it again
> with BK tree. It happened again when 'ntpd' called exit() upon receiving
> sigterm.

Line 212 is 'pte_chain_unlock(page);' right ?

What configuration are you running ? SMP ? PREEMPT ? What compiler ?

> Stack trace:
>
> page_remove_rmap
> zap_pte_range
> zap_pmd_range
> unmap_page_range
> exit_mmap
> mmput
> do_exit
> sys_exit
> syscall_call
>
> If it is not known bug, I'll rebuild kernel with DEBUG_RMAP.
> Unfortunately it looks like that machine must have uptime > 12hrs to
> trigger this. Probably updatedb or some other task must be run to try to
> swap ntpd out?

It is not a known bug. In fact I've never seen this one before.

kind regards,

Rik
--
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

2002-07-31 13:00:34

by Petr Vandrovec

[permalink] [raw]
Subject: Re: BUG at rmap.c:212

On 31 Jul 02 at 9:49, Rik van Riel wrote:
> On Wed, 31 Jul 2002, Petr Vandrovec wrote:
>
> > yesterday I told (in IDE thread) that BUG at rmap.c:212 is probably
> > already fixed by changeset 520. Unfortunately, it is not, I got it again
> > with BK tree. It happened again when 'ntpd' called exit() upon receiving
> > sigterm.
>
> Line 212 is 'pte_chain_unlock(page);' right ?
>
> What configuration are you running ? SMP ? PREEMPT ? What compiler ?

Nope. On my system (2.5.29-changeset548) it is a BUG() call which was
added by akpm in rmap.c revision 1.5, in his 'Add BUG() on a can't-happen
code path in page_remove_rmap()'. It just added #else BUG() branch
to #ifdef DEBUG_RMAP conditional.

Kernel is SMP, non-preempt, running on UP P4. Compiler is 2.95.4 from
Debian sid.

> > Stack trace:
> >
> > page_remove_rmap
> > zap_pte_range
> > zap_pmd_range
> > unmap_page_range
> > exit_mmap
> > mmput
> > do_exit
> > sys_exit
> > syscall_call
> >
> > If it is not known bug, I'll rebuild kernel with DEBUG_RMAP.
> > Unfortunately it looks like that machine must have uptime > 12hrs to
> > trigger this. Probably updatedb or some other task must be run to try to
> > swap ntpd out?
>
> It is not a known bug. In fact I've never seen this one before.

Probably because of your code did not do anything special when
'Not found. This should NEVER happen!' code path triggers. Code in
bitkeeper since 27th July complains. I'm now running with DEBUG_RMAP
set, so I'll see next time.
Petr Vandrovec
[email protected]

2002-07-31 13:08:17

by Rik van Riel

[permalink] [raw]
Subject: Re: BUG at rmap.c:212

On Wed, 31 Jul 2002, Petr Vandrovec wrote:

> > Line 212 is 'pte_chain_unlock(page);' right ?
>
> Nope. On my system (2.5.29-changeset548) it is a BUG() call which was
> added by akpm in rmap.c revision 1.5, in his 'Add BUG() on a can't-happen
> code path in page_remove_rmap()'. It just added #else BUG() branch
> to #ifdef DEBUG_RMAP conditional.

> Probably because of your code did not do anything special when
> 'Not found. This should NEVER happen!' code path triggers.

It used to, until I found out that that regularly blew up
for people mmap()ing devices and I had to remove that code
again ;)

The reason for that problem is that a device driver would
allocate memory, set PG_reserved on it and then let user
programs mmap() it.

These reserved pages do not get a pte chain because the
memory isn't swappable and if the page stays reserved
page_remove_rmap won't even try searching for the pte
chain.

However, some drivers (nvidia) clear PG_reserved without
first having the programs exit, so page_remove_rmap will
end up searching for the pte chain, which of course
doesn't exist...

Of course, ntpd is probably running into a different problem,
but the printk's enabled with DEBUG_RMAP should give us some
hints.

regards,

Rik
--
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

2002-07-31 13:57:19

by Petr Vandrovec

[permalink] [raw]
Subject: Re: BUG at rmap.c:212

On 31 Jul 02 at 10:11, Rik van Riel wrote:
> On Wed, 31 Jul 2002, Petr Vandrovec wrote:
>
> > > Line 212 is 'pte_chain_unlock(page);' right ?
> >
> > Nope. On my system (2.5.29-changeset548) it is a BUG() call which was
> > added by akpm in rmap.c revision 1.5, in his 'Add BUG() on a can't-happen
> > code path in page_remove_rmap()'. It just added #else BUG() branch
> > to #ifdef DEBUG_RMAP conditional.
>
> > Probably because of your code did not do anything special when
> > 'Not found. This should NEVER happen!' code path triggers.
> Of course, ntpd is probably running into a different problem,
> but the printk's enabled with DEBUG_RMAP should give us some
> hints.

No nvidia here. Boot, start X, quit X, run updatedb, reboot...
cat /proc/`pidof ntpd`/maps says that it has mmaped only ntpd and
few libraries from /lib. I hope that printed values will have
some value for you. And btw, ntpd uses some mlock*() call, it has status
'SL' in process list. Do you know how to find what memory it has locked?

Jul 31 15:38:13 vana sshd[1303]: Received signal 15; terminating.
Jul 31 15:38:13 vana ntpd[1326]: ntpd exiting on signal 15
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893098 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89309c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8930a0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8930a4 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana wwwoffled[1311]: Exit signalled.
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893100 not present.
Jul 31 15:38:13 vana wwwoffled[1311]: Exiting.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893228 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89322c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893230 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893234 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde210 dadfe210
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893238 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89323c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893240 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893260 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dec759c4
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8932d4 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893310 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: db27f1e8 dbbde2ec dadfe2ec
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893314 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: db27f1ec dbbde2f0 dadfe2f0
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89331c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: db27f1f4
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893380 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893438 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89343c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde418 dadfe418
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893448 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde424 dadfe424
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8934b0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8934c0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8934d0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde4ac dadfe4ac
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8934d4 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde4b0 dadfe4b0 dfc5c3ac cddaf3ac d418c3ac ca9353ac c559a3ac
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8934ec not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde4c8 dadfe4c8
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893520 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893528 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89353c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893550 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893554 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893558 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893560 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893568 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89356c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893570 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893574 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89358c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde568 dadfe568
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893590 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dfc5c468
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893594 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dfc5c46c
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893604 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde5e0 dadfe5e0 dfc5c4dc
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893630 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde098 dadfe098
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893634 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde09c dadfe09c
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893638 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0a0 dadfe0a0
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89363c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0a4 dadfe0a4
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893640 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0a8 dadfe0a8
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893644 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0ac dadfe0ac
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893648 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0b0 dadfe0b0
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89364c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0b4 dadfe0b4
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893650 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0b8 dadfe0b8
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893654 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0bc dadfe0bc
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc893658 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0c0 dadfe0c0
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc89365c not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde0c4 dadfe0c4
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936b0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936c8 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936cc not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936e0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936e8 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found: dbbde150 dadfe150
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936f0 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:13 vana kernel: page_remove_rmap: pte_chain dc8936f4 not present.
Jul 31 15:38:13 vana kernel: page_remove_rmap: only found:
Jul 31 15:38:13 vana kernel: page_remove_rmap: driver cleared PG_reserved ?
Jul 31 15:38:15 vana kernel: Kernel logging (proc) stopped.
Jul 31 15:38:15 vana kernel: Kernel log daemon terminating.

Petr Vandrovec
[email protected]

2002-07-31 16:50:54

by Andrew Morton

[permalink] [raw]
Subject: Re: BUG at rmap.c:212

Petr Vandrovec wrote:
>
> ...
> > > Probably because of your code did not do anything special when
> > > 'Not found. This should NEVER happen!' code path triggers.
> > Of course, ntpd is probably running into a different problem,
> > but the printk's enabled with DEBUG_RMAP should give us some
> > hints.
>
> No nvidia here. Boot, start X, quit X, run updatedb, reboot...
> cat /proc/`pidof ntpd`/maps says that it has mmaped only ntpd and
> few libraries from /lib. I hope that printed values will have
> some value for you. And btw, ntpd uses some mlock*() call, it has status
> 'SL' in process list. Do you know how to find what memory it has locked?

It's good that this it nice and reproducible, thanks.

Linus, can we please not have that BUG() in 2.5.30?


--- 2.5.29/mm/rmap.c~no-bug Wed Jul 31 09:58:47 2002
+++ 2.5.29-akpm/mm/rmap.c Wed Jul 31 09:58:53 2002
@@ -205,8 +205,6 @@ void page_remove_rmap(struct page * page
}
printk("\n");
printk(KERN_ERR "page_remove_rmap: driver cleared PG_reserved ?\n");
-#else
- BUG();
#endif

out:

.