Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
afd3f96d
Commit
afd3f96d
authored
Nov 20, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
score: do_sigaltstack() expects a userland pointer...
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
9dc87c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
arch/score/kernel/signal.c
arch/score/kernel/signal.c
+2
-5
No files found.
arch/score/kernel/signal.c
View file @
afd3f96d
...
...
@@ -148,7 +148,6 @@ score_rt_sigreturn(struct pt_regs *regs)
{
struct
rt_sigframe
__user
*
frame
;
sigset_t
set
;
stack_t
st
;
int
sig
;
/* Always make any pending restarted system calls return -EINTR */
...
...
@@ -168,12 +167,10 @@ score_rt_sigreturn(struct pt_regs *regs)
else
if
(
sig
)
force_sig
(
sig
,
current
);
if
(
__copy_from_user
(
&
st
,
&
frame
->
rs_uc
.
uc_stack
,
sizeof
(
st
)))
goto
badframe
;
/* It is more difficult to avoid calling this function than to
call it and ignore errors. */
do_sigaltstack
((
stack_t
__user
*
)
&
st
,
NULL
,
regs
->
regs
[
0
]);
if
(
do_sigaltstack
(
&
frame
->
rs_uc
.
uc_stack
,
NULL
,
regs
->
regs
[
0
])
==
-
EFAULT
)
goto
badframe
;
regs
->
is_syscall
=
0
;
__asm__
__volatile__
(
...
...
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