Skip to content

tool: fix child TCB cap inserted to wrong CNode #555

Merged
midnightveil merged 2 commits into
seL4:mainfrom
au-ts:cnode_fix
Jul 15, 2026
Merged

tool: fix child TCB cap inserted to wrong CNode #555
midnightveil merged 2 commits into
seL4:mainfrom
au-ts:cnode_fix

Conversation

@dreamliner787-9

Copy link
Copy Markdown
Collaborator

We recently switched to using a 2 level CSpace for cap mapping support.
During the switch there was a mistake in the code that caused a child
TCB object to be inserted into the wrong CNode.

Closes #553

We recently switched to using a 2 level CSpace for cap mapping support.
During the switch there was a mistake in the code that caused a child
TCB object to be inserted into the wrong CNode.

Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
A simple refactor that hide the different CNodes of a PD behind helper
functions to make it less error prone during development.

Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
@midnightveil
midnightveil merged commit 711eed5 into seL4:main Jul 15, 2026
12 checks passed
@midnightveil
midnightveil deleted the cnode_fix branch July 15, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parent PD's child-TCB-cap grants land in the wrong (undersized) CNode

2 participants