NetBSD Problem Report #38362

From yamt@mwd.biglobe.ne.jp  Fri Apr  4 04:00:59 2008
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1C28063B293
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Apr 2008 04:00:59 +0000 (UTC)
Message-Id: <20080404040057.4E2CD11704@yamt.dyndns.org>
Date: Fri,  4 Apr 2008 13:00:57 +0900 (JST)
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: pmap_growkernel should able to fail
X-Send-Pr-Version: 3.95

>Number:         38362
>Category:       kern
>Synopsis:       pmap_growkernel should able to fail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 04 04:05:00 +0000 2008
>Last-Modified:  Wed Jul 07 00:25:01 +0000 2021
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 4.99.58
>Organization:

>Environment:


Architecture: i386
Machine: i386
>Description:
	see the following panic.
	pmap_growkernel should not panic on usual memory shortage.

panic: pmap_get_physpage: out of memory
Stopped in pid 6351.1 (sh) at   netbsd:breakpoint+0x4:  popl    %ebp
db{6}> t
breakpoint(c0491c57,dff6b9c8,c48c7800,0,0) at netbsd:breakpoint+0x4
panic(c04907f8,380000,0,0,3) at netbsd:panic+0x1c0
pmap_growkernel(e0003000,e0000000,3000,dff6ba78,c050a120) at netbsd:pmap_growker
nel+0x2b0
uvm_map_prepare(c050a1a0,e0000000,3000,c050a120,ffffffff) at netbsd:uvm_map_prep
are+0x22b
uvm_map(c050a1a0,dff6bb1c,3000,c050a120,ffffffff) at netbsd:uvm_map+0x9d
uvm_km_alloc(c050a1a0,3000,0,1000002,d80401ec) at netbsd:uvm_km_alloc+0x78
uarea_poolpage_alloc(d5bc0d80,1,dff6bbec,c0344056,d80860bc) at netbsd:uarea_pool
page_alloc+0x3f
pool_grow(d5bc0df4,0,dff6bbcc,c02e0648,d5bc0df4) at netbsd:pool_grow+0x27
pool_get(d5bc0d80,1,dff6bc0c,dff6bc0c,dff6bc08) at netbsd:pool_get+0x2c
pool_cache_get_slow(0,1,1,0,3e8) at netbsd:pool_cache_get_slow+0x179
pool_cache_get_paddr(d5bc0d80,1,0,c02e6f65,3e8) at netbsd:pool_cache_get_paddr+0
xbb
uvm_uarea_alloc(dff6bca8,1,d9623ddc,90,0) at netbsd:uvm_uarea_alloc+0x22
fork1(dff40740,3,14,0,0) at netbsd:fork1+0x11e
sys___vfork14(dff40740,dff6bd00,dff6bd28,8063ec4,0) at netbsd:sys___vfork14+0x48

syscall(dff6bd48,b3,ab,1f,1f) at netbsd:syscall+0xa9
db{6}> sh uvm
Current UVM status:
  pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
  997716 VM pages: 773444 active, 173725 inactive, 1915 wired, 1 free
  pages  928246 anon, 19176 file, 1807 exec
  freemin=64, free-target=85, wired-max=332572
  faults=12048222, traps=12887315, intrs=1224461, ctxswitch=5041371
  softint=1892784, syscalls=9108867, swapins=68, swapouts=93
  fault counts:
    noram=192313, noanon=0, pgwait=0, pgrele=0
    ok relocks(total)=250866(250886), anget(retrys)=1521690(248528), amapcopy=11
24401
    neighbor anon/obj pg=1561347/14118710, gets(lock/unlock)=3427714/2358
    cases: anon=1064651, anoncow=451416, obj=2980340, prcopy=425961, przero=6977
058
  daemon and swap counts:
    woke=161167, revs=7123, scans=3248589, obscans=30278, anscans=1900602
    busy=42, freed=1930736, reactivate=544682, deactivate=0
    pageouts=121248, pending=1779481, nswget=247590
    nswapdev=2, swpgavail=3890397
    swpages=3890397, swpginuse=1892072, swpgonly=1646107, paging=144
db{6}> 

>How-To-Repeat:

>Fix:


>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/38362: pmap_growkernel should able to fail
Date: Wed, 7 Jul 2021 00:24:51 +0000

 also affects arm32; see 50233.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.