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
Kirill Smelkov
linux
Commits
2e8d11e9
Commit
2e8d11e9
authored
May 09, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Annotate LDT system calls with user pointer annotations.
parent
fdfa4630
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/i386/kernel/ldt.c
arch/i386/kernel/ldt.c
+4
-4
No files found.
arch/i386/kernel/ldt.c
View file @
2e8d11e9
...
@@ -119,7 +119,7 @@ void destroy_context(struct mm_struct *mm)
...
@@ -119,7 +119,7 @@ void destroy_context(struct mm_struct *mm)
}
}
}
}
static
int
read_ldt
(
void
*
ptr
,
unsigned
long
bytecount
)
static
int
read_ldt
(
void
__user
*
ptr
,
unsigned
long
bytecount
)
{
{
int
err
;
int
err
;
unsigned
long
size
;
unsigned
long
size
;
...
@@ -148,7 +148,7 @@ static int read_ldt(void * ptr, unsigned long bytecount)
...
@@ -148,7 +148,7 @@ static int read_ldt(void * ptr, unsigned long bytecount)
return
bytecount
;
return
bytecount
;
}
}
static
int
read_default_ldt
(
void
*
ptr
,
unsigned
long
bytecount
)
static
int
read_default_ldt
(
void
__user
*
ptr
,
unsigned
long
bytecount
)
{
{
int
err
;
int
err
;
unsigned
long
size
;
unsigned
long
size
;
...
@@ -167,7 +167,7 @@ static int read_default_ldt(void * ptr, unsigned long bytecount)
...
@@ -167,7 +167,7 @@ static int read_default_ldt(void * ptr, unsigned long bytecount)
return
err
;
return
err
;
}
}
static
int
write_ldt
(
void
*
ptr
,
unsigned
long
bytecount
,
int
oldmode
)
static
int
write_ldt
(
void
__user
*
ptr
,
unsigned
long
bytecount
,
int
oldmode
)
{
{
struct
mm_struct
*
mm
=
current
->
mm
;
struct
mm_struct
*
mm
=
current
->
mm
;
__u32
entry_1
,
entry_2
,
*
lp
;
__u32
entry_1
,
entry_2
,
*
lp
;
...
@@ -226,7 +226,7 @@ static int write_ldt(void * ptr, unsigned long bytecount, int oldmode)
...
@@ -226,7 +226,7 @@ static int write_ldt(void * ptr, unsigned long bytecount, int oldmode)
return
error
;
return
error
;
}
}
asmlinkage
int
sys_modify_ldt
(
int
func
,
void
*
ptr
,
unsigned
long
bytecount
)
asmlinkage
int
sys_modify_ldt
(
int
func
,
void
__user
*
ptr
,
unsigned
long
bytecount
)
{
{
int
ret
=
-
ENOSYS
;
int
ret
=
-
ENOSYS
;
...
...
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