]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/ttm: request zeroed system memory pages for new TT buffer objects
authorBen Skeggs <bskeggs@redhat.com>
Tue, 13 Sep 2011 20:08:06 +0000 (06:08 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:22 +0000 (08:52 -0800)
commit8215014c1d9d78ef14260a46ee2a136acc3d283a
tree44740b61c1d11da7e2ce989a8876b88444d1d8be
parent6d7f52a7e695b4a6d2ba32e477d283626bfbec00
drm/ttm: request zeroed system memory pages for new TT buffer objects

commit ff02b13f6867af72682d7a9bb9bd705f9af2bab0 upstream.

Fixes an information leak to userspace, we were handing out un-zeroed pages
for any newly created TTM_PL_TT buffer.

Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Tested-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/ttm/ttm_bo.c