public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Leif Lindholm" <leif@nuviainc.com>
To: devel@edk2.groups.io, gaoliming@byosoft.com.cn
Cc: jiaxin.wu@intel.com, "'Anbazhagan,
	Baraneedharan'" <anbazhagan@hp.com>,
	maciej.rabeda@linux.intel.com, "'Fu,
	Siyuan'" <siyuan.fu@intel.com>, 'Andrew Fish' <afish@apple.com>,
	'Michael D Kinney' <michael.d.kinney@intel.com>
Subject: Re: 回复: [edk2-devel] [Patch edk2-stable202111] NetworkPkg: Fix invalid pointer for DNS response token on error
Date: Thu, 25 Nov 2021 10:54:42 +0000	[thread overview]
Message-ID: <YZ9rctAZdguQdp31@leviathan> (raw)
In-Reply-To: <000001d7e19f$2c08e8b0$841aba10$@byosoft.com.cn>

Agreed, but the commit message (and the BZ) should state which commit
introduced this issue.

/
    Leif

On Thu, Nov 25, 2021 at 09:52:58 +0800, gaoliming wrote:
> I suggest to merge this fix for the stable tag 202111. This fix is low risk.
> 
> 
>  
> 
> Thanks
> 
> Liming
> 
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Wu, Jiaxin
> 发送时间: 2021年11月25日 9:37
> 收件人: Anbazhagan, Baraneedharan <anbazhagan@hp.com>; devel@edk2.groups.io
> 抄送: maciej.rabeda@linux.intel.com; Fu, Siyuan <siyuan.fu@intel.com>
> 主题: Re: [edk2-devel] NetworkPkg: Fix invalid pointer for DNS response
> token on error
> 
>  
> 
> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com <mailto:jiaxin.wu@intel.com> >
> 
>  
> 
>  
> 
>  
> 
> From: Anbazhagan, Baraneedharan <anbazhagan@hp.com
> <mailto:anbazhagan@hp.com> > 
> Sent: Thursday, November 25, 2021 9:28 AM
> To: devel@edk2.groups.io <mailto:devel@edk2.groups.io> 
> Cc: maciej.rabeda@linux.intel.com <mailto:maciej.rabeda@linux.intel.com> ;
> Wu, Jiaxin <jiaxin.wu@intel.com <mailto:jiaxin.wu@intel.com> >; Fu, Siyuan
> <siyuan.fu@intel.com <mailto:siyuan.fu@intel.com> >
> Subject: RE: NetworkPkg: Fix invalid pointer for DNS response token on error
> 
>  
> 
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3719
> 
>  
> 
> Token->RspData.H2AData is de-allocated on error but it is not
> 
> set to NULL. HTTP module attempts to free again and cause assert.
> 
>  
> 
> Signed-off-by: Baraneedharan Anbazhagan anbazhagan@hp.com
> <mailto:anbazhagan@hp.com> 
> 
> ---
> 
> NetworkPkg/DnsDxe/DnsImpl.c | 2 ++
> 
> 1 file changed, 2 insertions(+)
> 
>  
> 
> diff --git a/NetworkPkg/DnsDxe/DnsImpl.c b/NetworkPkg/DnsDxe/DnsImpl.c
> 
> index 2edcb280ac..78a56f2b56 100644
> 
> --- a/NetworkPkg/DnsDxe/DnsImpl.c
> 
> +++ b/NetworkPkg/DnsDxe/DnsImpl.c
> 
> @@ -1700,6 +1700,7 @@ ON_EXIT:
> 
>            }
> 
>  
> 
>            FreePool (Dns4TokenEntry->Token->RspData.H2AData);
> 
> +          Dns4TokenEntry->Token->RspData.H2AData = NULL;
> 
>          }
> 
>        }
> 
>      }
> 
> @@ -1731,6 +1732,7 @@ ON_EXIT:
> 
>            }
> 
>  
> 
>            FreePool (Dns6TokenEntry->Token->RspData.H2AData);
> 
> +          Dns6TokenEntry->Token->RspData.H2AData = NULL;
> 
>          }
> 
>        }
> 
>      }
> 
> -- 
> 
> 2.33.0.windows.2
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 

  parent reply	other threads:[~2021-11-25 10:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-25  1:52 回复: [edk2-devel] [Patch edk2-stable202111] NetworkPkg: Fix invalid pointer for DNS response token on error gaoliming
2021-11-25  2:11 ` Michael D Kinney
2021-11-25 10:54 ` Leif Lindholm [this message]
2021-11-26  8:55   ` 回复: 回复: " gaoliming

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=YZ9rctAZdguQdp31@leviathan \
    --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