[edk2-devel] [edk2-platforms][PATCH v4 0/2] Ext4Pkg: Add Symbolic Links support

Savva Mitrofanov posted 2 patches 1 year, 9 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h |  13 +-
Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h  | 100 +++++-
Features/Ext4Pkg/Ext4Dxe/File.c     | 369 ++++++++++++++++++--
Features/Ext4Pkg/Ext4Dxe/Inode.c    |  53 +++
4 files changed, 492 insertions(+), 43 deletions(-)
[edk2-devel] [edk2-platforms][PATCH v4 0/2] Ext4Pkg: Add Symbolic Links support
Posted by Savva Mitrofanov 1 year, 9 months ago
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3677

Hi all,

In the fourth version I corrected SymlinkSize selection logic in 
Ext4ReadFastSymlink(), previously fast-symlink's EXT4_INODE_SIZE is not necessarily 
validated when we checked it in Ext4SymlinkIsFastSymlink(), so we should truncate
if necessary. Also I corrected MSVC compiler warning by assigning ExtAttrBlocks to
UINT32 type.

This patchset adds symbolic links support with simple recursion protection based
on symbolic link nest level limitation, also I included patch which adds BASE_CR
to extract EXT4_FILE private structure to prevent possible code corruption caused
by structure changes and rearrangements in future.

REF: https://github.com/savvamitrofanov/edk2-platforms/tree/ext4pkg_symlink_support

Cc: Marvin Häuser <mhaeuser@posteo.de>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>

Savva Mitrofanov (2):
  Ext4Pkg: Add symbolic links support
  Ext4Pkg: Add base containing record macro for EXT4_FILE

 Features/Ext4Pkg/Ext4Dxe/Ext4Disk.h |  13 +-
 Features/Ext4Pkg/Ext4Dxe/Ext4Dxe.h  | 100 +++++-
 Features/Ext4Pkg/Ext4Dxe/File.c     | 369 ++++++++++++++++++--
 Features/Ext4Pkg/Ext4Dxe/Inode.c    |  53 +++
 4 files changed, 492 insertions(+), 43 deletions(-)

-- 
2.37.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#91941): https://edk2.groups.io/g/devel/message/91941
Mute This Topic: https://groups.io/mt/92672599/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-