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
309e44b3
Commit
309e44b3
authored
Dec 25, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: switch to generic compat rt_sigqueueinfo()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
cfe0467c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
arch/powerpc/Kconfig
arch/powerpc/Kconfig
+1
-0
arch/powerpc/kernel/signal_32.c
arch/powerpc/kernel/signal_32.c
+0
-24
No files found.
arch/powerpc/Kconfig
View file @
309e44b3
...
...
@@ -145,6 +145,7 @@ config PPC
select MODULES_USE_ELF_RELA
select CLONE_BACKWARDS
select GENERIC_SIGALTSTACK
select GENERIC_COMPAT_RT_SIGQUEUEINFO
select GENERIC_COMPAT_RT_SIGPROCMASK
select GENERIC_COMPAT_RT_SIGPENDING
...
...
arch/powerpc/kernel/signal_32.c
View file @
309e44b3
...
...
@@ -688,30 +688,6 @@ int copy_siginfo_from_user32(siginfo_t *to, struct compat_siginfo __user *from)
return
0
;
}
/*
* Note: it is necessary to treat pid and sig as unsigned ints, with the
* corresponding cast to a signed int to insure that the proper conversion
* (sign extension) between the register representation of a signed int
* (msr in 32-bit mode) and the register representation of a signed int
* (msr in 64-bit mode) is performed.
*/
long
compat_sys_rt_sigqueueinfo
(
u32
pid
,
u32
sig
,
compat_siginfo_t
__user
*
uinfo
)
{
siginfo_t
info
;
int
ret
;
mm_segment_t
old_fs
=
get_fs
();
ret
=
copy_siginfo_from_user32
(
&
info
,
uinfo
);
if
(
unlikely
(
ret
))
return
ret
;
set_fs
(
KERNEL_DS
);
/* The __user pointer cast is valid becasuse of the set_fs() */
ret
=
sys_rt_sigqueueinfo
((
int
)
pid
,
(
int
)
sig
,
(
siginfo_t
__user
*
)
&
info
);
set_fs
(
old_fs
);
return
ret
;
}
#endif
/* CONFIG_PPC64 */
/*
...
...
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