Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
58fd3aa2
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看板
提交
58fd3aa2
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 01
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
6673e0c3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
13 deletion
+13
-13
kernel/hrtimer.c
kernel/hrtimer.c
+2
-2
kernel/sys.c
kernel/sys.c
+1
-1
kernel/time.c
kernel/time.c
+7
-7
kernel/timer.c
kernel/timer.c
+3
-3
未找到文件。
kernel/hrtimer.c
浏览文件 @
58fd3aa2
...
@@ -1467,8 +1467,8 @@ long hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp,
...
@@ -1467,8 +1467,8 @@ long hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp,
return
ret
;
return
ret
;
}
}
asmlinkage
long
SYSCALL_DEFINE2
(
nanosleep
,
struct
timespec
__user
*
,
rqtp
,
sys_nanosleep
(
struct
timespec
__user
*
rqtp
,
struct
timespec
__user
*
rmtp
)
struct
timespec
__user
*
,
rmtp
)
{
{
struct
timespec
tu
;
struct
timespec
tu
;
...
...
kernel/sys.c
浏览文件 @
58fd3aa2
...
@@ -919,7 +919,7 @@ void do_sys_times(struct tms *tms)
...
@@ -919,7 +919,7 @@ void do_sys_times(struct tms *tms)
tms
->
tms_cstime
=
cputime_to_clock_t
(
cstime
);
tms
->
tms_cstime
=
cputime_to_clock_t
(
cstime
);
}
}
asmlinkage
long
sys_times
(
struct
tms
__user
*
tbuf
)
SYSCALL_DEFINE1
(
times
,
struct
tms
__user
*
,
tbuf
)
{
{
if
(
tbuf
)
{
if
(
tbuf
)
{
struct
tms
tmp
;
struct
tms
tmp
;
...
...
kernel/time.c
浏览文件 @
58fd3aa2
...
@@ -60,7 +60,7 @@ EXPORT_SYMBOL(sys_tz);
...
@@ -60,7 +60,7 @@ EXPORT_SYMBOL(sys_tz);
* why not move it into the appropriate arch directory (for those
* why not move it into the appropriate arch directory (for those
* architectures that need it).
* architectures that need it).
*/
*/
asmlinkage
long
sys_time
(
time_t
__user
*
tloc
)
SYSCALL_DEFINE1
(
time
,
time_t
__user
*
,
tloc
)
{
{
time_t
i
=
get_seconds
();
time_t
i
=
get_seconds
();
...
@@ -79,7 +79,7 @@ asmlinkage long sys_time(time_t __user * tloc)
...
@@ -79,7 +79,7 @@ asmlinkage long sys_time(time_t __user * tloc)
* architectures that need it).
* architectures that need it).
*/
*/
asmlinkage
long
sys_stime
(
time_t
__user
*
tptr
)
SYSCALL_DEFINE1
(
stime
,
time_t
__user
*
,
tptr
)
{
{
struct
timespec
tv
;
struct
timespec
tv
;
int
err
;
int
err
;
...
@@ -99,8 +99,8 @@ asmlinkage long sys_stime(time_t __user *tptr)
...
@@ -99,8 +99,8 @@ asmlinkage long sys_stime(time_t __user *tptr)
#endif
/* __ARCH_WANT_SYS_TIME */
#endif
/* __ARCH_WANT_SYS_TIME */
asmlinkage
long
sys_gettimeofday
(
struct
timeval
__user
*
tv
,
SYSCALL_DEFINE2
(
gettimeofday
,
struct
timeval
__user
*
,
tv
,
struct
timezone
__user
*
tz
)
struct
timezone
__user
*
,
tz
)
{
{
if
(
likely
(
tv
!=
NULL
))
{
if
(
likely
(
tv
!=
NULL
))
{
struct
timeval
ktv
;
struct
timeval
ktv
;
...
@@ -184,8 +184,8 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
...
@@ -184,8 +184,8 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
return
0
;
return
0
;
}
}
asmlinkage
long
sys_settimeofday
(
struct
timeval
__user
*
tv
,
SYSCALL_DEFINE2
(
settimeofday
,
struct
timeval
__user
*
,
tv
,
struct
timezone
__user
*
tz
)
struct
timezone
__user
*
,
tz
)
{
{
struct
timeval
user_tv
;
struct
timeval
user_tv
;
struct
timespec
new_ts
;
struct
timespec
new_ts
;
...
@@ -205,7 +205,7 @@ asmlinkage long sys_settimeofday(struct timeval __user *tv,
...
@@ -205,7 +205,7 @@ asmlinkage long sys_settimeofday(struct timeval __user *tv,
return
do_sys_settimeofday
(
tv
?
&
new_ts
:
NULL
,
tz
?
&
new_tz
:
NULL
);
return
do_sys_settimeofday
(
tv
?
&
new_ts
:
NULL
,
tz
?
&
new_tz
:
NULL
);
}
}
asmlinkage
long
sys_adjtimex
(
struct
timex
__user
*
txc_p
)
SYSCALL_DEFINE1
(
adjtimex
,
struct
timex
__user
*
,
txc_p
)
{
{
struct
timex
txc
;
/* Local copy of parameter */
struct
timex
txc
;
/* Local copy of parameter */
int
ret
;
int
ret
;
...
...
kernel/timer.c
浏览文件 @
58fd3aa2
...
@@ -1129,7 +1129,7 @@ void do_timer(unsigned long ticks)
...
@@ -1129,7 +1129,7 @@ void do_timer(unsigned long ticks)
* For backwards compatibility? This can be done in libc so Alpha
* For backwards compatibility? This can be done in libc so Alpha
* and all newer ports shouldn't need it.
* and all newer ports shouldn't need it.
*/
*/
asmlinkage
long
sys_alarm
(
unsigned
int
seconds
)
SYSCALL_DEFINE1
(
alarm
,
unsigned
int
,
seconds
)
{
{
return
alarm_setitimer
(
seconds
);
return
alarm_setitimer
(
seconds
);
}
}
...
@@ -1152,7 +1152,7 @@ asmlinkage long sys_alarm(unsigned int seconds)
...
@@ -1152,7 +1152,7 @@ asmlinkage long sys_alarm(unsigned int seconds)
*
*
* This is SMP safe as current->tgid does not change.
* This is SMP safe as current->tgid does not change.
*/
*/
asmlinkage
long
sys_getpid
(
vo
id
)
SYSCALL_DEFINE0
(
getp
id
)
{
{
return
task_tgid_vnr
(
current
);
return
task_tgid_vnr
(
current
);
}
}
...
@@ -1308,7 +1308,7 @@ signed long __sched schedule_timeout_uninterruptible(signed long timeout)
...
@@ -1308,7 +1308,7 @@ signed long __sched schedule_timeout_uninterruptible(signed long timeout)
EXPORT_SYMBOL
(
schedule_timeout_uninterruptible
);
EXPORT_SYMBOL
(
schedule_timeout_uninterruptible
);
/* Thread ID - the internal kernel "pid" */
/* Thread ID - the internal kernel "pid" */
asmlinkage
long
sys_gettid
(
vo
id
)
SYSCALL_DEFINE0
(
gett
id
)
{
{
return
task_pid_vnr
(
current
);
return
task_pid_vnr
(
current
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录