Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Linux-Kernel
libevl
Commits
c9290307
Commit
c9290307
authored
Jun 13, 2021
by
Philippe Gerum
Browse files
tests/fault: check uaccess fault handling
Signed-off-by:
Philippe Gerum
<
rpm@xenomai.org
>
parent
d12db5d2
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/fault.c
View file @
c9290307
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment