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
nexedi
linux
Commits
032e9c06
Commit
032e9c06
authored
Aug 25, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use force_{sig,sigsegv}() in sparc signal handling.
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
753e80fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
24 deletions
+21
-24
arch/sparc/kernel/signal.c
arch/sparc/kernel/signal.c
+9
-12
arch/sparc64/kernel/signal.c
arch/sparc64/kernel/signal.c
+4
-4
arch/sparc64/kernel/signal32.c
arch/sparc64/kernel/signal32.c
+8
-8
No files found.
arch/sparc/kernel/signal.c
View file @
032e9c06
...
...
@@ -274,7 +274,7 @@ static inline void do_new_sigreturn (struct pt_regs *regs)
return
;
segv_and_exit:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
asmlinkage
void
do_sigreturn
(
struct
pt_regs
*
regs
)
...
...
@@ -341,7 +341,7 @@ asmlinkage void do_sigreturn(struct pt_regs *regs)
return
;
segv_and_exit:
send_sig
(
SIGSEGV
,
current
,
1
);
force_sig
(
SIGSEGV
,
current
);
}
asmlinkage
void
do_rt_sigreturn
(
struct
pt_regs
*
regs
)
...
...
@@ -401,7 +401,7 @@ asmlinkage void do_rt_sigreturn(struct pt_regs *regs)
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
return
;
segv:
send_sig
(
SIGSEGV
,
current
,
1
);
force_sig
(
SIGSEGV
,
current
);
}
/* Checks if the fp is valid */
...
...
@@ -549,7 +549,7 @@ setup_frame(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *old
sigill_and_return:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signr
,
current
);
}
...
...
@@ -663,7 +663,7 @@ new_setup_frame(struct k_sigaction *ka, struct pt_regs *regs,
sigill_and_return:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signo
,
current
);
}
static
inline
void
...
...
@@ -746,7 +746,7 @@ new_setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
sigill:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signo
,
current
);
}
/* Setup a Solaris stack frame */
...
...
@@ -876,7 +876,7 @@ setup_svr4_frame(struct sigaction *sa, unsigned long pc, unsigned long npc,
sigill_and_return:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signr
,
current
);
}
asmlinkage
int
svr4_getcontext
(
svr4_ucontext_t
__user
*
uc
,
struct
pt_regs
*
regs
)
...
...
@@ -889,7 +889,7 @@ asmlinkage int svr4_getcontext(svr4_ucontext_t __user *uc, struct pt_regs *regs)
synchronize_user_stack
();
if
(
current_thread_info
()
->
w_saved
)
goto
sigsegv_and_return
;
return
-
EFAULT
;
err
=
clear_user
(
uc
,
sizeof
(
*
uc
));
if
(
err
)
...
...
@@ -930,9 +930,6 @@ asmlinkage int svr4_getcontext(svr4_ucontext_t __user *uc, struct pt_regs *regs)
* we have already stuffed all of it with sync_user_stack
*/
return
(
err
?
-
EFAULT
:
0
);
sigsegv_and_return:
do_exit
(
SIGSEGV
);
}
/* Set the context for a svr4 application, this is Solaris way to sigreturn */
...
...
@@ -1018,7 +1015,7 @@ asmlinkage int svr4_setcontext(svr4_ucontext_t __user *c, struct pt_regs *regs)
return
(
err
?
-
EFAULT
:
0
);
sigsegv_and_return:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
static
inline
void
...
...
arch/sparc64/kernel/signal.c
View file @
032e9c06
...
...
@@ -135,7 +135,7 @@ asmlinkage void sparc64_set_context(struct pt_regs *regs)
return
;
do_sigsegv:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
asmlinkage
void
sparc64_get_context
(
struct
pt_regs
*
regs
)
...
...
@@ -226,7 +226,7 @@ asmlinkage void sparc64_get_context(struct pt_regs *regs)
return
;
do_sigsegv:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
struct
rt_signal_frame
{
...
...
@@ -439,7 +439,7 @@ void do_rt_sigreturn(struct pt_regs *regs)
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
return
;
segv:
send_sig
(
SIGSEGV
,
current
,
1
);
force_sig
(
SIGSEGV
,
current
);
}
/* Checks if the fp is valid */
...
...
@@ -565,7 +565,7 @@ setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
sigill:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signo
,
current
);
}
static
inline
void
handle_signal
(
unsigned
long
signr
,
struct
k_sigaction
*
ka
,
...
...
arch/sparc64/kernel/signal32.c
View file @
032e9c06
...
...
@@ -345,7 +345,7 @@ void do_new_sigreturn32(struct pt_regs *regs)
return
;
segv:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
asmlinkage
void
do_sigreturn32
(
struct
pt_regs
*
regs
)
...
...
@@ -415,7 +415,7 @@ asmlinkage void do_sigreturn32(struct pt_regs *regs)
return
;
segv:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
asmlinkage
void
do_rt_sigreturn32
(
struct
pt_regs
*
regs
)
...
...
@@ -507,7 +507,7 @@ asmlinkage void do_rt_sigreturn32(struct pt_regs *regs)
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
return
;
segv:
do_exit
(
SIGSEGV
);
force_sig
(
SIGSEGV
,
current
);
}
/* Checks if the fp is valid */
...
...
@@ -668,7 +668,7 @@ setup_frame32(struct sigaction *sa, struct pt_regs *regs, int signr, sigset_t *o
return
;
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signr
,
current
);
}
...
...
@@ -819,7 +819,7 @@ static void new_setup_frame32(struct k_sigaction *ka, struct pt_regs *regs,
sigill:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signo
,
current
);
}
/* Setup a Solaris stack frame */
...
...
@@ -943,7 +943,7 @@ setup_svr4_frame32(struct sigaction *sa, unsigned long pc, unsigned long npc,
return
;
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signr
,
current
);
}
asmlinkage
int
...
...
@@ -1094,7 +1094,7 @@ asmlinkage int svr4_setcontext(svr4_ucontext_t __user *c, struct pt_regs *regs)
return
-
EINTR
;
sigsegv:
do_exit
(
SIGSEGV
)
;
return
-
EFAULT
;
}
static
void
setup_rt_frame32
(
struct
k_sigaction
*
ka
,
struct
pt_regs
*
regs
,
...
...
@@ -1233,7 +1233,7 @@ static void setup_rt_frame32(struct k_sigaction *ka, struct pt_regs *regs,
sigill:
do_exit
(
SIGILL
);
sigsegv:
do_exit
(
SIGSEGV
);
force_sigsegv
(
signr
,
current
);
}
static
inline
void
handle_signal32
(
unsigned
long
signr
,
struct
k_sigaction
*
ka
,
...
...
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