projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d353efd
)
agp: info leak in agpioc_info_wrap()
author
Dan Carpenter
<
[email protected]
>
Tue, 6 May 2014 19:50:12 +0000
(12:50 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 6 May 2014 20:05:00 +0000
(13:05 -0700)
On 64 bit systems the agp_info struct has a 4 byte hole between
->agp_mode and ->aper_base. We need to clear it to avoid disclosing
stack information to userspace.
Signed-off-by: Dan Carpenter <
[email protected]
>
Cc: David Airlie <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/agp/frontend.c
patch
|
blob
|
history
diff --git
a/drivers/char/agp/frontend.c
b/drivers/char/agp/frontend.c
index 8121b4c70edec77114e20295e195fa1d5f2cc797..b29703324e9431d24c5c0b588efbae14d8d2d5ba 100644
(file)
--- a/
drivers/char/agp/frontend.c
+++ b/
drivers/char/agp/frontend.c
@@
-730,6
+730,7
@@
static int agpioc_info_wrap(struct agp_file_private *priv, void __user *arg)
agp_copy_info(agp_bridge, &kerninfo);
+ memset(&userinfo, 0, sizeof(userinfo));
userinfo.version.major = kerninfo.version.major;
userinfo.version.minor = kerninfo.version.minor;
userinfo.bridge_id = kerninfo.device->vendor |