agp: info leak in agpioc_info_wrap()
authorDan Carpenter <[email protected]>
Tue, 6 May 2014 19:50:12 +0000 (12:50 -0700)
committerLinus Torvalds <[email protected]>
Tue, 6 May 2014 20:05:00 +0000 (13:05 -0700)
commit3ca9e5d36afb5c0a6ee6ceee69e507370beb59c6
treedb4bf1253bbaba30d4955b4eed1a5708ec73793c
parentd353efd02357a74753cd45f367a2d3d357fd6904
agp: info leak in agpioc_info_wrap()

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