tests: add gem_flink_race
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jul 2013 21:14:57 +0000 (23:14 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jul 2013 21:15:12 +0000 (23:15 +0200)
commit7b5440a09aa7257045c15643ae4b1bea79f90552
tree7454b82e806ec068e2c41abb6ed7e1c9cba1423d
parent8e46c382e359c7a3d465bb1505e7f8b63a7a5952
tests: add gem_flink_race

This exercises a race in the flink name descruction of the current drm
gem core. When racing a gem close with a gem open the open can sneak
in and cause the kernel to leak the flink name and its reference.

This results in leaked gem objects that won't get reaped even at drm
file close time. On my 2 core/4 threads snb machine this leaks on the
order of 1k objects per second.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/.gitignore
tests/Makefile.am
tests/gem_flink_race.c [new file with mode: 0644]