mesa-drm/tests
Michel Dänzer 6fe93b8000 amdgpu: Don't dereference device_handle after amdgpu_device_deinitialize
Fixes use after free:

==2537== Invalid read of size 4
==2537==    at 0x1162C9: suite_deadlock_tests_enable (deadlock_tests.c:101)
==2537==    by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421)
==2537==    by 0x10B157: main (amdgpu_test.c:560)
==2537==  Address 0x5e44f24 is 452 bytes inside a block of size 1,016 free'd
==2537==    at 0x4C2BE1B: free (vg_replace_malloc.c:530)
==2537==    by 0x504CD8B: amdgpu_device_reference (amdgpu_device.c:164)
==2537==    by 0x504CD8B: amdgpu_device_deinitialize (amdgpu_device.c:307)
==2537==    by 0x1162BB: suite_deadlock_tests_enable (deadlock_tests.c:97)
==2537==    by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421)
==2537==    by 0x10B157: main (amdgpu_test.c:560)
==2537==  Block was alloc'd at
==2537==    at 0x4C2CC05: calloc (vg_replace_malloc.c:711)
==2537==    by 0x504CA5E: amdgpu_device_initialize (amdgpu_device.c:212)
==2537==    by 0x116298: suite_deadlock_tests_enable (deadlock_tests.c:93)
==2537==    by 0x10B157: amdgpu_disable_suits (amdgpu_test.c:421)
==2537==    by 0x10B157: main (amdgpu_test.c:560)

Reviewed-by: Christian König <christian.koenig@amd.com>
2018-01-16 16:57:57 +01:00
..
amdgpu amdgpu: Don't dereference device_handle after amdgpu_device_deinitialize 2018-01-16 16:57:57 +01:00
etnaviv Add meson build system 2018-01-12 09:40:48 -08:00
exynos Add meson build system 2018-01-12 09:40:48 -08:00
kms Add meson build system 2018-01-12 09:40:48 -08:00
kmstest Add meson build system 2018-01-12 09:40:48 -08:00
modeprint Add meson build system 2018-01-12 09:40:48 -08:00
modetest Add meson build system 2018-01-12 09:40:48 -08:00
nouveau Add meson build system 2018-01-12 09:40:48 -08:00
proptest Add meson build system 2018-01-12 09:40:48 -08:00
radeon Add meson build system 2018-01-12 09:40:48 -08:00
tegra Add meson build system 2018-01-12 09:40:48 -08:00
ttmtest Purge macro NEED_REPLIES 2010-07-01 13:12:55 -06:00
util Add meson build system 2018-01-12 09:40:48 -08:00
vbltest Add meson build system 2018-01-12 09:40:48 -08:00
Android.mk android: simplify the including rule of subdirs 2015-03-20 17:07:21 +00:00
drmdevice.c tests/drmdevice: Add USB, platform and host1x support 2017-01-20 16:27:33 +01:00
drmsl.c drmsltest: Check expected neighbours 2017-08-21 13:05:13 +01:00
hash.c tests/hash: return non-zero on failure 2015-04-05 15:33:06 +01:00
Makefile.am tests: automake: reorder makefile contents 2016-12-05 17:24:32 +00:00
meson.build Add meson build system 2018-01-12 09:40:48 -08:00
random.c tests/random: return non-zero on test failure 2015-04-05 15:33:33 +01:00