libsel4vka: Fix size bits in vka_untyped_retype for seL4_CapTableObject#91
libsel4vka: Fix size bits in vka_untyped_retype for seL4_CapTableObject#91astevins wants to merge 1 commit intoseL4:masterfrom
Conversation
b29e137 to
23c060c
Compare
Signed-off-by: Arya Stevinson <[email protected]>
23c060c to
4d6ea13
Compare
|
Force pushed to adhere to gitlint's commit title length requirement |
|
I think the question here is more one of what the expected behaviour of this function is -- it currently exports the meaning of @kent-mcleod do you know what the intention was for this one? For allocators it would make sense to take the size in bytes and translate to object size, but I would assume that there is plenty of other code that assumes the current behaviour (might also be relevant for number of SchedulingContext refills, I guess). |
|
Potentially replacing the |
The size bits for a untyped retype to
seL4_CapTableObjectare calculated incorrectly when usingvka_untyped_retypeseL4_SlotBitsis added once in vka:seL4_libs/libsel4vka/include/vka/capops.h
Line 130 in fcabdef
The result is that
seL4_SlotBitsis added twice, causing the UntypedRetype operation to fail with "Insufficient memory" for this simple test:A simple solution is to subtract seL4_SlotBits before calling
seL4_Untyped_Retype.