Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
bdc480e3
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bdc480e3
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 10
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
a5f8fa9e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
14 deletion
+11
-14
fs/buffer.c
fs/buffer.c
+1
-1
fs/namespace.c
fs/namespace.c
+4
-5
fs/open.c
fs/open.c
+5
-7
fs/stat.c
fs/stat.c
+1
-1
未找到文件。
fs/buffer.c
浏览文件 @
bdc480e3
...
...
@@ -3243,7 +3243,7 @@ void block_sync_page(struct page *page)
* Use of bdflush() is deprecated and will be removed in a future kernel.
* The `pdflush' kernel threads fully replace bdflush daemons and this call.
*/
asmlinkage
long
sys_bdflush
(
int
func
,
long
data
)
SYSCALL_DEFINE2
(
bdflush
,
int
,
func
,
long
,
data
)
{
static
int
msg_count
;
...
...
fs/namespace.c
浏览文件 @
bdc480e3
...
...
@@ -1128,7 +1128,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
* unixes. Our API is identical to OSF/1 to avoid making a mess of AMD
*/
asmlinkage
long
sys_umount
(
char
__user
*
name
,
int
flags
)
SYSCALL_DEFINE2
(
umount
,
char
__user
*
,
name
,
int
,
flags
)
{
struct
path
path
;
int
retval
;
...
...
@@ -1160,7 +1160,7 @@ asmlinkage long sys_umount(char __user * name, int flags)
/*
* The 2.0 compatible umount. No flags.
*/
asmlinkage
long
sys_oldumount
(
char
__user
*
name
)
SYSCALL_DEFINE1
(
oldumount
,
char
__user
*
,
name
)
{
return
sys_umount
(
name
,
0
);
}
...
...
@@ -2045,9 +2045,8 @@ struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns,
return
new_ns
;
}
asmlinkage
long
sys_mount
(
char
__user
*
dev_name
,
char
__user
*
dir_name
,
char
__user
*
type
,
unsigned
long
flags
,
void
__user
*
data
)
SYSCALL_DEFINE5
(
mount
,
char
__user
*
,
dev_name
,
char
__user
*
,
dir_name
,
char
__user
*
,
type
,
unsigned
long
,
flags
,
void
__user
*
,
data
)
{
int
retval
;
unsigned
long
data_page
;
...
...
fs/open.c
浏览文件 @
bdc480e3
...
...
@@ -122,7 +122,7 @@ static int vfs_statfs64(struct dentry *dentry, struct statfs64 *buf)
return
0
;
}
asmlinkage
long
sys_statfs
(
const
char
__user
*
pathname
,
struct
statfs
__user
*
buf
)
SYSCALL_DEFINE2
(
statfs
,
const
char
__user
*
,
pathname
,
struct
statfs
__user
*
,
buf
)
{
struct
path
path
;
int
error
;
...
...
@@ -138,8 +138,7 @@ asmlinkage long sys_statfs(const char __user *pathname, struct statfs __user * b
return
error
;
}
asmlinkage
long
sys_statfs64
(
const
char
__user
*
pathname
,
size_t
sz
,
struct
statfs64
__user
*
buf
)
SYSCALL_DEFINE3
(
statfs64
,
const
char
__user
*
,
pathname
,
size_t
,
sz
,
struct
statfs64
__user
*
,
buf
)
{
struct
path
path
;
long
error
;
...
...
@@ -157,8 +156,7 @@ asmlinkage long sys_statfs64(const char __user *pathname, size_t sz, struct stat
return
error
;
}
asmlinkage
long
sys_fstatfs
(
unsigned
int
fd
,
struct
statfs
__user
*
buf
)
SYSCALL_DEFINE2
(
fstatfs
,
unsigned
int
,
fd
,
struct
statfs
__user
*
,
buf
)
{
struct
file
*
file
;
struct
statfs
tmp
;
...
...
@@ -289,7 +287,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
return
error
;
}
asmlinkage
long
sys_truncate
(
const
char
__user
*
path
,
unsigned
long
length
)
SYSCALL_DEFINE2
(
truncate
,
const
char
__user
*
,
path
,
unsigned
long
,
length
)
{
/* on 32-bit boxen it will cut the range 2^31--2^32-1 off */
return
do_sys_truncate
(
path
,
(
long
)
length
);
...
...
@@ -341,7 +339,7 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
return
error
;
}
asmlinkage
long
sys_ftruncate
(
unsigned
int
fd
,
unsigned
long
length
)
SYSCALL_DEFINE2
(
ftruncate
,
unsigned
int
,
fd
,
unsigned
long
,
length
)
{
long
ret
=
do_sys_ftruncate
(
fd
,
length
,
1
);
/* avoid REGPARM breakage on x86: */
...
...
fs/stat.c
浏览文件 @
bdc480e3
...
...
@@ -152,7 +152,7 @@ static int cp_old_stat(struct kstat *stat, struct __old_kernel_stat __user * sta
return
copy_to_user
(
statbuf
,
&
tmp
,
sizeof
(
tmp
))
?
-
EFAULT
:
0
;
}
asmlinkage
long
sys_stat
(
char
__user
*
filename
,
struct
__old_kernel_stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
stat
,
char
__user
*
,
filename
,
struct
__old_kernel_stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_stat_fd
(
AT_FDCWD
,
filename
,
&
stat
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录