30958 Commits

Author SHA1 Message Date
Mikhail Krichanov
7840b172bb CI: Took QEMU and .iso files from audk-stable-202302 branch. 2023-07-05 10:16:09 +03:00
Mikhail Krichanov
40563ad100 Build: Switched ocbuild to audk-stable-202302 branch. 2023-07-03 11:06:33 +03:00
Savva Mitrofanov
c23b214bad
Ext4Pkg: Correct MSVC compilation
MaxExtentsPerNode should be same type as eh_max uint16, because maximum
count of extent header entries is 65535

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-05-17 12:30:56 +03:00
Pedro Falcato
c0705373c2
Ext4Pkg: Advertise CSUM_SEED as supported
We had added support for CSUM_SEED but accidentally forgot to advertise
it in gSupportedIncompatFeat. This made it (erroneously) impossible to
mount CSUM_SEED filesystems.

Detected by attempting to mount a relatively new mkfs.ext4'd filesystem.

Cc: Marvin Häuser <mhaeuser@posteo.de>
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: Marvin Häuser <mhaeuser@posteo.de>
2023-05-17 12:30:55 +03:00
Pedro Falcato
fbb823890c
Ext4Pkg: Improve extent node validation on the number of entries
Improve the extent tree node validation by validating the number of
entries the node advertises against the theoretical max (derived from
the size of on-disk structs and the block size (or i_data, if inline
extents).

Previously, we did not validate the number of entries. This could be
exploited for out-of-bounds reads and crashes.

Cc: Marvin Häuser <mhaeuser@posteo.de>
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Reported-by: Savva Mitrofanov <savvamtr@gmail.com>
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: Marvin Häuser <mhaeuser@posteo.de>
2023-05-17 12:30:54 +03:00
Pedro Falcato
2f865a1537
Ext4Pkg: Move unicode collation initialization to Start()
There have been reports[1] of failures to boot due to unicode collation
protocols not being available at Ext4Dxe load time. Therefore, attempt
to initialize unicode collation at Start() time, like done previously in
FatPkg/EnhancedFatDxe. By doing so, we move collation initialization
to BDS, where the module responsible for protocol installation should
have already been loaded and ran.

[1]: https://edk2.groups.io/g/devel/message/100312

Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Marvin Häuser <mhaeuser@posteo.de>
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Marvin Häuser <mhaeuser@posteo.de>
2023-05-17 12:30:51 +03:00
PMheart
de705cea29 Build: Use latest Windows image (#33) 2023-05-10 10:22:23 +03:00
Marvin Häuser
38cbc7de6b MdePkg/BasePeCoffLib2: Fix invalid ASSERT for when RelocDirSize == 0 2023-05-10 10:22:23 +03:00
vit9696
b60533a964 Build: Upgrade OpenCorePkg 2023-05-10 10:22:23 +03:00
Marvin Häuser
ed40e08291 ImageTool: Replace QuickSort with qsort 2023-05-10 10:22:23 +03:00
Marvin Häuser
c19c448b0f BaseTools/GenFds: Fix reloc-stripped file name typo 2023-05-10 10:22:23 +03:00
Marvin Häuser
e11f00a64c ImageTool: Remove old HII functionality 2023-05-10 10:22:23 +03:00
Marvin Häuser
fd7f3b94b1 BaseTools: Introduce new HII section design 2023-05-10 10:22:23 +03:00
Marvin Häuser
a54d495da6 BaseTools/C: Consume UefiImageLib and ImageToolEmit 2023-05-10 10:22:22 +03:00
Marvin Häuser
29585ea95b BaseTools/GenFv: Remove .text and .data from FV map 2023-05-10 10:22:22 +03:00
Marvin Häuser
35b4251dc5 BaseTools: Remove GenFw 2023-05-10 10:22:22 +03:00
Marvin Häuser
d8937ed6df BaseTools/Python: Replace GenFw with ImageTool 2023-05-10 10:22:22 +03:00
Marvin Häuser
e446bbff25 ImageTool: Update command syntax to suit BaseTools/GenMake 2023-05-10 10:22:22 +03:00
Marvin Häuser
9fe980971f ImageTool: Support FixedAddress 2023-05-10 10:22:22 +03:00
Marvin Häuser
692969b2b1 ImageTool: Utilize UefiImageLib 2023-05-10 10:22:22 +03:00
Marvin Häuser
96fe339956 MdePkg/UefiImageLib: Add API for the image format ID 2023-05-10 10:22:22 +03:00
Marvin Häuser
ae08542f89 ImageTool: Support stripping relocs 2023-05-10 10:22:22 +03:00
Marvin Häuser
07d0ca418e MdePkg/BaseUefiImageLib: Factor out ExecutionSupport 2023-05-10 10:22:22 +03:00
Marvin Häuser
efb6eea39e ImageTool: Separate image generation from file I/O logic 2023-05-10 10:22:22 +03:00
Marvin Häuser
5976987671 ImageTool: Make IR canonical and compare input/output IRs 2023-05-10 10:22:22 +03:00
Marvin Häuser
1edfc1f6b7 ImageTool: Make ELF SymbolsPath optional 2023-05-10 10:22:22 +03:00
Marvin Häuser
5c75aaa8a7 Remove hacks related to former lack of XCODE5 .hii support 2023-05-10 10:22:22 +03:00
Marvin Häuser
942e747a91 ImageTool: Append .hii during PE generation 2023-05-10 10:22:22 +03:00
Marvin Häuser
4a02e8a807 BaseUefiImageLib: Fix segment logging 2023-05-10 10:22:22 +03:00
Marvin Häuser
2304aa1fd3 MdePkg/BasePeCoffLib2: Fix uninitialized RtContext for RelocateImage() 2023-05-10 10:22:22 +03:00
Marvin Häuser
d6657d8dd7 MdePkg/BasePeCoffLib2: Fix RuntimeRelocate sanity-check 2023-05-10 10:22:22 +03:00
Marvin Häuser
75662ff41a ImageTool: Relocate using the IR 2023-05-10 10:22:22 +03:00
Marvin Häuser
3a4c288fd3 ImageTool: Always store the full image segment data, including padding 2023-05-10 10:22:22 +03:00
Marvin Häuser
b666a59399 ImageTool: Don't shrink segment DataSize during validation 2023-05-10 10:22:22 +03:00
Marvin Häuser
a8f69bde96 MdePkg/PeCoffLib2: Expose ARM Thumb MOVW/MOVT relocation helpers 2023-05-10 10:22:22 +03:00
Marvin Häuser
fff229d0cb BaseTools: Simplify ELF-to-PE build 2023-05-10 10:22:22 +03:00
Marvin Häuser
85a3942525 ImageTool: Unify 32-bit and 64-bit tool variants 2023-05-10 10:22:22 +03:00
Marvin Häuser
fef57dfc27 ImageTool: Don't output errors for ElfScan() RETURN_UNSUPPORTED 2023-05-10 10:22:22 +03:00
Marvin Häuser
8ed1fada2d ImageTool: Remove ImageInfo global state 2023-05-10 10:22:22 +03:00
Marvin Häuser
b2de62e37f ImageTool: Remove global state from ELF scanning 2023-05-10 10:22:22 +03:00
Mikhail Krichanov
fa3ac41486 Updated STATUS.md. 2023-04-24 11:40:34 +03:00
Mikhail Krichanov
5e3f707e0a Added .md file summarizing current states of packages. 2023-04-21 17:06:46 +03:00
Marvin Häuser
42988773a0 BaseTools/tools_def: Omit object file relocations for X64 PIE 2023-04-17 12:08:02 +02:00
Marvin Häuser
92bb32130b ImageTool: Prefer ELF PIE over object file relocations 2023-04-17 12:08:02 +02:00
Marvin Häuser
dac1ed6cb9 ImageTool: Translate all loadable ELF sections 2023-04-17 12:08:02 +02:00
Marvin Häuser
3f691ba5eb ImageTool: Determine PE section characteristics based on permissions 2023-04-17 12:08:02 +02:00
Marvin Häuser
b4bcef3681 ImageTool: Properly handle ELF base address 2023-04-17 12:08:02 +02:00
Marvin Häuser
fa34c0e0bc ImageTool: Remove unused functions 2023-04-17 12:08:02 +02:00
Marvin Häuser
e1ad2458af MdePkg/PeCoffLib2: Drop TE type ID 2023-04-17 12:08:02 +02:00
Marvin Häuser
b498c75ea8 BaseTools/build_rule: Drop deprecated ASM16 definition 2023-04-16 18:03:47 +02:00