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
d74f0f47
Commit
d74f0f47
authored
Sep 04, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: switch to {get,put}_compat_sigset()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3968cf62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
21 deletions
+3
-21
arch/parisc/kernel/signal.c
arch/parisc/kernel/signal.c
+3
-6
arch/parisc/kernel/signal32.c
arch/parisc/kernel/signal32.c
+0
-13
arch/parisc/kernel/signal32.h
arch/parisc/kernel/signal32.h
+0
-2
No files found.
arch/parisc/kernel/signal.c
View file @
d74f0f47
...
...
@@ -92,7 +92,6 @@ sys_rt_sigreturn(struct pt_regs *regs, int in_syscall)
unsigned
long
usp
=
(
regs
->
gr
[
30
]
&
~
(
0x01UL
));
unsigned
long
sigframe_size
=
PARISC_RT_SIGFRAME_SIZE
;
#ifdef CONFIG_64BIT
compat_sigset_t
compat_set
;
struct
compat_rt_sigframe
__user
*
compat_frame
;
if
(
is_compat_task
())
...
...
@@ -113,9 +112,8 @@ sys_rt_sigreturn(struct pt_regs *regs, int in_syscall)
if
(
is_compat_task
())
{
DBG
(
2
,
"sys_rt_sigreturn: ELF32 process.
\n
"
);
if
(
__copy_from_user
(
&
compat_set
,
&
compat_frame
->
uc
.
uc_sigmask
,
sizeof
(
compat_set
)
))
if
(
get_compat_sigset
(
&
set
,
&
compat_frame
->
uc
.
uc_sigmask
))
goto
give_sigsegv
;
sigset_32to64
(
&
set
,
&
compat_set
);
}
else
#endif
{
...
...
@@ -237,7 +235,6 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs,
int
err
=
0
;
#ifdef CONFIG_64BIT
struct
compat_rt_sigframe
__user
*
compat_frame
;
compat_sigset_t
compat_set
;
#endif
usp
=
(
regs
->
gr
[
30
]
&
~
(
0x01UL
));
...
...
@@ -260,8 +257,8 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs,
DBG
(
1
,
"setup_rt_frame: frame->uc.uc_mcontext = 0x%p
\n
"
,
&
compat_frame
->
uc
.
uc_mcontext
);
err
|=
setup_sigcontext32
(
&
compat_frame
->
uc
.
uc_mcontext
,
&
compat_frame
->
regs
,
regs
,
in_syscall
);
sigset_64to32
(
&
compat_set
,
set
);
err
|=
__copy_to_user
(
&
compat_frame
->
uc
.
uc_sigmask
,
&
compat_set
,
sizeof
(
compat_se
t
));
err
|=
put_compat_sigset
(
&
compat_frame
->
uc
.
uc_sigmask
,
set
,
sizeof
(
compat_sigset_
t
));
}
else
#endif
{
...
...
arch/parisc/kernel/signal32.c
View file @
d74f0f47
...
...
@@ -46,19 +46,6 @@
#define DBG(LEVEL, ...)
#endif
inline
void
sigset_32to64
(
sigset_t
*
s64
,
compat_sigset_t
*
s32
)
{
s64
->
sig
[
0
]
=
s32
->
sig
[
0
]
|
((
unsigned
long
)
s32
->
sig
[
1
]
<<
32
);
}
inline
void
sigset_64to32
(
compat_sigset_t
*
s32
,
sigset_t
*
s64
)
{
s32
->
sig
[
0
]
=
s64
->
sig
[
0
]
&
0xffffffffUL
;
s32
->
sig
[
1
]
=
(
s64
->
sig
[
0
]
>>
32
)
&
0xffffffffUL
;
}
long
restore_sigcontext32
(
struct
compat_sigcontext
__user
*
sc
,
struct
compat_regfile
__user
*
rf
,
struct
pt_regs
*
regs
)
...
...
arch/parisc/kernel/signal32.h
View file @
d74f0f47
...
...
@@ -79,8 +79,6 @@ struct compat_rt_sigframe {
#define FUNCTIONCALLFRAME32 48
#define PARISC_RT_SIGFRAME_SIZE32 (((sizeof(struct compat_rt_sigframe) + FUNCTIONCALLFRAME32) + SIGFRAME32) & -SIGFRAME32)
void
sigset_32to64
(
sigset_t
*
s64
,
compat_sigset_t
*
s32
);
void
sigset_64to32
(
compat_sigset_t
*
s32
,
sigset_t
*
s64
);
long
restore_sigcontext32
(
struct
compat_sigcontext
__user
*
sc
,
struct
compat_regfile
__user
*
rf
,
struct
pt_regs
*
regs
);
...
...
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