aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2012-01-24 18:54:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-03 09:18:52 -0800
commit90af660bec3b2d47e17cb3caae742810656e2d4f (patch)
treee8f4d93c7386c19dd9b50156696b4447ba7877d6 /crypto
parentc196878589eb5f88e244a557a55b229a3c285b3b (diff)
downloadkernel_samsung_smdk4412-90af660bec3b2d47e17cb3caae742810656e2d4f.zip
kernel_samsung_smdk4412-90af660bec3b2d47e17cb3caae742810656e2d4f.tar.gz
kernel_samsung_smdk4412-90af660bec3b2d47e17cb3caae742810656e2d4f.tar.bz2
drm: Fix authentication kernel crash
commit 598781d71119827b454fd75d46f84755bca6f0c6 upstream. If the master tries to authenticate a client using drm_authmagic and that client has already closed its drm file descriptor, either wilfully or because it was terminated, the call to drm_authmagic will dereference a stale pointer into kmalloc'ed memory and corrupt it. Typically this results in a hard system hang. This patch fixes that problem by removing any authentication tokens (struct drm_magic_entry) open for a file descriptor when that file descriptor is closed. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions