Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
257ac264
K
Kernel
项目概览
openeuler
/
Kernel
12 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
257ac264
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 11
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
bdc480e3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
10 deletion
+14
-10
fs/open.c
fs/open.c
+1
-1
fs/stat.c
fs/stat.c
+12
-8
fs/super.c
fs/super.c
+1
-1
未找到文件。
fs/open.c
浏览文件 @
257ac264
...
...
@@ -174,7 +174,7 @@ SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf)
return
error
;
}
asmlinkage
long
sys_fstatfs64
(
unsigned
int
fd
,
size_t
sz
,
struct
statfs64
__user
*
buf
)
SYSCALL_DEFINE3
(
fstatfs64
,
unsigned
int
,
fd
,
size_t
,
sz
,
struct
statfs64
__user
*
,
buf
)
{
struct
file
*
file
;
struct
statfs64
tmp
;
...
...
fs/stat.c
浏览文件 @
257ac264
...
...
@@ -162,7 +162,8 @@ SYSCALL_DEFINE2(stat, char __user *, filename, struct __old_kernel_stat __user *
return
error
;
}
asmlinkage
long
sys_lstat
(
char
__user
*
filename
,
struct
__old_kernel_stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
lstat
,
char
__user
*
,
filename
,
struct
__old_kernel_stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_lstat_fd
(
AT_FDCWD
,
filename
,
&
stat
);
...
...
@@ -172,7 +173,8 @@ asmlinkage long sys_lstat(char __user * filename, struct __old_kernel_stat __use
return
error
;
}
asmlinkage
long
sys_fstat
(
unsigned
int
fd
,
struct
__old_kernel_stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
fstat
,
unsigned
int
,
fd
,
struct
__old_kernel_stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_fstat
(
fd
,
&
stat
);
...
...
@@ -235,7 +237,7 @@ static int cp_new_stat(struct kstat *stat, struct stat __user *statbuf)
return
copy_to_user
(
statbuf
,
&
tmp
,
sizeof
(
tmp
))
?
-
EFAULT
:
0
;
}
asmlinkage
long
sys_newstat
(
char
__user
*
filename
,
struct
stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
newstat
,
char
__user
*
,
filename
,
struct
stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_stat_fd
(
AT_FDCWD
,
filename
,
&
stat
);
...
...
@@ -246,7 +248,7 @@ asmlinkage long sys_newstat(char __user *filename, struct stat __user *statbuf)
return
error
;
}
asmlinkage
long
sys_newlstat
(
char
__user
*
filename
,
struct
stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
newlstat
,
char
__user
*
,
filename
,
struct
stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_lstat_fd
(
AT_FDCWD
,
filename
,
&
stat
);
...
...
@@ -280,7 +282,7 @@ asmlinkage long sys_newfstatat(int dfd, char __user *filename,
}
#endif
asmlinkage
long
sys_newfstat
(
unsigned
int
fd
,
struct
stat
__user
*
statbuf
)
SYSCALL_DEFINE2
(
newfstat
,
unsigned
int
,
fd
,
struct
stat
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_fstat
(
fd
,
&
stat
);
...
...
@@ -365,7 +367,7 @@ static long cp_new_stat64(struct kstat *stat, struct stat64 __user *statbuf)
return
copy_to_user
(
statbuf
,
&
tmp
,
sizeof
(
tmp
))
?
-
EFAULT
:
0
;
}
asmlinkage
long
sys_stat64
(
char
__user
*
filename
,
struct
stat64
__user
*
statbuf
)
SYSCALL_DEFINE2
(
stat64
,
char
__user
*
,
filename
,
struct
stat64
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_stat
(
filename
,
&
stat
);
...
...
@@ -375,7 +377,8 @@ asmlinkage long sys_stat64(char __user * filename, struct stat64 __user * statbu
return
error
;
}
asmlinkage
long
sys_lstat64
(
char
__user
*
filename
,
struct
stat64
__user
*
statbuf
)
SYSCALL_DEFINE2
(
lstat64
,
char
__user
*
,
filename
,
struct
stat64
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_lstat
(
filename
,
&
stat
);
...
...
@@ -385,7 +388,8 @@ asmlinkage long sys_lstat64(char __user * filename, struct stat64 __user * statb
return
error
;
}
asmlinkage
long
sys_fstat64
(
unsigned
long
fd
,
struct
stat64
__user
*
statbuf
)
SYSCALL_DEFINE2
(
fstat64
,
unsigned
long
,
fd
,
struct
stat64
__user
*
,
statbuf
)
{
struct
kstat
stat
;
int
error
=
vfs_fstat
(
fd
,
&
stat
);
...
...
fs/super.c
浏览文件 @
257ac264
...
...
@@ -544,7 +544,7 @@ struct super_block * user_get_super(dev_t dev)
return
NULL
;
}
asmlinkage
long
sys_ustat
(
unsigned
dev
,
struct
ustat
__user
*
ubuf
)
SYSCALL_DEFINE2
(
ustat
,
unsigned
,
dev
,
struct
ustat
__user
*
,
ubuf
)
{
struct
super_block
*
s
;
struct
ustat
tmp
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录