cap9 icon indicating copy to clipboard operation
cap9 copied to clipboard

Bug: WriteCall Fails if CapList.len == 1

Open Latrasis opened this issue 5 years ago • 0 comments

From @17451k:

Test S() should fail when trying to write to an address below its cap from the kernel-evm1/test/withoutentryproc/syscalls/write.js file is successfully failing with SysCallResponse.WRITEFAILURE, like it is supposed to do, but if we change the write capability from the incorrect (0x8001, 0) to the correct (0x8000, 0) one the test will still fail. It will succeed only if we add some other write capability to the CapArray.

It seems to be that write system calls are failing if there is only one write capability in the CapArray, whether correct or not.

Latrasis avatar Jun 10 '19 22:06 Latrasis