public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wu, Jiaxin" <jiaxin.wu@intel.com>
To: Joakim Bech <joakim.bech@linaro.org>, "Wang, Fan" <fan.wang@intel.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Fu, Siyuan" <siyuan.fu@intel.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	team-security-wg <team-security-wg@linaro.org>,
	Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: Regression/Assert : MdeModulePkg: Did some code enhancement for DxeIpIoLib
Date: Wed, 17 Jan 2018 00:36:53 +0000	[thread overview]
Message-ID: <895558F6EA4E3B41AC93A00D163B72741635D592@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <CA+EyddYqnxpqn=cE_Xxi2mkd34pAFJALP9c_3tRTyQ_5_TLgiw@mail.gmail.com>

Hi Joakim,

It has been fixed in EDK2 trunk. The commit log is shown as below:

SHA-1: 6478baf891524348451d75a37f4e4692b835a45b

* MdeModulePkg/DxeIpIoLib: Fixed the error ASSERT incorrectly used in IpIoAddIp().

* In DxeIpIo, an ASSERT check is incorrectly used in IpIoAddIp(), which result
  debug image hang when this API is called, this patch is to fix this issue.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wang Fan <fan.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>

Thanks,
Jiaxin


From: Joakim Bech [mailto:joakim.bech@linaro.org]
Sent: Tuesday, January 16, 2018 6:59 PM
To: Wang, Fan <fan.wang@intel.com>
Cc: edk2-devel@lists.01.org; Wu, Jiaxin <jiaxin.wu@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Ard Biesheuvel <ard.biesheuvel@linaro.org>; team-security-wg <team-security-wg@linaro.org>; Leif Lindholm <leif.lindholm@linaro.org>
Subject: [edk2] Regression/Assert : MdeModulePkg: Did some code enhancement for DxeIpIoLib

Hi,

With recent patches being merged in EDK2 we get an assert when booting:
--------------------------------------------------------------------------
...
InstallProtocolInterface: 41D94CD2-35B6-455A-8258-D4E51334AADD 7BA990A0
InstallProtocolInterface: 83F01464-99BD-45E5-B383-AF6305D8E9E6 7BA99B20
ASSERT [Udp4Dxe] /mnt/sshd/devel/optee_projects/qemu_v8/edk2/MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.c(1750): (IpInfo->IpVersion == 4) || (IpInfo->IpVersion == 6)
--------------------------------------------------------------------------


I've bisected it to this commit:
--------------------------------------------------------------------------
$ git bisect bad
2b2087478c861b967394f1ce31531d27ab541b02 is the first bad commit
commit 2b2087478c861b967394f1ce31531d27ab541b02
Author: Wang Fan <fan.wang@intel.com<mailto:fan.wang@intel.com>>
Date:   Wed Jan 10 11:09:28 2018 +0800

    MdeModulePkg: Did some code enhancement for DxeIpIoLib

    * In DxeIpIo, there are several places use ASSERT() to check input
      parameters without and descriptions or error handling. This patch
      fixed this issue.
    * Fixed some incorrect descriptions in code commence.
    * Remove unneeded Exit tag in function IpIoOpen and IpIoConfigIp.
    * Add EFIAPI tag for function IpIoRefreshNeighbor.

    Cc: Jiaxin Wu <jiaxin.wu@intel.com<mailto:jiaxin.wu@intel.com>>
    Cc: Ye Ting <ting.ye@intel.com<mailto:ting.ye@intel.com>>
    Cc: Fu Siyuan <siyuan.fu@intel.com<mailto:siyuan.fu@intel.com>>
    Contributed-under: TianoCore Contribution Agreement 1.0
    Signed-off-by: Wang Fan <fan.wang@intel.com<mailto:fan.wang@intel.com>>
    Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com<mailto:jiaxin.wu@intel.com>>
    Reviewed-by: Fu Siyuan <siyuan.fu@intel.com<mailto:siyuan.fu@intel.com>>

:040000 040000 2c60fa2019178c75556b238dbf877927917531f0 080ccf675bf7ee498eccccc89f76bfd14fd61ff9 M      MdeModulePkg
--------------------------------------------------------------------------


This EKD2 build is being used in a QEMU Arm v8 setup running AArch64 (aarch64-linux-gnu-) and for reference here are the build parameters:
--------------------------------------------------------------------------
make -j1 -C /mnt/sshd/devel/optee_projects/qemu_v8/build/../edk2/BaseTools && \  GCC49_AARCH64_PREFIX=/mnt/sshd/devel/optee_projects/qemu_v8/build/../toolchains/aarch64-legacy/bin/aarch64-linux-gnu- make -j1 -C /mnt/sshd/devel/optee_projects/qemu_v8/build/../edk2 -f ArmPlatformPkg/Scripts/Makefile EDK2_ARCH=AARCH64 EDK2_DSC=ArmVirtPkg/ArmVirtQemuKernel.dsc EDK2_TOOLCHAIN=GCC49 EDK2_BUILD=DEBUG EDK2_MACROS="-n 6" all
--------------------------------------------------------------------------

Is this something an EDK2 developer could look into or give advice how to resolve it? Set IP_VERSION_4 or IP_VERSION_6 somewhere?

Regards,
Joakim

  reply	other threads:[~2018-01-17  0:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-16 10:59 Regression/Assert : MdeModulePkg: Did some code enhancement for DxeIpIoLib Joakim Bech
2018-01-17  0:36 ` Wu, Jiaxin [this message]
2018-01-17  0:43   ` Joakim Bech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=895558F6EA4E3B41AC93A00D163B72741635D592@SHSMSX103.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox