Commit Graph

9 Commits

Author SHA1 Message Date
8b99158d66 vm: fix overflow in memblock do_alloc when allocating large aligned blocks
allocating a large power-of-2 block with memblock may cause the base pointer of a region to exceed the limit pointer after it has been aligned during the free region scan in do_alloc().
2023-12-24 09:37:52 +00:00
b6f8c1ccaa kernel: don't use typedef for enums or non-opaque structs 2023-04-13 11:40:52 +01:00
dd6c190720 memblock: fix returned memory region overrunning reserved memory region 2023-03-24 14:17:28 +00:00
51ad3d48fd memblock: mark bytes preceding an aligned allocation as reserved.
this prevents tiny holes of free memory appearing between
blocks of aligned allocations.
2023-02-07 15:57:18 +00:00
998f05d337 memblock: add functions to convert allocated pointers between virt/phys 2023-02-06 20:50:38 +00:00
6afb3bd10d memblock: add alignment parameter to alloc functions 2023-02-06 20:50:38 +00:00
21907010bd memblock: return NULL on virtual alloc failure 2023-02-05 10:49:59 +00:00
247bb2b530 kernel: port sandbox components 2023-02-03 20:51:23 +00:00
40f83922da sandbox: moved all sources to main kernel tree 2023-02-03 20:43:38 +00:00