Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
a5f8fa9e
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a5f8fa9e
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 09
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
17da2bd9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
16 deletion
+11
-16
fs/sync.c
fs/sync.c
+3
-3
kernel/signal.c
kernel/signal.c
+8
-13
未找到文件。
fs/sync.c
浏览文件 @
a5f8fa9e
...
...
@@ -36,7 +36,7 @@ static void do_sync(unsigned long wait)
laptop_sync_completion
();
}
asmlinkage
long
sys_sync
(
void
)
SYSCALL_DEFINE0
(
sync
)
{
do_sync
(
1
);
return
0
;
...
...
@@ -144,12 +144,12 @@ static int do_fsync(unsigned int fd, int datasync)
return
ret
;
}
asmlinkage
long
sys_fsync
(
unsigned
int
fd
)
SYSCALL_DEFINE1
(
fsync
,
unsigned
int
,
fd
)
{
return
do_fsync
(
fd
,
0
);
}
asmlinkage
long
sys_fdatasync
(
unsigned
int
fd
)
SYSCALL_DEFINE1
(
fdatasync
,
unsigned
int
,
fd
)
{
return
do_fsync
(
fd
,
1
);
}
...
...
kernel/signal.c
浏览文件 @
a5f8fa9e
...
...
@@ -2279,7 +2279,7 @@ static int do_tkill(pid_t tgid, pid_t pid, int sig)
* exists but it's not belonging to the target process anymore. This
* method solves the problem of threads exiting and PIDs getting reused.
*/
asmlinkage
long
sys_tgkill
(
pid_t
tgid
,
pid_t
pid
,
int
sig
)
SYSCALL_DEFINE3
(
tgkill
,
pid_t
,
tgid
,
pid_t
,
pid
,
int
,
sig
)
{
/* This is only valid for single tasks */
if
(
pid
<=
0
||
tgid
<=
0
)
...
...
@@ -2291,8 +2291,7 @@ asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig)
/*
* Send a signal to only one task, even if it's a CLONE_THREAD task.
*/
asmlinkage
long
sys_tkill
(
pid_t
pid
,
int
sig
)
SYSCALL_DEFINE2
(
tkill
,
pid_t
,
pid
,
int
,
sig
)
{
/* This is only valid for single tasks */
if
(
pid
<=
0
)
...
...
@@ -2301,8 +2300,8 @@ sys_tkill(pid_t pid, int sig)
return
do_tkill
(
0
,
pid
,
sig
);
}
asmlinkage
long
sys_rt_sigqueueinfo
(
pid_t
pid
,
int
sig
,
siginfo_t
__user
*
uinfo
)
SYSCALL_DEFINE3
(
rt_sigqueueinfo
,
pid_t
,
pid
,
int
,
sig
,
siginfo_t
__user
*
,
uinfo
)
{
siginfo_t
info
;
...
...
@@ -2526,15 +2525,13 @@ sys_rt_sigaction(int sig,
/*
* For backwards compatibility. Functionality superseded by sigprocmask.
*/
asmlinkage
long
sys_sgetmask
(
void
)
SYSCALL_DEFINE0
(
sgetmask
)
{
/* SMP safe */
return
current
->
blocked
.
sig
[
0
];
}
asmlinkage
long
sys_ssetmask
(
int
newmask
)
SYSCALL_DEFINE1
(
ssetmask
,
int
,
newmask
)
{
int
old
;
...
...
@@ -2554,8 +2551,7 @@ sys_ssetmask(int newmask)
/*
* For backwards compatibility. Functionality superseded by sigaction.
*/
asmlinkage
long
sys_signal
(
int
sig
,
__sighandler_t
handler
)
SYSCALL_DEFINE2
(
signal
,
int
,
sig
,
__sighandler_t
,
handler
)
{
struct
k_sigaction
new_sa
,
old_sa
;
int
ret
;
...
...
@@ -2572,8 +2568,7 @@ sys_signal(int sig, __sighandler_t handler)
#ifdef __ARCH_WANT_SYS_PAUSE
asmlinkage
long
sys_pause
(
void
)
SYSCALL_DEFINE0
(
pause
)
{
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录