Skip to content

monitor: decode faults caused by UBSAN#275

Merged
Ivan-Velickovic merged 1 commit intomainfrom
ubsan_print_monitor
Feb 5, 2025
Merged

monitor: decode faults caused by UBSAN#275
Ivan-Velickovic merged 1 commit intomainfrom
ubsan_print_monitor

Conversation

@Ivan-Velickovic
Copy link
Collaborator

In a freestanding environment on ARM64, running with LLVM's UB sanitizers will result in a brk instruction with a particular encoding that contains the reason UB was detected.

Unfortunately, on RISC-V UBSAN just emits an unimp instruction and from what I can tell there's no way to get further information as to why UB was detected.

Closes #270.

@Ivan-Velickovic Ivan-Velickovic force-pushed the ubsan_print_monitor branch 2 times, most recently from b81e7d6 to a421b92 Compare February 5, 2025 04:59
In a freestanding environment on ARM64, running with LLVM's
UB sanitizers will result in a `brk` instruction with a particular
encoding that contains the reason UB was detected.

Unfortunately, on RISC-V UBSAN just emits an unimp instruction
and from what I can tell there's no way to get further information
as to *why* UB was detected.

Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
@Ivan-Velickovic Ivan-Velickovic merged commit ffec70a into main Feb 5, 2025
11 checks passed
@Ivan-Velickovic Ivan-Velickovic deleted the ubsan_print_monitor branch February 5, 2025 05:05
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.

Print UBSAN errors in monitor

1 participant