Skip to content

Move struct pcb out of kernel stack. #2273

Open
@qwattash

Description

@qwattash

Currently struct pcb is allocated by stealing a chunk of the kernel stack. There are two issues in the current implementation.

  1. We are not setting bounds on struct pcb
  2. Setting bounds on struct pcb requires dealing with representability and padding.

By moving struct pcb to a separate allocation we avoid having to deal with representability issues and prevent overflow into pcb from a kernel stack pointer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions