public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <jiewen.yao@intel.com>,
	"'Xu, Min M'" <min.m.xu@intel.com>
Cc: "'Bi, Dandan'" <dandan.bi@intel.com>,
	"'Aktas, Erdem'" <erdemaktas@google.com>,
	"'James Bottomley'" <jejb@linux.ibm.com>,
	"'Gerd Hoffmann'" <kraxel@redhat.com>,
	"'Tom Lendacky'" <thomas.lendacky@amd.com>,
	"'Michael Roth'" <michael.roth@amd.com>
Subject: 回复: [edk2-devel] [PATCH V1 1/1] MdeModulePkg: EfiUnacceptedMemoryType is not allowed in AllocatePool
Date: Thu, 19 Jan 2023 09:08:45 +0800	[thread overview]
Message-ID: <000101d92ba2$946566b0$bd303410$@byosoft.com.cn> (raw)
In-Reply-To: <MW4PR11MB58720E61134D1260AF7E041A8CC79@MW4PR11MB5872.namprd11.prod.outlook.com>

Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>

> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Yao, Jiewen
> 发送时间: 2023年1月18日 18:04
> 收件人: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
> 抄送: Gao, Liming <gaoliming@byosoft.com.cn>; Bi, Dandan
> <dandan.bi@intel.com>; Aktas, Erdem <erdemaktas@google.com>; James
> Bottomley <jejb@linux.ibm.com>; Gerd Hoffmann <kraxel@redhat.com>; Tom
> Lendacky <thomas.lendacky@amd.com>; Michael Roth
> <michael.roth@amd.com>
> 主题: Re: [edk2-devel] [PATCH V1 1/1] MdeModulePkg:
> EfiUnacceptedMemoryType is not allowed in AllocatePool
> 
> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
> 
> > -----Original Message-----
> > From: Xu, Min M <min.m.xu@intel.com>
> > Sent: Wednesday, January 18, 2023 4:42 PM
> > To: devel@edk2.groups.io
> > Cc: Xu, Min M <min.m.xu@intel.com>; Gao, Liming
> > <gaoliming@byosoft.com.cn>; Bi, Dandan <dandan.bi@intel.com>; Aktas,
> > Erdem <erdemaktas@google.com>; James Bottomley
> <jejb@linux.ibm.com>;
> > Yao, Jiewen <jiewen.yao@intel.com>; Gerd Hoffmann
> <kraxel@redhat.com>;
> > Tom Lendacky <thomas.lendacky@amd.com>; Michael Roth
> > <michael.roth@amd.com>
> > Subject: [PATCH V1 1/1] MdeModulePkg: EfiUnacceptedMemoryType is not
> > allowed in AllocatePool
> >
> > From: Min M Xu <min.m.xu@intel.com>
> >
> > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4315
> >
> > MemoryType of EfiUnacceptedMemoryType should not be allocated in
> > AllocatePool. Instead it should return EFI_INVALID_PARAMETER.
> >
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Dandan Bi <dandan.bi@intel.com>
> > Cc: Erdem Aktas <erdemaktas@google.com>
> > Cc: James Bottomley <jejb@linux.ibm.com>
> > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > Cc: Gerd Hoffmann <kraxel@redhat.com>
> > Cc: Tom Lendacky <thomas.lendacky@amd.com>
> > Cc: Michael Roth <michael.roth@amd.com>
> > Reported-by: Liming Gao <gaoliming@byosoft.com.cn>
> > Signed-off-by: Min Xu <min.m.xu@intel.com>
> > ---
> >  MdeModulePkg/Core/Dxe/Mem/Pool.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/MdeModulePkg/Core/Dxe/Mem/Pool.c
> > b/MdeModulePkg/Core/Dxe/Mem/Pool.c
> > index 7aaf501600cf..b20cbfdedbab 100644
> > --- a/MdeModulePkg/Core/Dxe/Mem/Pool.c
> > +++ b/MdeModulePkg/Core/Dxe/Mem/Pool.c
> > @@ -213,7 +213,7 @@ CoreInternalAllocatePool (
> >    // If it's not a valid type, fail it
> >    //
> >    if (((PoolType >= EfiMaxMemoryType) && (PoolType <
> > MEMORY_TYPE_OEM_RESERVED_MIN)) ||
> > -      (PoolType == EfiConventionalMemory) || (PoolType ==
> > EfiPersistentMemory))
> > +      (PoolType == EfiConventionalMemory) || (PoolType ==
> > EfiPersistentMemory) || (PoolType == EfiUnacceptedMemoryType))
> >    {
> >      return EFI_INVALID_PARAMETER;
> >    }
> > --
> > 2.29.2.windows.2
> 
> 
> 
> 
> 




      reply	other threads:[~2023-01-19  1:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18  8:41 [PATCH V1 1/1] MdeModulePkg: EfiUnacceptedMemoryType is not allowed in AllocatePool Min Xu
2023-01-18  9:06 ` Gerd Hoffmann
2023-01-18 10:03 ` Yao, Jiewen
2023-01-19  1:08   ` gaoliming [this message]

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='000101d92ba2$946566b0$bd303410$@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