Commit c9290307 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

tests/fault: check uaccess fault handling

Signed-off-by: default avatarPhilippe Gerum <>
parent d12db5d2
......@@ -47,6 +47,14 @@ int main(int argc, char *argv[])
SCHED_FIFO, &param) == 0);
__Tcall_assert(tfd, evl_attach_self("fault:%d", getpid()));
* Make the kernel fault on behalf of us, passing a b0rken
* pointer.
evl_get_state(tfd, (struct evl_thread_state *)-1L);
/* Next, fault from user space directly. */
expected_sigs = 1 << (SIGSEGV-1);
if (!setjmp(recover)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment