From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 8 18:53:51 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51CE0B1D for ; Mon, 8 Sep 2014 18:53:51 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FFB51A2D for ; Mon, 8 Sep 2014 18:53:51 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s88IroU2003062 for ; Mon, 8 Sep 2014 18:53:51 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193465] [mips] malloc failures on mips, ath(4) Date: Mon, 08 Sep 2014 18:53:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sbruno@FreeBSD.org X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 18:53:51 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193465 --- Comment #3 from Sean Bruno --- (In reply to Sean Bruno from comment #2) > Specifically, this is what I am doing to work around this issue: >=20 > Index: sys/kern/kern_malloc.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/kern/kern_malloc.c (revision 271278) > +++ sys/kern/kern_malloc.c (working copy) > @@ -151,10 +151,21 @@ > {1024, "1024", }, > {2048, "2048", }, > {4096, "4096", }, > +#if PAGE_SIZE > 4096 > {8192, "8192", }, > +#if PAGE_SIZE > 8192 > {16384, "16384", }, > +#if PAGE_SIZE > 16384 > {32768, "32768", }, > +#if PAGE_SIZE > 32768 > {65536, "65536", }, > +#if PAGE_SIZE > 65536 > +#error "Unsupported PAGE_SIZE" > +#endif > +#endif > +#endif > +#endif > +#endif > {0, NULL}, > }; This is incorrect. I had to revert r266964 and r266963 in order to get the system to work again. Just using this change results in a panic: Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r271278M: Mon Sep 8 11:36:16 PDT 2014 =20=20=20 sbruno@alice:/home/sbruno/bsd/obj/mips/mips.mips/home/sbruno/bsd/fbsd_head/= sys/WZR-300HP mips gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. MEMGUARD DEBUGGING ALLOCATOR INITIALIZED: MEMGUARD map base: 0xc0800000 MEMGUARD map size: 104860 KBytes Preloaded elf kernel "kernel" at 0x80646970. real memory =3D 67108864 (65536K bytes) Physical memory chunk(s): 0x006e1000 - 0x03ebcfff, 58572800 bytes (14300 pages) avail memory =3D 57790464 (55MB) Trap cause =3D 2 (TLB miss (load or instr. fetch) - kernel mode) [ thread pid 0 tid 0 ] Stopped at strncmp+0x8: lb v1,0(a0) db> reset --=20 You are receiving this mail because: You are the assignee for the bug.=