Commit Graph

25 Commits

Author SHA1 Message Date
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
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
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
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
2e2fc63628 lib/fb: Add preserve_screen option to skip fb_clear on init 2026-03-23 08:34:14 +01:00
Mintsuki
c77eb66b53 protos/linux_x86: Do not disable IOMMU due to paranoia 2026-02-20 21:58:07 +01:00
Mintsuki
db5c4fd991 sys/iommu: Disable Intel VT-d and AMD-Vi IOMMUs before kernel entry 2026-02-20 03:47:18 +01:00
Mintsuki
6bfb2bfb3f protos/linux_x86: Honour kernel_alignment field from boot protocol header 2026-02-09 13:02:39 +01:00
Mintsuki
d3a69d23f4 protos/linux_x86: Fix initrd_addr_max overflow when computing module base 2026-02-09 13:02:38 +01:00
Mintsuki
64c0f518e9 protos/linux_x86: Add overflow checks for total module size 2026-02-09 13:02:38 +01:00
Mintsuki
6d53720c62 protos/linux_x86: Convert lfb_size to 64 KiB units on BIOS path 2026-02-09 13:02:38 +01:00
Mintsuki
de74c99e58 protos/linux_x86: Use init_size from kernel header for allocation when available 2026-02-09 13:02:38 +01:00
Mintsuki
2b19abd0ce linux: Add bounds checks for kernel file reads 2026-01-13 17:37:01 +01:00
Mintsuki
4bc0ca6b31 protos/linux: Add E820 entries bounds check 2025-12-26 13:51:29 +01:00
Mintsuki
2481a3470c protos/linux: Enforce 2MiB alignment for modules for the 64-bit protocol 2025-09-21 21:25:25 +02:00
Mintsuki
e04194d3ad protos/linux: linux_direct_load() -> linux_load() 2025-09-21 21:22:12 +02:00
Mintsuki
a7e879ab3f Revert "protos/linux_x86: For the 64-bit protocol, call flush_irqs() after disabling interrupts"
This reverts commit a800f4b1c4.
2025-09-21 21:20:11 +02:00
Mintsuki
ef93a5aa69 protos/linux: Fix unused variable warning for use_64_bit_proto 2025-09-21 15:51:22 +02:00
Mintsuki
652136dc5d protos/linux: Only use the 64-bit protocol if absolutely necessary 2025-09-21 15:47:07 +02:00
Mintsuki
a800f4b1c4 protos/linux_x86: For the 64-bit protocol, call flush_irqs() after disabling interrupts
And with an invalid IDT.
2025-09-20 14:00:29 +02:00
Mintsuki
13ccc30b23 protos/linux: linux_load() -> linux_direct_load()
Additionally make some functions static and rename linux.c -> linux_x86.c
2025-09-19 22:26:35 +02:00
mintsuki
74aa228702 protos/linux: Rename files to avoid unnecessary diffs (2) 2024-06-15 21:30:37 +02:00
mintsuki
56b7a32dfc protos/linux: Rename files (1) 2024-06-12 02:07:12 +02:00