Arthur Grillo
0f249678fe
drm/tests: Alloc drm_device on drm_exec tests
The drm_exec tests where crashing[0] because of a null dereference. This
is caused by a new access of the `driver` attribute of `struct
drm_driver` on drm_gem_private_object_init(). Alloc the drm_device to
fix that.
[0]
[15:05:24] ================== drm_exec (6 subtests) ===================
[15:05:24] [PASSED] sanitycheck
^CERROR:root:Build interruption occurred. Cleaning console.
[15:05:50] [ERROR] Test: drm_exec: missing expected subtest!
[15:05:50] BUG: kernel NULL pointer dereference, address: 00000000000000b0
[15:05:50] #PF: supervisor read access in kernel mode
[15:05:50] #PF: error_code(0x0000) - not-present page
[15:05:50] PGD 0 P4D 0
[15:05:50] Oops: 0000 [#1] PREEMPT NOPTI
[15:05:50] CPU: 0 PID: 23 Comm: kunit_try_catch Tainted: G N 6.4.0-rc7-02032-ge6303f323b1a #69
[15:05:50] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-1.fc37 04/01/2014
[15:05:50] RIP: 0010:drm_gem_private_object_init+0x60/0xc0
Fixes: e6303f323b ("drm: manager to keep track of GPUs VA mappings")
Signed-off-by: Arthur Grillo <arthurgrillo@riseup.net>
Tested-by: Danilo Krummrich <dakr@redhat.com>
Acked-by: Danilo Krummrich <dakr@redhat.com>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230731182241.240556-1-arthurgrillo@riseup.net
2023-08-01 09:30:13 +02:00
..
2023-07-17 15:37:57 +02:00
2023-07-06 22:25:06 -07:00
2023-07-03 12:56:23 -07:00
2023-07-24 16:50:39 +02:00
2023-07-12 12:05:10 +01:00
2023-07-11 12:15:15 -04:00
2023-07-05 15:44:45 -07:00
2023-07-06 09:56:53 -07:00
2023-06-29 08:09:31 -06:00
2023-07-03 15:38:26 -07:00
2023-07-04 11:07:45 -07:00
2023-06-30 09:37:26 -07:00
2023-06-23 10:29:02 +02:00
2023-07-12 12:45:18 +02:00
2023-07-06 13:18:30 -07:00
2023-06-29 16:03:58 -07:00
2023-06-26 07:54:23 -06:00
2023-07-06 09:48:31 -07:00
2023-07-27 09:43:33 +02:00
2023-06-26 15:09:18 -07:00
2023-06-24 14:03:46 +09:00
2023-07-17 15:37:57 +02:00
2023-07-03 12:46:47 -07:00
2023-06-30 14:57:19 -07:00
2023-08-01 09:30:13 +02:00
2023-07-24 16:50:39 +02:00
2023-06-17 23:09:47 +00:00
2023-07-03 12:56:23 -07:00
2023-07-03 12:46:47 -07:00
2023-07-08 12:28:00 -07:00
2023-06-28 19:09:55 +02:00
2023-07-03 12:56:23 -07:00
2023-06-29 21:01:17 -07:00
2023-06-29 15:28:33 -07:00
2023-07-14 14:53:19 +02:00
2023-06-30 09:37:26 -07:00
2023-07-03 11:26:05 -07:00
2023-06-21 14:08:54 +10:00
2023-06-30 17:35:45 -05:00
2023-07-08 12:08:39 -07:00
2023-07-24 16:50:39 +02:00
2023-07-06 10:06:04 -07:00
2023-07-03 10:55:04 -07:00
2023-07-03 12:46:47 -07:00
2023-06-30 14:06:51 +02:00
2023-06-28 14:02:03 -07:00
2023-07-13 14:21:22 -07:00
2023-06-22 18:40:38 -07:00
2023-07-08 13:55:44 -04:00
2023-06-26 07:54:23 -06:00
2023-07-14 19:57:29 -07:00
2023-07-24 15:44:47 +02:00
2023-06-27 07:35:14 +05:30
2023-06-30 17:14:15 +02:00
2023-07-03 12:46:47 -07:00
2023-07-09 09:35:51 -07:00
2023-07-12 07:41:23 -07:00
2023-07-05 21:38:13 -07:00
2023-07-13 00:05:52 +02:00
2023-07-11 12:15:30 +02:00
2023-07-03 17:23:16 -07:00
2023-06-29 15:22:19 -07:00
2023-07-03 13:17:25 -07:00
2023-07-05 12:55:06 -07:00
2023-07-06 19:20:23 -07:00
2023-07-03 17:03:05 -07:00
2023-06-29 15:22:19 -07:00
2023-07-03 10:43:10 -07:00
2023-07-13 14:21:22 -07:00
2023-06-23 10:27:02 +02:00
2023-07-11 12:38:49 -04:00
2023-07-03 13:23:10 -07:00
2023-06-21 16:31:45 +05:30
2023-07-15 08:51:02 -07:00
2023-07-24 16:50:39 +02:00
2023-07-08 12:35:18 -07:00
2023-06-29 15:22:19 -07:00
2023-06-26 19:41:26 -07:00
2023-07-03 13:14:58 -07:00
2023-07-11 12:15:15 -04:00
2023-07-03 13:23:10 -07:00
2023-07-03 15:38:26 -07:00
2023-06-30 15:22:09 -07:00
2023-07-03 15:38:26 -07:00
2023-07-31 20:07:24 +02:00
2023-06-27 16:46:06 -07:00
2023-06-27 10:47:08 -04:00
2023-06-26 14:30:07 +02:00
2023-07-13 13:39:36 -07:00
2023-07-22 12:24:22 +02:00