-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
Description
There are numerous areas in the kernel where a heap allocation failure is being silently ignored, merely asserted against or otherwise mishandled. Assertions may suffice for allocations on initialization (where system bringup would otherwise be impossible), but allocation failures which may reasonably happen during runtime must be addressed.
See, for example, #1199; all the various calls to these vector functions should now check for success.
This is an open-ended ticket - we can enumerate the cases here which may have many instances.
Review:
-
calls to vector_set
-
calls to buffer_extend
-
calls to extend_total
-
calls to allocate, allocate_u64 and allocate_zero