projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73a67f
)
alpha: fix stack smashing in old_adjtimex(2)
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 25 Mar 2017 04:43:43 +0000
(
00:43
-0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 6 Apr 2017 06:10:31 +0000
(
02:10
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/kernel/osf_sys.c
patch
|
blob
|
history
diff --git
a/arch/alpha/kernel/osf_sys.c
b/arch/alpha/kernel/osf_sys.c
index
0b96109
..
6d76e52
100644
(file)
--- a/
arch/alpha/kernel/osf_sys.c
+++ b/
arch/alpha/kernel/osf_sys.c
@@
-1290,7
+1290,7
@@
SYSCALL_DEFINE1(old_adjtimex, struct timex32 __user *, txc_p)
/* copy relevant bits of struct timex. */
if (copy_from_user(&txc, txc_p, offsetof(struct timex32, time)) ||
copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) -
- offsetof(struct timex32, ti
me
)))
+ offsetof(struct timex32, ti
ck
)))
return -EFAULT;
ret = do_adjtimex(&txc);