agp: zero pages before sending to userspace
commit0702b646e5bdc16af64ef6f663e5275a02bf40cd
authorShaohua Li <shaohua.li@intel.com>
Mon, 20 Apr 2009 00:08:35 +0000 (20 10:08 +1000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:05 +0000 (27 10:37 -0700)
tree03ae6f2561255055c8a4f702fd5ad31c8ee40146
parent7b0e3850488bbd218b6ea4cc0e5c6e549995a6f7
agp: zero pages before sending to userspace

upstream commit: 59de2bebabc5027f93df999d59cc65df591c3e6e

CVE-2009-1192

AGP pages might be mapped into userspace finally, so the pages should be
set to zero before userspace can use it. Otherwise there is potential
information leakage.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/char/agp/generic.c