aboutsummaryrefslogtreecommitdiff
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-08-17 14:46:00 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-26 16:40:13 -0700
commit2afa902362e67ff39a9d0f5d3523ded05a1b7c70 (patch)
tree23f8a79255445adec1e03e31190729bc05be7864 /fs/mbcache.c
parent346767e3c92722f478fc80d863d6e2d1c6fd396e (diff)
drm: stop information leak of old kernel stack.
commit b9f0aee83335db1f3915f4e42a5e21b351740afd upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions