Skip to content

Conversation

@brooksdavis
Copy link
Contributor

In order to allow meaningful comparisons between 32- and 64-bit systems,
core_list_init hardcodes the size of pointers to be 8 bytes. This
controls the number list elements allocated for a buffer of a given
size. On a system with 128-bit pointers this results in data corruption
as the list data is written over list_head objects.

Address this by adding a POINTER_SPACE define which can be changed to
16. Update the checksums in the known_crc arrays for the run1.log and
run2.log cases.

In order to allow meaningful comparisons between 32- and 64-bit systems,
core_list_init hardcodes the size of pointers to be 8 bytes.  This
controls the number list elements allocated for a buffer of a given
size.  On a system with 128-bit pointers this results in data corruption
as the list data is written over list_head objects.

Address this by adding a POINTER_SPACE define which can be changed to
16.  Update the checksums in the known_crc arrays for the run1.log and
run2.log cases.
@brooksdavis
Copy link
Contributor Author

I don't necessarily expect this to be merged as is, but I'd like to start a discussion about how to support systems with 128-bit pointers. Our processors (http://chericpu.org) have 128-bit pointers. We have a variant for MIPS, we're working on one for RISC-V, and we've been working with Arm (who will be producing the Morello prototype architecture over the next couple years https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/cheri-morello.html).

@petertorelli petertorelli added the enhancement New feature or request label Jan 20, 2020
Base automatically changed from master to main March 5, 2021 18:43
@petertorelli petertorelli changed the base branch from main to 128b-pointer March 11, 2021 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants