From owner-freebsd-bugs@freebsd.org Mon Jan 30 15:06:13 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BAE3CC755C for ; Mon, 30 Jan 2017 15:06:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B5591F34 for ; Mon, 30 Jan 2017 15:06:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0UF6D7k046540 for ; Mon, 30 Jan 2017 15:06:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 216606] kernel crashes early in pmap_map when pxe booted with rootfs in memory Date: Mon, 30 Jan 2017 15:06:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 15:06:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216606 Bug ID: 216606 Summary: kernel crashes early in pmap_map when pxe booted with rootfs in memory Product: Base System Version: 10.3-STABLE Hardware: i386 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: longwitz@incore.de CC: freebsd-i386@FreeBSD.org CC: freebsd-i386@FreeBSD.org Sometimes I boot one of my servers via pxe and rootfs in memory. This works fine for all FreeBSD 8 Stable servers and all FreeBSD 10.3 Stable amd64 ser= ver. But for FreeBSD 10.3 r307955 i386 the kernel crashes early on boot. My loader.conf: # root partition in memory disk' mfsroot_load=3D"YES" mfsroot_type=3D"mfs_root" mfsroot_name=3D"mfsroot" exec=3D".( setting vfs.root.mountfrom: ufs:/dev/md0) cr" vfs.root.mountfrom=3D"ufs:/dev/md0" Size of kernel and mfsroot.gz: -r-xr-xr-x 1 root wheel 12043460 17 Jan 14:33 kernel -rw-r--r-- 1 root wheel 15508243 28 Jan 04:15 mfsroot.gz Some info of the server from a normal boot: FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2791.05-MHz 686-class CPU) Origin=3D"GenuineIntel" Id=3D0xf29 Family=3D0xf Model=3D0x2 Stepping= =3D9 Features=3D0xbfebfbff Features2=3D0x4400 real memory =3D 4294967296 (4096 MB) avail memory =3D 3936821248 (3754 MB) Output on serial console: DB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb MP Configuration Table version 1.4 found at 0xc00f1d40 Table 'FACP' at 0xefff0030 Table 'APIC' at 0xefff00b0 APIC: Found table at 0xefff00b0 APIC: Using the MADT enumerator. MADT: Found CPU APIC ID 0 ACPI ID 0: enabled SMP: Added CPU 0 (AP) MADT: Found CPU APIC ID 6 ACPI ID 1: enabled SMP: Added CPU 6 (AP) MADT: Found CPU APIC ID 1 ACPI ID 2: enabled SMP: Added CPU 1 (AP) MADT: Found CPU APIC ID 7 ACPI ID 3: enabled SMP: Added CPU 7 (AP) Copyright (c) 1992-2016 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 10.3-STABLE #2 r307955: Tue Jan 17 14:33:05 CET 2017 root@dssresv2.incore:/usr/obj/usr/src/sys/SERVER32 i386 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0xbff22000 fault code =3D supervisor write, page not present instruction pointer =3D 0x20:0xc0b88660 stack pointer =3D 0x28:0xc4422c94 frame pointer =3D 0x28:0xc4422cac code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 0 () [ thread pid 0 tid 0 ] Stopped at pmap_map+0xb0: movl %ecx,PTmap(,%eax,4) db> bt Tracing pid 0 tid 0 td 0xc0e71510 pmap_map(c4422cd8,ebfba000,eff7a000,3,3fbf51c,...) at pmap_map+0xb0/frame 0xc4422cac vm_page_startup(c4594000,c0890706,c0e0279c,c0c8c4b1,0,...) at vm_page_startup+0x3a5/frame 0xc4422cec vm_mem_init(0,0,0,0,c0ccf2d8,...) at vm_mem_init+0x18/frame 0xc4422d10 mi_startup() at mi_startup+0xe7/frame 0xc4422d38 begin() at begin+0x22 db> reset The problem is easy reproducible. If necessary I can give more output from ddb. --=20 You are receiving this mail because: You are the assignee for the bug.=