Skip to content

enumerate and resolve unhandled heap allocation errors #1201

@wjhun

Description

@wjhun

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions