summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sis/sis_mm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-17 08:46:00 +0400
committerDave Airlie <airlied@redhat.com>2010-08-17 08:51:45 +0400
commitb9f0aee83335db1f3915f4e42a5e21b351740afd (patch)
tree3328b6503f7852868f642263dfa8a3decc487a1e /drivers/gpu/drm/sis/sis_mm.c
parent31ce4bfdfd10bf5db9bf85c92bbe0cf2edbdcad8 (diff)
downloadlinux-b9f0aee83335db1f3915f4e42a5e21b351740afd.tar.xz
drm: stop information leak of old kernel stack.
non-critical issue, CVE-2010-2803 Userspace controls the amount of memory to be allocate, so it can get the ioctl to allocate more memory than the kernel uses, and get access to kernel stack. This can only be done for processes authenticated to the X server for DRI access, and if the user has DRI access. Fix is to just memset the data to 0 if the user doesn't copy into it in the first place. Reported-by: Kees Cook <kees@ubuntu.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/sis/sis_mm.c')
0 files changed, 0 insertions, 0 deletions