[edk2-devel] [PATCH] OvmfPkg/RiscVVirt: Fix issues in VarStore Blockmap config

Sunil V L sunilvl at ventanamicro.com
Tue Aug 22 06:26:25 UTC 2023


Hi Liming,

This is a bug fix and can cause data loss if the variable size > 4k.
Can it be included for the edk2-stable202308? Let me know if it requires
a BZ id.

I tried running the CI tests for this patch. But 2 of tests failed and I
don't think it has anything to do with this patch. If you are ok to take
this patch for the stable release, could you please let me know what
needs to be done?

PR : https://github.com/tianocore/edk2/pull/4754

Thanks!
Sunil

On Wed, Aug 16, 2023 at 02:33:00PM +0530, Sunil V L via groups.io wrote:
> On Wed, Aug 16, 2023 at 07:08:58AM +0000, Li, Yong wrote:
> > Hi Sunil,
> > 
> > Qingyu is from Penglai team, when we were working together in enabling StandaloneMm variable service, 
> > we found an issue in OvmfPkg/RiscVVirt/VarStore.fdf.inc,  in which the blockmap config is not aligned with the value in
> > OvmfPkg/RiscVVirt/Library/VirtNorFlashPlatformLib/VirtNorFlashStaticLib.c, which is SIZE_256KB
> > 
> > That mis-alignment won't cause any issue if the variable size is small and less than 0x1000, but if store more data in the flash device then it will cause data loss issue during reboot.
> > Once reboot if any FV header data is corrupted it will result the whole variable system be re-initialized.
> > 
> > Please help review the patch and give the comments, thanks 
> >
> Hi Yong Li,
> 
> Thank you very much for providing the context. Sorry, I actually had
> missed this.
> 
> Hi Quingyu Shang,
> 
> The patch LGTM. Thanks a lot for finding the issue and fixing it. In
> future, could you please run BaseTools/Scripts/GetMaintainer.py on the
> patches and CC all the people it lists using "Cc:" tag?
> 
> Reviewed-by: Sunil V L <sunilvl at ventanamicro.com>
> 
> Thanks!
> Sunil
> 
> 
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#107947): https://edk2.groups.io/g/devel/message/107947
Mute This Topic: https://groups.io/mt/100684601/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list