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
74008b36
Commit
74008b36
authored
Feb 23, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whack-a-mole: there's no point doing set_fs(USER_DS) in sigframe setup
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a555ad45
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
21 deletions
+0
-21
arch/frv/kernel/signal.c
arch/frv/kernel/signal.c
+0
-4
arch/m32r/kernel/signal.c
arch/m32r/kernel/signal.c
+0
-2
arch/microblaze/kernel/signal.c
arch/microblaze/kernel/signal.c
+0
-2
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_32.c
+0
-4
arch/sh/kernel/signal_64.c
arch/sh/kernel/signal_64.c
+0
-4
arch/xtensa/kernel/signal.c
arch/xtensa/kernel/signal.c
+0
-5
No files found.
arch/frv/kernel/signal.c
View file @
74008b36
...
...
@@ -176,8 +176,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set)
struct
sigframe
__user
*
frame
;
int
rsig
,
sig
=
ksig
->
sig
;
set_fs
(
USER_DS
);
frame
=
get_sigframe
(
ksig
,
sizeof
(
*
frame
));
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
...
...
@@ -257,8 +255,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set)
struct
rt_sigframe
__user
*
frame
;
int
rsig
,
sig
=
ksig
->
sig
;
set_fs
(
USER_DS
);
frame
=
get_sigframe
(
ksig
,
sizeof
(
*
frame
));
if
(
!
access_ok
(
VERIFY_WRITE
,
frame
,
sizeof
(
*
frame
)))
...
...
arch/m32r/kernel/signal.c
View file @
74008b36
...
...
@@ -214,8 +214,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
regs
->
r2
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
bpc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
set_fs
(
USER_DS
);
#if DEBUG_SIG
printk
(
"SIG deliver (%s:%d): sp=%p pc=%p
\n
"
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
);
...
...
arch/microblaze/kernel/signal.c
View file @
74008b36
...
...
@@ -236,8 +236,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
/* Offset to handle microblaze rtid r14, 0 */
regs
->
pc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
set_fs
(
USER_DS
);
#ifdef DEBUG_SIG
pr_info
(
"SIG deliver (%s:%d): sp=%p pc=%08lx
\n
"
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
);
...
...
arch/sh/kernel/signal_32.c
View file @
74008b36
...
...
@@ -329,8 +329,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set,
if
(
err
)
return
-
EFAULT
;
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx
\n
"
,
current
->
comm
,
task_pid_nr
(
current
),
frame
,
regs
->
pc
,
regs
->
pr
);
...
...
@@ -408,8 +406,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
if
(
err
)
return
-
EFAULT
;
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx
\n
"
,
current
->
comm
,
task_pid_nr
(
current
),
frame
,
regs
->
pc
,
regs
->
pr
);
...
...
arch/sh/kernel/signal_64.c
View file @
74008b36
...
...
@@ -457,8 +457,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs
regs
->
pc
=
neff_sign_extend
((
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
);
set_fs
(
USER_DS
);
/* Broken %016Lx */
pr_debug
(
"SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx
\n
"
,
signal
,
current
->
comm
,
current
->
pid
,
frame
,
...
...
@@ -547,8 +545,6 @@ static int setup_rt_frame(struct ksignal *kig, sigset_t *set,
regs
->
regs
[
REG_ARG3
]
=
(
unsigned
long
long
)(
unsigned
long
)(
signed
long
)
&
frame
->
uc
.
uc_mcontext
;
regs
->
pc
=
neff_sign_extend
((
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
);
set_fs
(
USER_DS
);
pr_debug
(
"SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx
\n
"
,
signal
,
current
->
comm
,
current
->
pid
,
frame
,
regs
->
pc
>>
32
,
regs
->
pc
&
0xffffffff
,
...
...
arch/xtensa/kernel/signal.c
View file @
74008b36
...
...
@@ -405,11 +405,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set,
regs
->
areg
[
8
]
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
threadptr
=
tp
;
/* Set access mode to USER_DS. Nomenclature is outdated, but
* functionality is used in uaccess.h
*/
set_fs
(
USER_DS
);
#if DEBUG_SIG
printk
(
"SIG rt deliver (%s:%d): signal=%d sp=%p pc=%08x
\n
"
,
current
->
comm
,
current
->
pid
,
signal
,
frame
,
regs
->
pc
);
...
...
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