From nobody Sat Mar 15 14:41:44 2025 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZFP7s1YFnz5qtd0 for ; Sat, 15 Mar 2025 14:41:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZFP7r6gKYz3Kfv for ; Sat, 15 Mar 2025 14:41:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742049705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R70WZbr3tXVi3+UKREXkWr/7kN3DsuxflWB/9rMW5ig=; b=CPUGWiM11BdVkG6P8WJ0b7oxtceCzLEXA7td6XwoHU1tn6+WIaTKdJQmDiqEKU5BpxSMIU +5UkQLh+6FscY3ECSkasUCvwxj2iAOKXz4saPi7PiH6T8+Z9WgJa2/WpU8YQeJDPHjA/oV xvVKg1TXTyfyjSNEQankccBLete4VS8Z0rLe39VfNwveLWhkBsZbbVE0sUfwwiVkt/0fb4 AhWQH885/PFIj/GCn5tPLQCDK9gMM4VLYEXb7TqBCvaovFQ5wj7jJJgLVlV0Dp9s41xYjt NnQeJCIMZLd0jA9mRit8yw4rCfSm+yWdWFAR6okMC/BCro4oyu7zCbLoE1kvEg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742049705; a=rsa-sha256; cv=none; b=o/BrHvMDDbP/JmgKm/GaNbM6IJ2KbWvS3tR1dkLqNE06NC2m6rdtZch2WRTu0ZRx931Ge0 BzCMMz0KG66913S33HZXsGDU//SQhU00rzn0SU5cF0lkW5k2uz3KGV04AdOz3AOp6RPelw OMOP5/HKlvpl9TS9tKSxM+c/mDKnuSW3AzM26N1WpF6cb0Z9fr4hfa/u9+1PFHahlvS3Cp /Iwv00wBuJItPl11zx/sHeAPJee8onfxGY6IuuWSpyAbh82XvfIET52X6OJGExXaPJcEeP dwnuDIF5pd/puyIhlEKo0jb7Kq52AHN+nd5CMzcVjhCWwZd0mtfTzSCUs5gpjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742049705; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R70WZbr3tXVi3+UKREXkWr/7kN3DsuxflWB/9rMW5ig=; b=YVCl8Zk/S+3yPQDrkbJjQElrnWmUpCPWsUa1SFxOMWe0nK5JvfLlqc75nZ0SsqcMXRewnP hI0eAWVrwj5LPaLgJwcOEj4KKBTWX/B321z/6I2b7qveAKHHXW72t0+RX7WJ7zDWmX6o63 mmOiaS9alcASHuMOIHdgvRSdJPxaRUQKnjJI1s0h60JZdcW6+5M1avMJVgfJpDw9QJI/IV mt/sxWI/cJUNsTubDk2L/2czbU+j7cgv40Uenv/QIJp9lRkFj5A0x6vD2gs7vJwc6bH3C0 nPfpYSSzedintyMM/DBsa3yPOTM6rrJDo60e+YEGBSPoatiMbjPWcDDdOOKf9A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZFP7r60Cvz3bg for ; Sat, 15 Mar 2025 14:41:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52FEfi0l035678 for ; Sat, 15 Mar 2025 14:41:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52FEfis6035677 for virtualization@FreeBSD.org; Sat, 15 Mar 2025 14:41:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 285415] [Hyper-V] i386 panic during vm_phys_early_startup() Date: Sat, 15 Mar 2025 14:41:44 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285415 --- Comment #3 from Dimitry Andric --- What seems to be happening is that in vm_phys_early_startup() it goes throu= gh vm_phys_early_segs, which look like: vm_phys_early_nsegs=3D2 vm_phys_early_segs[0]=3D{start=3D 800000, end=3D2500000, domain=3D0} vm_phys_early_segs[1]=3D{start=3D2400000, end=3D24f0000, domain=3D0} So indeed, there is already an overlap, from whatever filled vm_phys_early_segs. With some help from EARLY_PRINTF I was able to get the following early boot messages: DBG /usr/src/sys/i386/i386/machdep.c(916) getmemsize: calling vm_phys_early_add_seg(start=3D800000, end=3D2500000) DBG /usr/src/sys/vm/vm_phys.c(1927) vm_phys_early_add_seg: enter, start=3D800000, end=3D2500000 DBG /usr/src/sys/vm/vm_phys.c(1936) vm_phys_early_add_seg: leave, vm_phys_early_nsegs=3D1 SMAP type=3D01 base=3D0000000000000000 len=3D000000000009fc00 SMAP type=3D02 base=3D000000000009fc00 len=3D0000000000000400 SMAP type=3D02 base=3D00000000000e0000 len=3D0000000000020000 SMAP type=3D01 base=3D0000000000100000 len=3D00000000f7ef0000 SMAP type=3D03 base=3D00000000f7ff0000 len=3D000000000000f000 SMAP type=3D04 base=3D00000000f7fff000 len=3D0000000000001000 SMAP type=3D01 base=3D0000000100000000 len=3D0000000108000000 DBG /usr/src/sys/i386/i386/pmap.c(624) pmap_pae_bootstrap: calling vm_phys_early_add_seg(start=3D2400000, end=3D24f0000) DBG /usr/src/sys/vm/vm_phys.c(1927) vm_phys_early_add_seg: enter, start=3D2400000, end=3D24f0000 DBG /usr/src/sys/vm/vm_phys.c(1936) vm_phys_early_add_seg: leave, vm_phys_early_nsegs=3D2 So you can see that the segment [0x800000, 0x2500000) is inserted from getmemsize(), but the overlapping segment [0x2400000, 0x24f0000) is inserted from pmap_pae_bootstrap(KPTphys, KPTphys + ptoa(nkpt)); It looks like KPTphys is the result of allocpages(NKPT, &physfree), but I am unsure why that would result in a range that overlaps. --=20 You are receiving this mail because: You are the assignee for the bug.=