]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdd9c49df9db39d6f2670ad0905f70e8d6b1b223
treeb58c36fa7eb6ca75c233db097b4b951619634b03
parent5bc86b3d9e95fc0f350eb72fb6bea12f33c4a5c3
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