Closed brooksdavis closed 4 years ago
FYI, cheritest_vm_notag_*
does serve as a good test for PTE_SC
. There doesn't seem to be an easy way to write a test case for PTE_LC
. Maybe a custom syscall (like we have kbounce(2)) could write a tag into a file-backed page via the direct map and then userland could try to read it?
I think this is mostly complete unless we want to add the special syscall.
I'm hoping one of the cheritest tests will capture this (the 'cheritest_vmnotag*' in particular). That should test the SC inhibited case. I'm not sure if we have a good test for LC clearing tags?