agp: info leak in agpioc_info_wrap()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 3 May 2014 20:27:00 +0000 (23:27 +0300)
committerDave Airlie <airlied@redhat.com>
Mon, 5 May 2014 00:33:28 +0000 (10:33 +1000)
commit3cf0b0311e746a26dcc7c0b5ba0756f61d636a33
treeb58c36fa7eb6ca75c233db097b4b951619634b03
parent0384dcae2b18db80c49117ac57ea15211ca48751
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 <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/agp/frontend.c