Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
bdc480e3
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
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)
...
@@ -3243,7 +3243,7 @@ void block_sync_page(struct page *page)
* Use of bdflush() is deprecated and will be removed in a future kernel.
* Use of bdflush() is deprecated and will be removed in a future kernel.
* The `pdflush' kernel threads fully replace bdflush daemons and this call.
* 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
;
static
int
msg_count
;
...
...
fs/namespace.c
浏览文件 @
bdc480e3
...
@@ -1128,7 +1128,7 @@ static int do_umount(struct vfsmount *mnt, int flags)
...
@@ -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
* 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
;
struct
path
path
;
int
retval
;
int
retval
;
...
@@ -1160,7 +1160,7 @@ asmlinkage long sys_umount(char __user * name, int flags)
...
@@ -1160,7 +1160,7 @@ asmlinkage long sys_umount(char __user * name, int flags)
/*
/*
* The 2.0 compatible umount. No 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
);
return
sys_umount
(
name
,
0
);
}
}
...
@@ -2045,9 +2045,8 @@ struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns,
...
@@ -2045,9 +2045,8 @@ struct mnt_namespace *copy_mnt_ns(unsigned long flags, struct mnt_namespace *ns,
return
new_ns
;
return
new_ns
;
}
}
asmlinkage
long
sys_mount
(
char
__user
*
dev_name
,
char
__user
*
dir_name
,
SYSCALL_DEFINE5
(
mount
,
char
__user
*
,
dev_name
,
char
__user
*
,
dir_name
,
char
__user
*
type
,
unsigned
long
flags
,
char
__user
*
,
type
,
unsigned
long
,
flags
,
void
__user
*
,
data
)
void
__user
*
data
)
{
{
int
retval
;
int
retval
;
unsigned
long
data_page
;
unsigned
long
data_page
;
...
...
fs/open.c
浏览文件 @
bdc480e3
...
@@ -122,7 +122,7 @@ static int vfs_statfs64(struct dentry *dentry, struct statfs64 *buf)
...
@@ -122,7 +122,7 @@ static int vfs_statfs64(struct dentry *dentry, struct statfs64 *buf)
return
0
;
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
;
struct
path
path
;
int
error
;
int
error
;
...
@@ -138,8 +138,7 @@ asmlinkage long sys_statfs(const char __user *pathname, struct statfs __user * b
...
@@ -138,8 +138,7 @@ asmlinkage long sys_statfs(const char __user *pathname, struct statfs __user * b
return
error
;
return
error
;
}
}
SYSCALL_DEFINE3
(
statfs64
,
const
char
__user
*
,
pathname
,
size_t
,
sz
,
struct
statfs64
__user
*
,
buf
)
asmlinkage
long
sys_statfs64
(
const
char
__user
*
pathname
,
size_t
sz
,
struct
statfs64
__user
*
buf
)
{
{
struct
path
path
;
struct
path
path
;
long
error
;
long
error
;
...
@@ -157,8 +156,7 @@ asmlinkage long sys_statfs64(const char __user *pathname, size_t sz, struct stat
...
@@ -157,8 +156,7 @@ asmlinkage long sys_statfs64(const char __user *pathname, size_t sz, struct stat
return
error
;
return
error
;
}
}
SYSCALL_DEFINE2
(
fstatfs
,
unsigned
int
,
fd
,
struct
statfs
__user
*
,
buf
)
asmlinkage
long
sys_fstatfs
(
unsigned
int
fd
,
struct
statfs
__user
*
buf
)
{
{
struct
file
*
file
;
struct
file
*
file
;
struct
statfs
tmp
;
struct
statfs
tmp
;
...
@@ -289,7 +287,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
...
@@ -289,7 +287,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
return
error
;
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 */
/* on 32-bit boxen it will cut the range 2^31--2^32-1 off */
return
do_sys_truncate
(
path
,
(
long
)
length
);
return
do_sys_truncate
(
path
,
(
long
)
length
);
...
@@ -341,7 +339,7 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
...
@@ -341,7 +339,7 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
return
error
;
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
);
long
ret
=
do_sys_ftruncate
(
fd
,
length
,
1
);
/* avoid REGPARM breakage on x86: */
/* 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
...
@@ -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
;
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
;
struct
kstat
stat
;
int
error
=
vfs_stat_fd
(
AT_FDCWD
,
filename
,
&
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录