]> 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)
commitbb7d6e64c2b063fe270f6afdbb12b33d337ff463
treeb58c36fa7eb6ca75c233db097b4b951619634b03
parent62b91e40ce8ce665b5607796e398f615ce5e3efd
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