<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2-platforms.git, branch spifvb_fix</title>
<subtitle>EDK II sample platform branches and tags (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=spifvb_fix</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=spifvb_fix'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/'/>
<updated>2023-02-08T22:15:26+00:00</updated>
<entry>
<title>IntelSiliconPkg/SpiFvbServiceSmm: Rewrite VariableStore header.</title>
<updated>2023-02-08T22:15:26+00:00</updated>
<author>
<name>Chasel Chiu</name>
<email>chasel.chiu@intel.com</email>
</author>
<published>2023-02-03T21:04:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=e9730dfa998a9bf3996c10ede6773afd49a9b268'/>
<id>urn:sha1:e9730dfa998a9bf3996c10ede6773afd49a9b268</id>
<content type='text'>
When invalid VariableStore FV header detected, current SpiFvbService
will erase both FV and VariableStore headers from flash, however,
it will only rewrite FV header back and cause invalid VariableStore
header.

This patch adding the support for rewriting both FV header and
VariableStore header when VariableStore corruption happened.
The Corrupted variable content should be taken care by
FaultTolerantWrite driver later.

Platform has to set PcdFlashVariableStoreType to inform SpiFvbService
which VariableStoreType should be rewritten.

Cc: Ashraf Ali S &lt;ashraf.ali.s@intel.com&gt;
Cc: Isaac Oram &lt;isaac.w.oram@intel.com&gt;
Cc: Rangasai V Chaganty &lt;rangasai.v.chaganty@intel.com&gt;
Cc: Ray Ni &lt;ray.ni@intel.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Chasel Chiu &lt;chasel.chiu@intel.com&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Correct memory leak in Ext4ReadSlowSymlink</title>
<updated>2023-02-08T16:25:02+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-01-27T10:31:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=615afc82db9f3ff348dacf8a94d9bb588783964b'/>
<id>urn:sha1:615afc82db9f3ff348dacf8a94d9bb588783964b</id>
<content type='text'>
We need to free SymlinkTmp before exiting if SymlinkSizeTmp != ReadSize
condition is true.

Reported-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: e81432fbacb7 ("Ext4Pkg: Add symbolic links support")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Filter out directory entry names containing \0 as invalid</title>
<updated>2023-02-08T16:25:02+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-01-27T07:20:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=0af4ed52a2e605761b4bcfdb3f10e5a8d9685931'/>
<id>urn:sha1:0af4ed52a2e605761b4bcfdb3f10e5a8d9685931</id>
<content type='text'>
The directory entry name conventions forbid having null-terminator
symbols in its body and can lead to undefined behavior conditions
and crashes

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: 89b2bb0db263 ("Ext4Pkg: Fix and clarify handling regarding non-utf8 dir entries")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Fix build on MSVC</title>
<updated>2023-02-08T16:24:11+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-01-26T14:26:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=1a6ad23a4617e4e155529db37529b1ada408b67f'/>
<id>urn:sha1:1a6ad23a4617e4e155529db37529b1ada408b67f</id>
<content type='text'>
Accessing array using index of uint64 type makes MSVC compiler to
include `__allmul` function in NOOPT which is not referenced in IA32.
So we null-terminate the string using ReadSize, which should be equal to
SymlinkSizeTmp after correct reading. Also add missing MultU64x32
in Ext4Read.

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: 7c46116b0e18 ("Ext4Pkg: Add ext2/3 support")
Fixes: e81432fbacb7 ("Ext4Pkg: Add symbolic links support")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Add missing exit status in Ext4OpenDirent</title>
<updated>2023-02-08T16:23:58+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2022-11-30T12:01:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=1f5c4f7cab506e800b13ecd1898bcc13df5d524d'/>
<id>urn:sha1:1f5c4f7cab506e800b13ecd1898bcc13df5d524d</id>
<content type='text'>
Missing EFI_OUT_OF_RESOURCES exit status on failed Ext4CreateDentry
leads to NULL-pointer dereference in Ext4GetFileInfo (passing NULL
buffer in Ext4ReadDir)

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: 21b1853880d5 ("Ext4Pkg: Add a directory entry tree.")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Check VolumeName allocation correctness in Ext4GetVolumeName</title>
<updated>2023-02-08T16:23:58+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2022-11-30T12:56:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=dc30a6213115d15a58cb2a967f0df3f48704f890'/>
<id>urn:sha1:dc30a6213115d15a58cb2a967f0df3f48704f890</id>
<content type='text'>
Missing check in some cases leads to failed StrCpyS call in
Ext4GetVolumeLabelInfo. Also correct condition that checks Inode pointer
for being NULL in Ext4AllocateInode

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: cfbbae595eec ("Ext4Pkg: Add handling of EFI_FILE_SYSTEM_VOLUME_LABEL GetInfo().")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Check that source file is directory in Ext4OpenInternal</title>
<updated>2023-02-08T16:23:58+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2022-11-04T15:16:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=d0cd979906f1645a6277bde0aeddc7303c9a1b46'/>
<id>urn:sha1:d0cd979906f1645a6277bde0aeddc7303c9a1b46</id>
<content type='text'>
This check already present in the while loop below, but absent for cases
when input file is nameless, so to handle assertion in Ext4ReadFile we
need to add it at the top of function

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Correct integer overflow check logic in DiskUtil</title>
<updated>2023-02-08T16:23:58+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-02-01T16:26:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=92065decc87e531c1701b6dd413fb52ef99a5b43'/>
<id>urn:sha1:92065decc87e531c1701b6dd413fb52ef99a5b43</id>
<content type='text'>
Correct multiplication overflow check code and add additional check
for emptiness of number of blocks and block number.

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Fix shift out of bounds in Ext4OpenSuperblock</title>
<updated>2023-02-08T16:23:19+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-01-27T16:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=127af2995941808c6b7e8778a62171a8e5184bd5'/>
<id>urn:sha1:127af2995941808c6b7e8778a62171a8e5184bd5</id>
<content type='text'>
Missing check for wrong s_log_block_size exponent leads to shift out of
bounds. Limit block size to 2 MiB

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Reviewed-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Add inode number validity check</title>
<updated>2023-02-08T16:23:19+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2023-01-30T16:03:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=977ed7c49933f64fea84ca7c59b4dbf3a33c3420'/>
<id>urn:sha1:977ed7c49933f64fea84ca7c59b4dbf3a33c3420</id>
<content type='text'>
We need to validate inode number to prevent reading non-existent and
incorrect inodes so we checks that inode number valid across opened
partition before we read it in Ext4ReadInode.

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Cc: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Vitaly Cheptsov &lt;vit9696@protonmail.com&gt;
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Acked-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
</feed>
