From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from IMSVA.IN.MEGATRENDS.COM (Webmail.amiindia.co.in [203.199.198.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 91FE1219FFEE8 for ; Thu, 25 May 2017 04:34:32 -0700 (PDT) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4DA328205A; Thu, 25 May 2017 17:06:28 +0530 (IST) Received: from IMSVA.IN.MEGATRENDS.COM (IMSVA.IN.MEGATRENDS.COM [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 350298204A; Thu, 25 May 2017 17:06:28 +0530 (IST) Received: from webmail.amiindia.co.in (venus1.in.megatrends.com [10.0.0.5]) by IMSVA.IN.MEGATRENDS.COM (Postfix) with ESMTPS; Thu, 25 May 2017 17:06:28 +0530 (IST) Received: from VENUS2.in.megatrends.com ([fe80::2002:4a07:4f17:c09b]) by VENUS1.in.megatrends.com ([fe80::951:7975:6ecf:eae5%14]) with mapi id 14.01.0438.000; Thu, 25 May 2017 17:04:28 +0530 From: Karunakar P To: "Wu, Jiaxin" , "afish@apple.com" , "edk2-devel@lists.01.org" CC: "Ye, Ting" , "Fu, Siyuan" Thread-Topic: [edk2] Pressing ESC from "PXE windows Boot manager" causes ASSERT Thread-Index: AdLURLC6iiwpAC5dQK2zZjiTmgfeiQABWJwwAABfyyAACXwlAAArxsog///oToD//6Dk0A== Date: Thu, 25 May 2017 11:34:27 +0000 Message-ID: References: <895558F6EA4E3B41AC93A00D163B7274162CD734@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <895558F6EA4E3B41AC93A00D163B7274162CD734@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.84.126] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSVA-9.1.0.1600-8.1.0.1062-23090.006 X-TM-AS-Result: No--37.711-5.0-31-10 X-imss-scan-details: No--37.711-5.0-31-10 X-TMASE-Version: IMSVA-9.1.0.1600-8.1.1062-23090.006 X-TMASE-Result: 10--37.711200-10.000000 X-TMASE-MatchedRID: 0lhM5bBmjENjDV//SvkH3hcqpH7D1rtQjEmM3Lm4PC2lqCS5RjBc3efQ ukOt100S6eam2BAjyzRHpPeBBM9pzbPiqbEFJcmFfFMOK/HqfAbRVZ5j2m7RUrC5w3HgF8Uiwz2 jCL4B9iaxzCWP5NuT5EWeqZkYjC1sLSTGw1g/Kd6ZroPNdqiG87en1kxWPkQZwDR44lliPu2HNA eTlC/7teoOKf2N8mfU9clZria53uDgwb2MnLCcFczWN98iBBeGO9ForJ3k7u21eX0jEQ9c6uQbo c8aFEQK3AwA+ZRxqNrnHSvp5i94R0kkO4zqprNOHmtCXih7f9PomPrNi98UBPB01AtBKELE/lA8 xyitUkKFNGmDPwdVzLQWU/Xvvm9LwcLaPlgzTvnN+qWlu2ZxaPVqGnjKdpc/H/9vPj/FgoDe+0i jmytBGvIDBHfMqRCjpJVKptK0waGk0F4/j+0gRlVN8laWo90MoprEeoZHCQJnerzbhugqsl2HrZ eiYIJvesSI/PXMJUaVd67STdAe7UL2oRfsBIKxiZXXNvjmJ4YaJDwYgQY/fypqlIPtNg2VN5Xi8 c6G52T3YaZvVdCUKo/sl0DlkRefoayr11+eKrm7vYqkCS0dL0+fvhSDkQoQKzTvtFkyFi1qoB46 H80riQ5RK8n+2teF4UDH+/Xdc16Zka9ZOnvpYPT+KclxuHvfhEIiqNvBrmPM7zpEspqG/zpbfdT AcNXm4vM1YF6AJbZYoPZAqTBHwi/tubwHkCSX9yEa3tvzanYXeuQCqIxlebxAi7jPoeEQftwZ3X 11IV0= X-TMASE-SNAP-Result: 1.821001.0001-0-1-12:0,22:0,33:0,34:0,39:0-0 Subject: Re: Pressing ESC from "PXE windows Boot manager" causes ASSERT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 May 2017 11:34:33 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Jiaxin, Please find below details regards Server Configuration I have configured DHCP and WDS server on same machine (Windows Server 2012 = R2) Server IP: 192.168.0.1 1. Configured Active Directory Domain Services, DHCP , WDS services 2. DHCPv4 Configuration Address Pool :- 192.168.0.2 - 192.168.0.50 Scope Options:- Option Name Value ----------------- -------- 006 DNS server 192.168.0.1 060 PXE Client PXEClient 3. WDS Configuration DHCP Properties Check both of the following check boxes 1. Do not listen on DHCP ports 2. Configure DHCP options to indicate that this is also a PXE Server In WDS Server, added boot.wim and install.wim images of same server. As you know, Once we configure WDS and added boot.wim and install.wim image= s to WDS server, bootmgfw.efi and wdsmgfw.efi files will be added to C:\Rem= oteInstall\Boot\x64=20 I also tried with PXE server configured in Windows Server 2008 R2. ASSERT h= appens at the same place Following are the debug messages // DEBUG message printed before StartImage() // StartImage() called wdsmgfw.Entry(10001000) Press ENTER for network boot service. ConvertPages: Incompatible memory typ= es bootmgfw.Entry(8510C000) Windows Boot Manager (Server IP: 192.168.000.001) Choose an operating system to start: (Use the arrow keys to highlight your = choice, then press ENTER.) WinServer2008_boot.wim To specify an advanced option for this choice, press F8. ENTER=3DChoose ESC=3DExit WinServer2008_boot.wim> To specify an advanced option for this choice, press F8. ASSERT d:\ProjectPath\MdeModulePkg\Core\Dxe\Mem\Pool.c(561): CR has Bad Sig= nature Yeah you are correct with above debug messages, It seems that issue is happ= ening inside bootmgfw Thanks, karunakar -----Original Message----- From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com]=20 Sent: Thursday, May 25, 2017 4:07 PM To: Karunakar P; afish@apple.com; edk2-devel@lists.01.org Cc: Ye, Ting; Fu, Siyuan Subject: RE: [edk2] Pressing ESC from "PXE windows Boot manager" causes ASS= ERT Karunakar, Can you share us the detailed DHCP and WDS configuration? E.g. DHCP options= / WDS Properties (DHCP). As you know, the different DHCP/WDS configuratio= n may lead to the different PXE download process/behavior. We would like to= reproduce the issue first. >>From your below debug messages, the issue seems to be triggered by bootmgfw= .Entry. Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of=20 > Karunakar P > Sent: Thursday, May 25, 2017 2:38 PM > To: afish@apple.com; edk2-devel@lists.01.org > Cc: Ye, Ting > Subject: Re: [edk2] Pressing ESC from "PXE windows Boot manager"=20 > causes ASSERT >=20 > Hello All, >=20 > I've added some traces to narrow down the issue. >=20 > Once the NBP file downloaded, control will be given to it. > I've added some traces before StartImage() and after StartImage() call. >=20 > Following are the debug messages >=20 > // DEBUG message printed before StartImage() // StartImage() called > wdsmgfw.Entry(100061C0) > WDS Boot Manager version 0800 > Client IP: 192.168.0.6 > Server IP: 192.168.0.1 > Server Name: WIN-8PL637590SS > Press ENTER for network boot service. > Windows Deployment Services (Server IP: 192.168.0.1) Contacting Server=20 > (192.168.0.1): > ESC=3DExit -ConvertPages: Incompatible memory types > bootmgfw.Entry(849FE1C0) > ASSERT d:\PathtoProject\MdeModulePkg\Core\Dxe\Mem\Pool.c(561): CR has=20 > Bad Signature >=20 > It might be Boot Loader Issue, As control is NOT coming back. >=20 > Could you please help on this. >=20 > Thanks, > karunakar >=20 > -----Original Message----- > From: afish@apple.com [mailto:afish@apple.com] > Sent: Wednesday, May 24, 2017 8:39 PM > To: Karunakar P > Cc: Ye, Ting; edk2-devel@lists.01.org > Subject: Re: [edk2] Pressing ESC from "PXE windows Boot manager"=20 > causes ASSERT >=20 > Karunakar, >=20 > Every Pool allocation has a header and a tail data structure that is=20 > outside of the user visible data. Both these structures have=20 > signatures. The ASSERT you are seeing is a bad signature in the header so= that looks like a buffer underflow. > It could also be a use after free bug. >=20 > Head: > POOL_HEAD > Buffer: > User Data > Tail: > POOL_TAIL >=20 > Given the checks only happen on Free it is possible it could be a=20 > buffer overflow on a buffer that has not yet been freed that runs into th= is buffer. >=20 > If you have a debugger dumping the memory before and after the buffer=20 > can some times be useful. The pattern might give you some clues. >=20 > Thanks, >=20 > Andrew Fish >=20 > > On May 23, 2017, at 10:16 PM, Karunakar P=20 > > > wrote: > > > > Hello All, > > > > The ASSERT happens in the following function > > > > /** > > Internal function to free a pool entry. > > Caller must have the memory lock held > > > > @param Buffer The allocated pool entry to free > > @param PoolType Pointer to pool type > > > > @retval EFI_INVALID_PARAMETER Buffer not valid > > @retval EFI_SUCCESS Buffer successfully freed. > > > > **/ > > EFI_STATUS > > CoreFreePoolI ( > > IN VOID *Buffer, > > OUT EFI_MEMORY_TYPE *PoolType OPTIONAL > > ) > > { > > . > > . > > ASSERT(Buffer !=3D NULL); > > // > > // Get the head & tail of the pool entry // > > Head =3D CR (Buffer, POOL_HEAD, Data, POOL_HEAD_SIGNATURE); // > ASSERT happens here > > ASSERT(Head !=3D NULL); > > . > > . > > } > > > > We are using NetworkPkg: SHA- > ef810bc807188224a752ffbcf5e7f4b651291cee > > > > I think here I'm unable attach the files. > > You can find the attached screenshots in the following Bug571 > > https://bugzilla.tianocore.org/show_bug.cgi?id=3D571 > > > > Thanks, > > Karunakar > > > > > > -----Original Message----- > > From: Ye, Ting [mailto:ting.ye@intel.com] > > Sent: Wednesday, May 24, 2017 10:29 AM > > To: Karunakar P; edk2-devel@lists.01.org > > Subject: RE: Pressing ESC from "PXE windows Boot manager" causes=20 > > ASSERT > > > > Hi Karunakar, > > > > Sorry I did not find your attached files. Would you please send them ag= ain? > Besides that, do you mind telling us which code base are you using for PX= E boot? > Are you using some revision of EDKII main trunk or UDK release? > > > > Thanks, > > Ting > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf=20 > > Of Karunakar P > > Sent: Wednesday, May 24, 2017 12:20 PM > > To: edk2-devel@lists.01.org > > Subject: [edk2] Pressing ESC from "PXE windows Boot manager" causes=20 > > ASSERT > > > > Hi All, > > > > We have facing an issue with PXE boot. > > [Issue] > > When ESC is pressed from Windows Boot manager during PXE boot (IPv4=20 > > or > > IPv6) system Hangs with following ASSERT > > > > ASSERT [DxeCore] \MdeModulePkg\Core\Dxe\Mem\Pool.c : CR has Bad=20 > > Signature > > > > [Reproduction Steps] > > 1. Perform UEFI PXEv4 or UEFI PXEv6 boot 2. It will start PXE boot=20 > > over IPv4/6 > and Downloads NBP file successfully. > > Attached the Screenshot for the same(ScreenShot1.jpg) > > > > It will Displays the info like "Press ENTER for network boot service" > > Attached Screensho(ScreenShot2.jpg) > > > > 3. Press ENTER and then press ESC immediately to see the Windows=20 > > Boot > Manager Menu > > It will list the available Operating Systems > > Attached the screenshot(ScreenShot3.png) > > > > 4. Press ESC to come back to Setup or next Boot option > > > > [Result] > > System hangs with ASSERT > > > > [Expected Result] > > On pressing ESC from Windows Boot Manager, it should come back to=20 > > setup/Next boot option in boot order > > > > Note: > > We have PXE server configured in Windows Server 2012 R2. > > > > Please look into it. > > > > > > Thanks, > > karunakar > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel