Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
58fd3aa2
Commit
58fd3aa2
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 01
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
6673e0c3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+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
No files found.
kernel/hrtimer.c
View file @
58fd3aa2
...
...
@@ -1467,8 +1467,8 @@ long hrtimer_nanosleep(struct timespec *rqtp, struct timespec __user *rmtp,
return
ret
;
}
asmlinkage
long
sys_nanosleep
(
struct
timespec
__user
*
rqtp
,
struct
timespec
__user
*
rmtp
)
SYSCALL_DEFINE2
(
nanosleep
,
struct
timespec
__user
*
,
rqtp
,
struct
timespec
__user
*
,
rmtp
)
{
struct
timespec
tu
;
...
...
kernel/sys.c
View file @
58fd3aa2
...
...
@@ -919,7 +919,7 @@ void do_sys_times(struct tms *tms)
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
)
{
struct
tms
tmp
;
...
...
kernel/time.c
View file @
58fd3aa2
...
...
@@ -60,7 +60,7 @@ EXPORT_SYMBOL(sys_tz);
* why not move it into the appropriate arch directory (for those
* architectures that need it).
*/
asmlinkage
long
sys_time
(
time_t
__user
*
tloc
)
SYSCALL_DEFINE1
(
time
,
time_t
__user
*
,
tloc
)
{
time_t
i
=
get_seconds
();
...
...
@@ -79,7 +79,7 @@ asmlinkage long sys_time(time_t __user * tloc)
* architectures that need it).
*/
asmlinkage
long
sys_stime
(
time_t
__user
*
tptr
)
SYSCALL_DEFINE1
(
stime
,
time_t
__user
*
,
tptr
)
{
struct
timespec
tv
;
int
err
;
...
...
@@ -99,8 +99,8 @@ asmlinkage long sys_stime(time_t __user *tptr)
#endif
/* __ARCH_WANT_SYS_TIME */
asmlinkage
long
sys_gettimeofday
(
struct
timeval
__user
*
tv
,
struct
timezone
__user
*
tz
)
SYSCALL_DEFINE2
(
gettimeofday
,
struct
timeval
__user
*
,
tv
,
struct
timezone
__user
*
,
tz
)
{
if
(
likely
(
tv
!=
NULL
))
{
struct
timeval
ktv
;
...
...
@@ -184,8 +184,8 @@ int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
return
0
;
}
asmlinkage
long
sys_settimeofday
(
struct
timeval
__user
*
tv
,
struct
timezone
__user
*
tz
)
SYSCALL_DEFINE2
(
settimeofday
,
struct
timeval
__user
*
,
tv
,
struct
timezone
__user
*
,
tz
)
{
struct
timeval
user_tv
;
struct
timespec
new_ts
;
...
...
@@ -205,7 +205,7 @@ asmlinkage long sys_settimeofday(struct timeval __user *tv,
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 */
int
ret
;
...
...
kernel/timer.c
View file @
58fd3aa2
...
...
@@ -1129,7 +1129,7 @@ void do_timer(unsigned long ticks)
* For backwards compatibility? This can be done in libc so Alpha
* 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
);
}
...
...
@@ -1152,7 +1152,7 @@ asmlinkage long sys_alarm(unsigned int seconds)
*
* 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
);
}
...
...
@@ -1308,7 +1308,7 @@ signed long __sched schedule_timeout_uninterruptible(signed long timeout)
EXPORT_SYMBOL
(
schedule_timeout_uninterruptible
);
/* Thread ID - the internal kernel "pid" */
asmlinkage
long
sys_gettid
(
vo
id
)
SYSCALL_DEFINE0
(
gett
id
)
{
return
task_pid_vnr
(
current
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment