summaryrefslogtreecommitdiff
path: root/kernel/kmalloc.c
AgeCommit message (Collapse)Author
2024-12-09mmu: Make certain allocations physical and virtual mapping linearAnton Kling
Previously it was possible for fragmentation to occur and as a result certain allocations would have a linear virtual address space but not a linear physical address space. This is bad since a lot of calls to kmalloc_align rely upon both being linear, it has now been changed such that all allocations done by kmalloc_align now guarantee this mapping holds for both virtual and physical addresses. It was due to oversight and sheer luck that this had been working for so long.
2024-11-28changesAnton Kling
2024-10-14kernel: small bug fixesAnton Kling
2024-07-08Kernel/Net: Don't use kmalloc to create send buffersAnton Kling
Current method is also really bad since it uses multiple copies when it should instead just copy to the send buffer of the network card directly. But I have other things that I want to prioritize first.
2024-07-08kmalloc: Merge headers more oftenAnton Kling
2024-07-06Kernel: Add kmalloc scanAnton Kling
This will scan for possible overflows in the program. It is a somewhat expensive operation but really useful for debugging.
2024-06-28RTL8139: Add out of memory conditionsAnton Kling
2024-06-26Kernel: Code cleanupAnton Kling
2024-06-23Kernel: Fix small out of memory issuesAnton Kling
2024-06-17Reorganize logging codeAnton Kling
2024-06-09Add UDPAnton Kling
2024-05-06kmalloc: Add debug kmallocAnton Kling
2024-04-27Kernel: Make "relist" able to dynamically resizeAnton Kling
2024-04-26Kernel: More out of memory condition checksAnton Kling
2024-04-18Kernel: Fix compiler warningsAnton Kling
2024-04-16Kernel: Improve "out of memory" error handlingAnton Kling
It can now boot with fairly low memory while not crashing and instead gracefully failing the operation. Userland still does not properly handle errors.
2024-04-15Bug fix and cleanup.Anton Kling
2024-04-12Kernel/MMU: Dellocate pagedirectory when process exits.Anton Kling
2024-04-02Kernel: Fix some memory leaksAnton Kling
2024-03-26Kernel: Improve kmalloc security and performanceAnton Kling
Fill new and freed allocations with random data unless it is allocated from kcalloc in which case it should be zero filled.
2024-03-25Random changesAnton Kling
2024-03-14random changes madeAnton Kling
2024-02-21New clang-format optionsAnton Kling
2023-11-28Meta: Apply new clang-format rules to kernelAnton Kling
2023-11-13Kernel: Remove kmalloc_eternalAnton Kling
I would like to be able to free some of those objects but I have not decided upon how that will be done yet. Even if not freeded the added complexity of having two functions does not make the extra bytes saved worth it IMO.
2023-11-13Crypto: Implement fast insecure RNG for overwritting memory areas.Anton Kling
This is mainly done to test for uninitlalized memory and find bugs faster. Therefore it does not need to be cryptographically secure or perfectly uniform. Xoshiro256++ seems like a good fit.
2023-11-10Kernel Style: Change uint*_t -> u*Anton Kling
2023-11-10Kernel/Memory: Fill new allocations with random data.Anton Kling
This should make it easier to spot uninitalized memory being used.
2023-10-31Meta: Move kernel and userland to their own folders.Anton Kling
This is to allow both the kernel and the userland to share certain header files and to make the folder structure a bit more clear.