public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: "'Ard Biesheuvel'" <ardb@kernel.org>,
	"'Sughosh Ganu'" <sughosh.ganu@linaro.org>
Cc: <devel@edk2.groups.io>, "'Sami Mujawar'" <sami.mujawar@arm.com>,
	"'Ard Biesheuvel'" <ardb+tianocore@kernel.org>,
	"'Leif Lindholm'" <leif@nuviainc.com>, <Matteo.Carlini@arm.com>,
	<Ben.Adderson@arm.com>, "'nd'" <nd@arm.com>
Subject: 回复: [edk2-devel] [PATCH v2 1/1] ArmPkg: Fix uninitialised variable in ArmMmuStandaloneMmLib
Date: Sat, 27 Feb 2021 17:40:11 +0800	[thread overview]
Message-ID: <003901d70cec$8b673150$a23593f0$@byosoft.com.cn> (raw)
In-Reply-To: <CAMj1kXG8p86UY5+=bHwxL03M0A4WK9B6-vyWFRqRrtXpW08BxQ@mail.gmail.com>

Ard:
  This patch fixes the compiler build error. It is a bug fix. I am OK to merge it for this stable tag. 

Thanks
Liming
> -----邮件原件-----
> 发件人: Ard Biesheuvel <ardb@kernel.org>
> 发送时间: 2021年2月27日 2:46
> 收件人: Sughosh Ganu <sughosh.ganu@linaro.org>; Liming Gao (Byosoft
> address) <gaoliming@byosoft.com.cn>
> 抄送: devel@edk2.groups.io; Sami Mujawar <sami.mujawar@arm.com>; Ard
> Biesheuvel <ardb+tianocore@kernel.org>; Leif Lindholm <leif@nuviainc.com>;
> Matteo.Carlini@arm.com; Ben.Adderson@arm.com; nd <nd@arm.com>
> 主题: Re: [edk2-devel] [PATCH v2 1/1] ArmPkg: Fix uninitialised variable in
> ArmMmuStandaloneMmLib
> 
> On Fri, 26 Feb 2021 at 11:58, Sughosh Ganu <sughosh.ganu@linaro.org>
> wrote:
> >
> >
> > On Thu, 25 Feb 2021 at 22:41, Sami Mujawar <sami.mujawar@arm.com>
> wrote:
> >>
> >> The following patches added support for StandaloneMM using FF-A:
> >> 9da5ee116a28 ArmPkg: Allow FF-A calls to set memory region's attributes
> >> 0e43e02b9bd8 ArmPkg: Allow FF-A calls to get memory region's attributes
> >>
> >> However, in the error handling logic for the Get/Set Memory attributes,
> >> the CLANG compiler reports that a status variable could be used without
> >> initialisation. This issue is a false positive and is not seen with GCC.
> >>
> >> The Get/Set Memory attributes operation is atomic and therefore an
> >> FFA_INTERRUPT or FFA_SUCCESS response is not expected in response
> >> to FFA_MSG_SEND_DIRECT_REQ. So the remaining cases that could occur
> >> are:
> >>  - the target sends FFA_MSG_SEND_DIRECT_RESP with a success or
> >>    failure code.
> >>  or
> >>  - FFA_MSG_SEND_DIRECT_REQ transmission failure.
> >>
> >> Therefore,
> >>  - reorder the error handling conditions such that it prevents the
> >>    uninitialised variable issue being flagged by CLANG.
> >>  - move the repetitive code to a static helper function and add
> >>    documentation at the appropriate places.
> >>  - fix error handling in functions that invoke GetMemoryPermissions().
> >>
> >> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
> >> ---
> >> The changes can be seen at:
> >>
> https://github.com/samimujawar/edk2/tree/1657_stmm_ffa_fix_unused_var
> _v2
> >
> >
> >  Tested the changes on the StandaloneMm image on the Qemu platform.
> >
> > Tested-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> > Reviewed-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> >
> 
> Thanks. Sami, can you confirm that this patch fixes the CI failure I
> reported to you in private? If so, I intend to merge this during the
> freeze (assuming Liming is ok with that)



  parent reply	other threads:[~2021-02-27  9:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25 17:11 [PATCH v2 1/1] ArmPkg: Fix uninitialised variable in ArmMmuStandaloneMmLib Sami Mujawar
2021-02-26 10:58 ` [edk2-devel] " Sughosh Ganu
2021-02-26 18:45   ` Ard Biesheuvel
2021-02-26 22:36     ` Sami Mujawar
2021-02-27  9:40     ` gaoliming [this message]
2021-02-27 11:11       ` Ard Biesheuvel

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='003901d70cec$8b673150$a23593f0$@byosoft.com.cn' \
    --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