Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c4ea37c2
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看板
提交
c4ea37c2
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 26
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
d5460c99
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
23 deletion
+19
-23
drivers/pci/syscall.c
drivers/pci/syscall.c
+4
-8
ipc/mqueue.c
ipc/mqueue.c
+11
-11
kernel/sys.c
kernel/sys.c
+2
-2
mm/swapfile.c
mm/swapfile.c
+2
-2
未找到文件。
drivers/pci/syscall.c
浏览文件 @
c4ea37c2
...
...
@@ -14,10 +14,8 @@
#include <asm/uaccess.h>
#include "pci.h"
asmlinkage
long
sys_pciconfig_read
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
off
,
unsigned
long
len
,
void
__user
*
buf
)
SYSCALL_DEFINE5
(
pciconfig_read
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
{
struct
pci_dev
*
dev
;
u8
byte
;
...
...
@@ -86,10 +84,8 @@ sys_pciconfig_read(unsigned long bus, unsigned long dfn,
return
err
;
}
asmlinkage
long
sys_pciconfig_write
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
off
,
unsigned
long
len
,
void
__user
*
buf
)
SYSCALL_DEFINE5
(
pciconfig_write
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
{
struct
pci_dev
*
dev
;
u8
byte
;
...
...
ipc/mqueue.c
浏览文件 @
c4ea37c2
...
...
@@ -814,9 +814,9 @@ static inline void pipelined_receive(struct mqueue_inode_info *info)
sender
->
state
=
STATE_READY
;
}
asmlinkage
long
sys_mq_timedsend
(
mqd_t
mqdes
,
const
char
__user
*
u_msg_ptr
,
size_t
msg_len
,
unsigned
int
msg_prio
,
const
struct
timespec
__user
*
u_abs_timeout
)
SYSCALL_DEFINE5
(
mq_timedsend
,
mqd_t
,
mqdes
,
const
char
__user
*
,
u_msg_ptr
,
size_t
,
msg_len
,
unsigned
int
,
msg_prio
,
const
struct
timespec
__user
*
,
u_abs_timeout
)
{
struct
file
*
filp
;
struct
inode
*
inode
;
...
...
@@ -907,9 +907,9 @@ asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *u_msg_ptr,
return
ret
;
}
asmlinkage
long
sys_mq_timedreceive
(
mqd_t
mqdes
,
char
__user
*
u_msg_ptr
,
size_t
msg_len
,
unsigned
int
__user
*
u_msg_prio
,
const
struct
timespec
__user
*
u_abs_timeout
)
SYSCALL_DEFINE5
(
mq_timedreceive
,
mqd_t
,
mqdes
,
char
__user
*
,
u_msg_ptr
,
size_t
,
msg_len
,
unsigned
int
__user
*
,
u_msg_prio
,
const
struct
timespec
__user
*
,
u_abs_timeout
)
{
long
timeout
;
ssize_t
ret
;
...
...
@@ -997,8 +997,8 @@ asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *u_msg_ptr,
* and he isn't currently owner of notification, will be silently discarded.
* It isn't explicitly defined in the POSIX.
*/
asmlinkage
long
sys_mq_notify
(
mqd_t
mqdes
,
const
struct
sigevent
__user
*
u_notification
)
SYSCALL_DEFINE2
(
mq_notify
,
mqd_t
,
mqdes
,
const
struct
sigevent
__user
*
,
u_notification
)
{
int
ret
;
struct
file
*
filp
;
...
...
@@ -1123,9 +1123,9 @@ asmlinkage long sys_mq_notify(mqd_t mqdes,
return
ret
;
}
asmlinkage
long
sys_mq_getsetattr
(
mqd_t
mqdes
,
const
struct
mq_attr
__user
*
u_mqstat
,
struct
mq_attr
__user
*
u_omqstat
)
SYSCALL_DEFINE3
(
mq_getsetattr
,
mqd_t
,
mqdes
,
const
struct
mq_attr
__user
*
,
u_mqstat
,
struct
mq_attr
__user
*
,
u_omqstat
)
{
int
ret
;
struct
mq_attr
mqstat
,
omqstat
;
...
...
kernel/sys.c
浏览文件 @
c4ea37c2
...
...
@@ -1703,8 +1703,8 @@ SYSCALL_DEFINE1(umask, int, mask)
return
mask
;
}
asmlinkage
long
sys_prctl
(
int
option
,
unsigned
long
arg2
,
unsigned
long
arg3
,
unsigned
long
arg4
,
unsigned
long
arg5
)
SYSCALL_DEFINE5
(
prctl
,
int
,
option
,
unsigned
long
,
arg2
,
unsigned
long
,
arg3
,
unsigned
long
,
arg4
,
unsigned
long
,
arg5
)
{
struct
task_struct
*
me
=
current
;
unsigned
char
comm
[
sizeof
(
me
->
comm
)];
...
...
mm/swapfile.c
浏览文件 @
c4ea37c2
...
...
@@ -1377,7 +1377,7 @@ static int setup_swap_extents(struct swap_info_struct *sis, sector_t *span)
return
ret
;
}
asmlinkage
long
sys_swapoff
(
const
char
__user
*
specialfile
)
SYSCALL_DEFINE1
(
swapoff
,
const
char
__user
*
,
specialfile
)
{
struct
swap_info_struct
*
p
=
NULL
;
unsigned
short
*
swap_map
;
...
...
@@ -1633,7 +1633,7 @@ late_initcall(max_swapfiles_check);
*
* The swapon system call
*/
asmlinkage
long
sys_swapon
(
const
char
__user
*
specialfile
,
int
swap_flags
)
SYSCALL_DEFINE2
(
swapon
,
const
char
__user
*
,
specialfile
,
int
,
swap_flags
)
{
struct
swap_info_struct
*
p
;
char
*
name
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录