Skip to content

[CI] Resolve mask_ptr.c for Fulminate#537

Open
ZippeyKeys12 wants to merge 1 commit intorems-project:mainfrom
ZippeyKeys12:reclassify-mask-ptr
Open

[CI] Resolve mask_ptr.c for Fulminate#537
ZippeyKeys12 wants to merge 1 commit intorems-project:mainfrom
ZippeyKeys12:reclassify-mask-ptr

Conversation

@ZippeyKeys12
Copy link
Copy Markdown
Collaborator

Currently mask_ptr.c is marked as BUGGY in the Fulminate CI. However, Fulminate runs fine on it.

It fails because of main using a stack pointer which is doesn't satisfy the stricter alignment precondition.
However, main is trusted, so the file passes CN's CI, but fails Fulminate's.


We resolve this oddity by having two files, mask_ptr.c and mask_ptr.error.c.

The first uses cn_aligned_alloc to produce a pointer with the increased alignment.
This allows the proof to go through for main as well.

The second uses pointer arithmetic to create a pointer that always violates the increased alignment requirement.
Since we removed trusted from main, this causes both the proof and Fulminate to fail.

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.

1 participant