Commit Graph

3757 Commits

Author SHA1 Message Date
Mintsuki
18848b6f4a lib/gterm, lib/image: Check for overflow in canvas and image size calculations 2026-04-02 22:21:54 +02:00
Mintsuki
b4f336d098 lib/config: Validate hex characters in config checksum 2026-04-02 22:21:54 +02:00
Mintsuki
b699192d0d protos/multiboot2: Validate header tag sizes before casting 2026-04-02 22:21:54 +02:00
Mintsuki
dda61b00fa lib/config: Reject config file too large for size_t 2026-04-02 22:21:54 +02:00
Mintsuki
003f01fff0 lib/rand: Make sure that, on x86-64, 64-bit rdrand/rdseed is always done over 32-bit 2026-04-02 22:21:54 +02:00
Mintsuki
658906f085 lib/elf: Consistently NULL-check is_reloc before dereference 2026-04-02 22:21:54 +02:00
Mintsuki
5df9958154 lib/pe: Validate SizeOfOptionalHeader is large enough 2026-04-02 22:21:54 +02:00
Mintsuki
dd2354bae9 sys/cpu: Add retry limit to rdrand/rdseed macros 2026-04-02 22:21:54 +02:00
Mintsuki
eac7fd4c65 mm/pmm: Add bounds check on EFI reclaimable entry count 2026-04-02 22:21:54 +02:00
Mintsuki
91e5e5668f lib/elf: Add file_size parameter to elf_bits for bounds checking 2026-04-02 22:21:54 +02:00
Mintsuki
f1814a42d9 protos/efi_boot_entry: Validate boot variable size before accessing description 2026-04-02 22:21:54 +02:00
Mintsuki
4b22cb6f42 fs/fat32: Reject out-of-order and non-contiguous LFN entries 2026-04-02 22:21:53 +02:00
Mintsuki
de46c9523a protos/multiboot2: Fix GCC build error with break in statement expression 2026-04-02 02:00:22 +02:00
Mintsuki
74ddd08758 lib/rand: Mix hardware entropy on non-x86 via RNDR and EFI RNG protocol 2026-04-02 01:44:59 +02:00
Mintsuki
a28a8ec0a2 protos/linux_x86: Use uint64_t for initrd_addr_max to prevent 32-bit wrap 2026-04-02 01:44:59 +02:00
Mintsuki
198bd3b8b0 sys/smp: Use fence instruction for RISC-V AP trampoline store ordering 2026-04-02 01:44:59 +02:00
Mintsuki
947a9b2c3a sys/lapic, sys/smp: Validate MADT entry length against table boundary 2026-04-02 01:44:58 +02:00
Mintsuki
bb4f6c4c9f mm/pmm: Add bounds check to UEFI memory map import loop 2026-04-02 01:44:58 +02:00
Mintsuki
01186e2051 lib/pe: Use uint64_t for sections offset calculation to prevent 32-bit overflow 2026-04-02 01:44:58 +02:00
Mintsuki
33bc059f6d lib/elf: Validate image size fits address space in elf64_load_elsewhere 2026-04-02 01:44:58 +02:00
Mintsuki
0a24c40c7e host/limine: Validate uninstall data entry size before malloc 2026-04-02 01:44:58 +02:00
Mintsuki
f7c265f806 sys/cpu: Fix locked_read memory operand constraint to input+output 2026-04-02 01:44:58 +02:00
Mintsuki
1c2942c5f8 lib/part: Check for overflow in cache block size calculation 2026-04-02 01:44:58 +02:00
Mintsuki
ca253330a8 lib/elsewhere: Add bounds check to elsewhere_append 2026-04-02 01:44:58 +02:00
Mintsuki
7041ea96c0 lib/gterm, lib/image: Reject zero font scale and zero-dimension images 2026-04-02 01:44:58 +02:00
Mintsuki
af9fdbe7b0 protos/multiboot1: Remove dead NULL check on cmdline 2026-04-02 01:44:58 +02:00
Mintsuki
9e8d1cee14 mm/pmm: Check for overflow in UEFI memmap AllocatePool size 2026-04-02 01:44:58 +02:00
Mintsuki
525632106a fs/iso9660: Handle Rock Ridge NM continuation entries 2026-04-02 01:44:58 +02:00
Mintsuki
8309c20ab0 mm/pmm: Use CHECKED_ADD for alignment overflow check in ext_mem_alloc 2026-04-02 01:44:58 +02:00
Mintsuki
f4ce0420c0 lib/elf: Validate file bounds in relocation engine and vaddr translation 2026-04-02 01:44:58 +02:00
Mintsuki
8118e60ddb protos/linux_risc: Load and concatenate all modules, not just the first 2026-04-02 01:44:58 +02:00
Mintsuki
1b5b8e4620 misc: Add CHECKED_MUL macro, use it for all overflow-checked multiplications 2026-04-02 01:44:58 +02:00
Mintsuki
4d53b3bc70 mm/pmm: Use unsigned arithmetic in top-down allocator 2026-04-02 01:44:58 +02:00
Mintsuki
eb071a0121 misc: Add overflow checking to ALIGN_UP and DIV_ROUNDUP macros 2026-04-02 01:44:58 +02:00
Mintsuki
d7f0160ddc mm/pmm: Add ext_mem_alloc_counted(), use it everywhere for checked array allocations 2026-03-31 15:31:50 +02:00
Mintsuki
cc586e6cc0 misc: Use CHECKED_ADD for overflow-checked additions 2026-03-31 15:31:50 +02:00
Mintsuki
3a73ecf5bd mm: Add CHECKED_ADD macro, use it for all base+length computations 2026-03-31 15:31:50 +02:00
Mintsuki
6bdd5dd852 mm/pmm: Check for overflow when aligning count in ext_mem_alloc 2026-03-31 15:31:50 +02:00
Mintsuki
b0569fed95 decompressor: Re-enable tinf bounds checks, CRC32, and length validation 2026-03-31 14:16:49 +02:00
Mintsuki
ca6d469dc2 lib/term: Do not call ClearScreen() on EFI fallback output init 2026-03-30 19:45:52 +02:00
Mintsuki
b29b11ce6d Reapply "lib/fb: Add preserve_screen option to skip fb_clear on init"
This reverts commit 12841527e9.
2026-03-30 19:44:19 +02:00
Mintsuki
a06652f511 Revert "lib/fb: Remove fb_clear()"
This reverts commit 75f777e7f0.
2026-03-30 19:38:21 +02:00
Mintsuki
c443a62a12 Revert "drivers/gop: Ensure SetMode is called at least once per GOP handle"
This reverts commit 1a8caa477e.
2026-03-30 17:02:13 +02:00
Mintsuki
75f777e7f0 lib/fb: Remove fb_clear() 2026-03-30 09:16:32 +02:00
Mintsuki
12841527e9 Revert "lib/fb: Add preserve_screen option to skip fb_clear on init"
This reverts commit 2e2fc63628.
2026-03-30 09:16:32 +02:00
Mintsuki
32ee2a3667 docs: Update ChangeLog and README.md for 11.1.0 v11.1.0 2026-03-25 03:47:50 +01:00
Mintsuki
dbbf8df9fc protos/limine: Coalesce contiguous memmap entries when building page tables 2026-03-25 03:31:09 +01:00
Mintsuki
598f4e6b09 bootstrap: Bump limine-protocol commit 2026-03-24 15:50:51 +01:00
Mintsuki
c486fc4a5c protos/limine: Only restrict aarch64 to base revision 6 only 2026-03-24 15:16:46 +01:00
Mintsuki
0f4f7b5bc3 Revert "protos/limine: Drop support for base revisions 0-3, require 4 on x86"
This reverts commit f0e8264e1a.
2026-03-24 15:11:35 +01:00