Thomas Hellstrom 598781d711 drm: Fix authentication kernel crash
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>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-01-25 09:27:45 +00:00
..
2012-01-06 09:34:03 +00:00
2010-08-10 08:20:20 +10:00
2011-05-09 09:14:45 +10:00
2011-02-07 13:09:42 +10:00
2012-01-25 09:27:45 +00:00
2011-12-06 09:54:23 +00:00
2011-10-20 15:26:39 -07:00
2011-12-20 10:02:02 +00:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00