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
1c87ea45
Commit
1c87ea45
authored
Mar 25, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpha: fix stack smashing in old_adjtimex(2)
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e73a67f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+1
-1
No files found.
arch/alpha/kernel/osf_sys.c
View file @
1c87ea45
...
@@ -1290,7 +1290,7 @@ SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p)
...
@@ -1290,7 +1290,7 @@ SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p)
/* copy relevant bits of struct timex. */
/* copy relevant bits of struct timex. */
if
(
copy_from_user
(
&
txc
,
txc_p
,
offsetof
(
struct
timex32
,
time
))
||
if
(
copy_from_user
(
&
txc
,
txc_p
,
offsetof
(
struct
timex32
,
time
))
||
copy_from_user
(
&
txc
.
tick
,
&
txc_p
->
tick
,
sizeof
(
struct
timex32
)
-
copy_from_user
(
&
txc
.
tick
,
&
txc_p
->
tick
,
sizeof
(
struct
timex32
)
-
offsetof
(
struct
timex32
,
ti
me
)))
offsetof
(
struct
timex32
,
ti
ck
)))
return
-
EFAULT
;
return
-
EFAULT
;
ret
=
do_adjtimex
(
&
txc
);
ret
=
do_adjtimex
(
&
txc
);
...
...
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