Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3cdad428
Commit
3cdad428
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
CVE-2009
-0029] System call wrappers part 20
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
003d7ab4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
fs/dcache.c
fs/dcache.c
+1
-1
fs/namei.c
fs/namei.c
+2
-2
fs/open.c
fs/open.c
+2
-2
fs/quota.c
fs/quota.c
+2
-1
fs/read_write.c
fs/read_write.c
+7
-6
No files found.
fs/dcache.c
View file @
3cdad428
...
@@ -2092,7 +2092,7 @@ Elong:
...
@@ -2092,7 +2092,7 @@ Elong:
* return NULL;
* return NULL;
* }
* }
*/
*/
asmlinkage
long
sys_getcwd
(
char
__user
*
buf
,
unsigned
long
size
)
SYSCALL_DEFINE2
(
getcwd
,
char
__user
*
,
buf
,
unsigned
long
,
size
)
{
{
int
error
;
int
error
;
struct
path
pwd
,
root
;
struct
path
pwd
,
root
;
...
...
fs/namei.c
View file @
3cdad428
...
@@ -2081,7 +2081,7 @@ out_err:
...
@@ -2081,7 +2081,7 @@ out_err:
return
error
;
return
error
;
}
}
asmlinkage
long
sys_mkdir
(
const
char
__user
*
pathname
,
int
mode
)
SYSCALL_DEFINE2
(
mkdir
,
const
char
__user
*
,
pathname
,
int
,
mode
)
{
{
return
sys_mkdirat
(
AT_FDCWD
,
pathname
,
mode
);
return
sys_mkdirat
(
AT_FDCWD
,
pathname
,
mode
);
}
}
...
@@ -2195,7 +2195,7 @@ exit1:
...
@@ -2195,7 +2195,7 @@ exit1:
return
error
;
return
error
;
}
}
asmlinkage
long
sys_rmdir
(
const
char
__user
*
pathname
)
SYSCALL_DEFINE1
(
rmdir
,
const
char
__user
*
,
pathname
)
{
{
return
do_rmdir
(
AT_FDCWD
,
pathname
);
return
do_rmdir
(
AT_FDCWD
,
pathname
);
}
}
...
...
fs/open.c
View file @
3cdad428
...
@@ -522,7 +522,7 @@ SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)
...
@@ -522,7 +522,7 @@ SYSCALL_DEFINE2(access, const char __user *, filename, int, mode)
return
sys_faccessat
(
AT_FDCWD
,
filename
,
mode
);
return
sys_faccessat
(
AT_FDCWD
,
filename
,
mode
);
}
}
asmlinkage
long
sys_chdir
(
const
char
__user
*
filename
)
SYSCALL_DEFINE1
(
chdir
,
const
char
__user
*
,
filename
)
{
{
struct
path
path
;
struct
path
path
;
int
error
;
int
error
;
...
@@ -543,7 +543,7 @@ out:
...
@@ -543,7 +543,7 @@ out:
return
error
;
return
error
;
}
}
asmlinkage
long
sys_fchdir
(
unsigned
int
fd
)
SYSCALL_DEFINE1
(
fchdir
,
unsigned
int
,
fd
)
{
{
struct
file
*
file
;
struct
file
*
file
;
struct
inode
*
inode
;
struct
inode
*
inode
;
...
...
fs/quota.c
View file @
3cdad428
...
@@ -371,7 +371,8 @@ static inline struct super_block *quotactl_block(const char __user *special)
...
@@ -371,7 +371,8 @@ static inline struct super_block *quotactl_block(const char __user *special)
* calls. Maybe we need to add the process quotas etc. in the future,
* calls. Maybe we need to add the process quotas etc. in the future,
* but we probably should use rlimits for that.
* but we probably should use rlimits for that.
*/
*/
asmlinkage
long
sys_quotactl
(
unsigned
int
cmd
,
const
char
__user
*
special
,
qid_t
id
,
void
__user
*
addr
)
SYSCALL_DEFINE4
(
quotactl
,
unsigned
int
,
cmd
,
const
char
__user
*
,
special
,
qid_t
,
id
,
void
__user
*
,
addr
)
{
{
uint
cmds
,
type
;
uint
cmds
,
type
;
struct
super_block
*
sb
=
NULL
;
struct
super_block
*
sb
=
NULL
;
...
...
fs/read_write.c
View file @
3cdad428
...
@@ -369,7 +369,7 @@ static inline void file_pos_write(struct file *file, loff_t pos)
...
@@ -369,7 +369,7 @@ static inline void file_pos_write(struct file *file, loff_t pos)
file
->
f_pos
=
pos
;
file
->
f_pos
=
pos
;
}
}
asmlinkage
long
sys_read
(
unsigned
int
fd
,
char
__user
*
buf
,
size_t
count
)
SYSCALL_DEFINE3
(
read
,
unsigned
int
,
fd
,
char
__user
*
,
buf
,
size_t
,
count
)
{
{
struct
file
*
file
;
struct
file
*
file
;
ssize_t
ret
=
-
EBADF
;
ssize_t
ret
=
-
EBADF
;
...
@@ -386,7 +386,8 @@ asmlinkage long sys_read(unsigned int fd, char __user * buf, size_t count)
...
@@ -386,7 +386,8 @@ asmlinkage long sys_read(unsigned int fd, char __user * buf, size_t count)
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys_write
(
unsigned
int
fd
,
const
char
__user
*
buf
,
size_t
count
)
SYSCALL_DEFINE3
(
write
,
unsigned
int
,
fd
,
const
char
__user
*
,
buf
,
size_t
,
count
)
{
{
struct
file
*
file
;
struct
file
*
file
;
ssize_t
ret
=
-
EBADF
;
ssize_t
ret
=
-
EBADF
;
...
@@ -688,8 +689,8 @@ ssize_t vfs_writev(struct file *file, const struct iovec __user *vec,
...
@@ -688,8 +689,8 @@ ssize_t vfs_writev(struct file *file, const struct iovec __user *vec,
EXPORT_SYMBOL
(
vfs_writev
);
EXPORT_SYMBOL
(
vfs_writev
);
asmlinkage
long
SYSCALL_DEFINE3
(
readv
,
unsigned
long
,
fd
,
const
struct
iovec
__user
*
,
vec
,
sys_readv
(
unsigned
long
fd
,
const
struct
iovec
__user
*
vec
,
unsigned
long
vlen
)
unsigned
long
,
vlen
)
{
{
struct
file
*
file
;
struct
file
*
file
;
ssize_t
ret
=
-
EBADF
;
ssize_t
ret
=
-
EBADF
;
...
@@ -709,8 +710,8 @@ sys_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen)
...
@@ -709,8 +710,8 @@ sys_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen)
return
ret
;
return
ret
;
}
}
asmlinkage
long
SYSCALL_DEFINE3
(
writev
,
unsigned
long
,
fd
,
const
struct
iovec
__user
*
,
vec
,
sys_writev
(
unsigned
long
fd
,
const
struct
iovec
__user
*
vec
,
unsigned
long
vlen
)
unsigned
long
,
vlen
)
{
{
struct
file
*
file
;
struct
file
*
file
;
ssize_t
ret
=
-
EBADF
;
ssize_t
ret
=
-
EBADF
;
...
...
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