<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2-platforms.git/Features/Ext4Pkg/Ext4Dxe/BlockGroup.c, branch master</title>
<subtitle>EDK II sample platform branches and tags (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/'/>
<updated>2023-12-03T23:36:16+00:00</updated>
<entry>
<title>Ext4Pkg: Fix CRC16 checksumming on block groups</title>
<updated>2023-12-03T23:36:16+00:00</updated>
<author>
<name>Pedro Falcato</name>
<email>pedro.falcato@gmail.com</email>
</author>
<published>2023-11-30T02:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=b95395ba400e2ab45c902a80a965380538670f6b'/>
<id>urn:sha1:b95395ba400e2ab45c902a80a965380538670f6b</id>
<content type='text'>
Old filesystems (around 2008 and older) do not use CRC32c
but rather CRC16-ANSI. Previously, the CalculateCrc16Ansi function was
broken and gave us wrong checksums. Adapt to the new interface.

And while we're at it, fix the checksum algorithm itself - the crc16
algorithm just skips over the bg_checksum, and does not checksum it.

This problem was found out-of-list when older ext4 filesystems
(that use crc16 checksums) failed to mount with "corruption".

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4609
Signed-off-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Cc: Savva Mitrofanov &lt;savvamtr@gmail.com&gt;
Cc: Marvin Häuser &lt;mhaeuser@posteo.de&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>
<entry>
<title>Ext4Pkg: Fix bug in EXT4_HAS_GDT_CSUM</title>
<updated>2022-09-05T22:36:08+00:00</updated>
<author>
<name>Pedro Falcato</name>
<email>pedro.falcato@gmail.com</email>
</author>
<published>2022-09-05T01:54:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=bcad50b813efc0552163ca76441bbe8221afb68c'/>
<id>urn:sha1:bcad50b813efc0552163ca76441bbe8221afb68c</id>
<content type='text'>
Caught when running clang-tidy on this code. Also tidies up some logic
in BlockGroup.c

Cc: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
Signed-off-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Marvin Häuser &lt;mhaeuser@posteo.de&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Code correctness and security improvements</title>
<updated>2022-08-06T23:24:07+00:00</updated>
<author>
<name>Savva Mitrofanov</name>
<email>savvamtr@gmail.com</email>
</author>
<published>2022-07-27T15:54:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=c367ec54f7bfce341732c6eb542809bcd77fc618'/>
<id>urn:sha1:c367ec54f7bfce341732c6eb542809bcd77fc618</id>
<content type='text'>
This changes tends to improve security of code sections by fixing
integer overflows, missing alignment checks, unsafe casts, also
simplified some routines, fixed compiler warnings and corrected some
code mistakes.

- Set HoleLen to UINT64 to prevent truncation in Ext4Read function
- Replace EXT4_BLOCK_NR with 32-bit EXT2_BLOCK_NR in BlockMap, because
by specification files using block maps must be placed within the first
2^32 blocks of a filesystem
- Replace UNREACHABLE with ASSERT (FALSE) in case of new checksum
algorithms, due to it is an invariant violation rather than unreachable
path
- Solve compiler warnings. Initialize all fields in gExt4BindingProtocol
Fix comparison of integer expressions of different signedness
- Field name_len has type CHAR8, while filename limit is 255
(EXT4_NAME_MAX), so because structure EXT4_DIR_ENTRY would be
unchangeable in future, we could drop this check without any
assertions
- Simplify Ext4RemoveDentry logic by using IsNodeInList
- Fix possible int overflow in Ext4ExtentsMapKeyCompare
- Return bad block type in Ext4GetBlockpath
- Adds 4-byte aligned check for superblock group descriptor size field

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;
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: Replace the CRC implementations with BaseLib</title>
<updated>2022-06-14T15:56:00+00:00</updated>
<author>
<name>Pedro Falcato</name>
<email>pedro.falcato@gmail.com</email>
</author>
<published>2022-04-07T22:01:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=a7e81ad0300f2b78e4750522e2080e0f97e8e0ad'/>
<id>urn:sha1:a7e81ad0300f2b78e4750522e2080e0f97e8e0ad</id>
<content type='text'>
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3871

Since the existing CRC16/CRC32c implementations have been/will be
a part of BaseLib, use BaseLib and remove the Crc16.c/Crc32c.c.

Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;

Signed-off-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Acked-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Add Ext4Dxe driver.</title>
<updated>2021-08-19T16:37:57+00:00</updated>
<author>
<name>Pedro Falcato</name>
<email>pedro.falcato@gmail.com</email>
</author>
<published>2021-08-16T18:06:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=d9ceedca6c8f4110c73489a99ee74b371fca63fd'/>
<id>urn:sha1:d9ceedca6c8f4110c73489a99ee74b371fca63fd</id>
<content type='text'>
Adds a UEFI EXT4 filesystem driver that implements the EFI_FILE_PROTOCOL
and EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.

Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Bret Barkelew &lt;Bret.Barkelew@microsoft.com&gt;
Signed-off-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>Revert "Ext4Pkg: Add Ext4Dxe driver." to correct Author</title>
<updated>2021-08-19T16:37:49+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-08-19T16:30:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=c8d7bc3737c9cea3100e32d47bbc7e74504a7f92'/>
<id>urn:sha1:c8d7bc3737c9cea3100e32d47bbc7e74504a7f92</id>
<content type='text'>
This reverts commit ac10729d2c9482aff7c37545c8d84d38b685c1d9.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>Ext4Pkg: Add Ext4Dxe driver.</title>
<updated>2021-08-18T05:17:53+00:00</updated>
<author>
<name>devel@edk2.groups.io</name>
<email>devel@edk2.groups.io</email>
</author>
<published>2021-08-16T18:06:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2-platforms.git/commit/?id=ac10729d2c9482aff7c37545c8d84d38b685c1d9'/>
<id>urn:sha1:ac10729d2c9482aff7c37545c8d84d38b685c1d9</id>
<content type='text'>
Adds a UEFI EXT4 filesystem driver that implements the EFI_FILE_PROTOCOL
and EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.

Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Bret Barkelew &lt;Bret.Barkelew@microsoft.com&gt;
Signed-off-by: Pedro Falcato &lt;pedro.falcato@gmail.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
</feed>
