Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varint readfix r35.5.0 #110

Open
wants to merge 2 commits into
base: r35.6.0-updates
Choose a base branch
from
Open

Varint readfix r35.5.0 #110

wants to merge 2 commits into from

Conversation

gmahadevan
Copy link
Contributor

@gmahadevan gmahadevan commented Nov 16, 2024

Fixes to the Variable Store Integrity feature. The fixes are to the way the code handles traversing blocks in the Flash device.
The fixes address boot failures with this crash signature:

ASSERT [FvbNorFlashStandaloneMm] /out/nvidia/optee_ftpm.t234-uefi/StandaloneMmOptee_RELEASE/edk2-nvidia/Silicon/NVIDIA/Drivers/FvbNorFlashDxe/FvbNorFlashStandaloneMm.c(937): ((BOOLEAN)(0==1))

When the write pointer moves to write a new record, it
takes care not to straddle erase blocks; when reading back
account for this.
Fix a memory leak in the NvVarIntLibrary.

Bug 4788402
Change-Id: I5ff718c066860ca9f20a7bfa4a006b57405f1911
Signed-off-by: Girish Mahadevan <[email protected]>
Reviewed-on: https://git-master.nvidia.com/r/c/tegra/bootloader/uefi/edk2-nvidia/+/3244202
Reviewed-by: svcacv <[email protected]>
Reviewed-by: Ashish Singhal <[email protected]>
GVS: buildbot_gerritrpt <[email protected]>
Reviewed-by: svc-sw-mobile-l4t <[email protected]>
@gmahadevan gmahadevan changed the base branch from main to r35.6.0-updates November 16, 2024 01:50
When figuring out the LBA for the current block we accidentally
used the partition offset and not the block size.

Change-Id: I9d0cb3f38694663b832a3d34bd8dbcf9d73096f2
Signed-off-by: Girish Mahadevan <[email protected]>
@gmahadevan gmahadevan changed the title Varint readfix Varint readfix r35.5.0 Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant