Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
08cca5ac
Commit
08cca5ac
authored
Nov 19, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a couple of buglets in the signal frame merge.
parent
fd3f9c88
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
arch/um/kernel/frame_kern.c
arch/um/kernel/frame_kern.c
+3
-11
arch/um/os-Linux/process.c
arch/um/os-Linux/process.c
+2
-0
No files found.
arch/um/kernel/frame_kern.c
View file @
08cca5ac
...
...
@@ -25,15 +25,6 @@ static int copy_restorer(void (*restorer)(void), unsigned long start,
sizeof
(
restorer
)));
}
static
int
copy_sc_to_user
(
void
*
to
,
struct
pt_regs
*
from
)
{
return
(
CHOOSE_MODE
(
copy_sc_to_user_tt
(
to
,
from
->
regs
.
mode
.
tt
,
&
signal_frame_sc_sr
.
arch
),
copy_sc_to_user_skas
(
to
,
&
from
->
regs
,
current
->
thread
.
cr2
,
current
->
thread
.
err
)));
}
int
setup_signal_stack_si
(
unsigned
long
stack_top
,
int
sig
,
unsigned
long
handler
,
void
(
*
restorer
)(
void
),
struct
pt_regs
*
regs
,
siginfo_t
*
info
,
...
...
@@ -52,7 +43,8 @@ int setup_signal_stack_si(unsigned long stack_top, int sig,
if
(
restorer
==
NULL
)
panic
(
"setup_signal_stack_si - no restorer"
);
if
(
copy_sc_to_user
((
void
*
)
sc
,
regs
)
||
if
(
copy_sc_to_user
((
void
*
)
sc
,
regs
->
regs
.
sc
,
&
signal_frame_sc
.
arch
)
||
copy_to_user
((
void
*
)
start
,
signal_frame_si
.
common
.
data
,
signal_frame_si
.
common
.
len
)
||
copy_to_user
((
void
*
)
(
start
+
signal_frame_si
.
common
.
sig_index
),
...
...
@@ -94,7 +86,7 @@ int setup_signal_stack_sc(unsigned long stack_top, int sig,
if
(
copy_to_user
((
void
*
)
start
,
frame
->
data
,
frame
->
len
)
||
copy_to_user
((
void
*
)
(
start
+
frame
->
sig_index
),
&
sig
,
sizeof
(
sig
))
||
copy_sc_to_user
(
user_sc
,
regs
)
||
copy_sc_to_user
(
user_sc
,
regs
->
regs
.
sc
,
&
signal_frame_sc
.
arch
)
||
copy_to_user
(
sc_sigmask
(
user_sc
),
mask
,
sizeof
(
mask
->
sig
[
0
]))
||
copy_to_user
((
void
*
)
sigs
,
&
mask
->
sig
[
1
],
sig_size
)
||
copy_restorer
(
restorer
,
start
,
frame
->
sr_index
,
frame
->
sr_relative
))
...
...
arch/um/os-Linux/process.c
View file @
08cca5ac
...
...
@@ -7,6 +7,8 @@
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include "os.h"
#include "user.h"
...
...
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