Dave Airlie
31ab27b14d
drm/amdgpu/cs: make commands with 0 chunks illegal behaviour.
Submitting a cs with 0 chunks, causes an oops later, found trying
to execute the wrong userspace driver.
MESA_LOADER_DRIVER_OVERRIDE=v3d glxinfo
[172536.665184] BUG: kernel NULL pointer dereference, address: 00000000000001d8
[172536.665188] #PF: supervisor read access in kernel mode
[172536.665189] #PF: error_code(0x0000) - not-present page
[172536.665191] PGD 6712a0067 P4D 6712a0067 PUD 5af9ff067 PMD 0
[172536.665195] Oops: 0000 [#1] SMP NOPTI
[172536.665197] CPU: 7 PID: 2769838 Comm: glxinfo Tainted: P O 5.10.81 #1-NixOS
[172536.665199] Hardware name: To be filled by O.E.M. To be filled by O.E.M./CROSSHAIR V FORMULA-Z, BIOS 2201 03/23/2015
[172536.665272] RIP: 0010:amdgpu_cs_ioctl+0x96/0x1ce0 [amdgpu]
[172536.665274] Code: 75 18 00 00 4c 8b b2 88 00 00 00 8b 46 08 48 89 54 24 68 49 89 f7 4c 89 5c 24 60 31 d2 4c 89 74 24 30 85 c0 0f 85 c0 01 00 00 <48> 83 ba d8 01 00 00 00 48 8b b4 24 90 00 00 00 74 16 48 8b 46 10
[172536.665276] RSP: 0018:ffffb47c0e81bbe0 EFLAGS: 00010246
[172536.665277] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[172536.665278] RDX: 0000000000000000 RSI: ffffb47c0e81be28 RDI: ffffb47c0e81bd68
[172536.665279] RBP: ffff936524080010 R08: 0000000000000000 R09: ffffb47c0e81be38
[172536.665281] R10: ffff936524080010 R11: ffff936524080000 R12: ffffb47c0e81bc40
[172536.665282] R13: ffffb47c0e81be28 R14: ffff9367bc410000 R15: ffffb47c0e81be28
[172536.665283] FS: 00007fe35e05d740(0000) GS:ffff936c1edc0000(0000) knlGS:0000000000000000
[172536.665284] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[172536.665286] CR2: 00000000000001d8 CR3: 0000000532e46000 CR4: 00000000000406e0
[172536.665287] Call Trace:
[172536.665322] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
[172536.665332] drm_ioctl_kernel+0xaa/0xf0 [drm]
[172536.665338] drm_ioctl+0x201/0x3b0 [drm]
[172536.665369] ? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
[172536.665372] ? selinux_file_ioctl+0x135/0x230
[172536.665399] amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[172536.665403] __x64_sys_ioctl+0x83/0xb0
[172536.665406] do_syscall_64+0x33/0x40
[172536.665409] entry_SYSCALL_64_after_hwframe+0x44/0xa9
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2018
Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-05-26 14:56:33 -04:00
..
2021-03-10 00:01:34 -05:00
2022-03-04 13:03:29 -05:00
2021-04-09 16:46:26 -04:00
2021-07-23 10:08:00 -04:00
2022-05-18 15:20:18 -04:00
2022-02-09 16:57:51 -05:00
2022-02-09 16:57:51 -05:00
2021-11-17 16:58:01 -05:00
2021-05-10 18:06:42 -04:00
2022-02-09 16:57:51 -05:00
2022-02-09 16:57:51 -05:00
2022-02-14 15:08:40 -05:00
2022-02-09 16:57:51 -05:00
2022-03-04 13:03:30 -05:00
2022-02-09 16:57:51 -05:00
2022-05-04 10:43:54 -04:00
2022-05-19 14:09:54 +10:00
2022-05-04 10:43:54 -04:00
2022-03-25 12:40:52 -04:00
2022-01-14 17:51:15 -05:00
2022-01-14 17:51:15 -05:00
2022-05-26 14:56:33 -04:00
2022-04-28 17:47:52 -04:00
2021-12-13 16:32:34 -05:00
2022-02-23 14:02:51 -05:00
2022-04-28 17:48:32 -04:00
2021-09-29 17:30:00 -04:00
2022-04-07 12:53:53 +02:00
2020-10-27 11:56:42 -04:00
2022-04-25 11:17:45 +02:00
2022-05-26 14:56:33 -04:00
2022-03-04 13:03:30 -05:00
2022-02-07 17:14:10 -05:00
2022-05-26 14:56:31 -04:00
2022-05-26 14:56:31 -04:00
2022-04-21 15:58:22 -04:00
2021-10-05 12:22:36 -04:00
2022-05-26 14:56:32 -04:00
2022-04-08 17:24:24 -04:00
2022-05-26 14:56:33 -04:00
2022-04-28 17:47:43 -04:00
2022-04-28 14:33:20 +10:00
2021-04-09 16:36:40 -04:00
2022-04-07 12:53:54 +02:00
2021-05-26 20:56:23 +02:00
2022-05-04 10:43:53 -04:00
2022-05-18 15:20:18 -04:00
2021-12-13 16:32:34 -05:00
2021-07-08 15:18:14 -04:00
2021-07-01 00:24:41 -04:00
2021-12-07 13:13:07 -05:00
2021-08-31 14:20:40 -04:00
2021-05-05 09:26:53 +02:00
2022-05-04 10:03:31 -04:00
2022-02-07 17:59:53 -05:00
2020-09-29 16:11:50 -04:00
2021-06-07 14:57:32 -04:00
2020-10-26 13:27:00 -04:00
2022-02-07 18:01:16 -05:00
2022-01-19 22:32:47 -05:00
2022-04-28 14:33:20 +10:00
2020-09-25 09:19:42 +02:00
2022-05-06 16:57:21 -04:00
2022-05-06 16:57:21 -04:00
2021-06-04 16:03:24 -04:00
2022-05-26 14:56:32 -04:00
2022-05-04 09:57:22 -04:00
2022-04-05 11:06:58 +02:00
2022-04-08 17:24:24 -04:00
2021-08-11 17:19:54 -04:00
2022-05-04 10:43:52 -04:00
2022-04-28 14:33:20 +10:00
2022-03-25 12:40:26 -04:00
2021-12-13 16:32:35 -05:00
2021-12-01 16:03:34 -05:00
2022-05-04 10:43:54 -04:00
2021-12-13 16:34:27 -05:00
2022-04-22 14:50:18 -04:00
2021-08-10 20:00:44 +02:00
2022-03-04 13:03:30 -05:00
2022-03-04 13:03:30 -05:00
2022-05-10 17:53:13 -04:00
2022-05-10 17:53:13 -04:00
2022-05-26 14:56:31 -04:00
2022-05-10 17:53:11 -04:00
2022-05-10 17:53:12 -04:00
2022-03-02 18:40:06 -05:00
2022-03-02 18:40:06 -05:00
2022-05-04 10:43:51 -04:00
2022-05-10 17:53:11 -04:00
2022-05-04 10:43:54 -04:00
2022-05-04 09:57:18 -04:00
2022-04-07 12:53:54 +02:00
2021-07-01 00:05:41 -04:00
2022-04-29 11:33:00 +10:00
2022-03-02 18:40:06 -05:00
2022-05-04 09:52:44 -04:00
2022-05-26 14:56:33 -04:00
2021-10-07 11:55:46 -04:00
2021-12-13 16:32:34 -05:00
2021-08-24 15:35:25 -04:00
2021-12-13 16:33:16 -05:00
2020-10-07 14:44:33 -04:00
2022-02-14 15:05:39 +01:00
2022-04-28 17:48:44 -04:00
2022-04-28 17:48:44 -04:00
2022-05-26 14:56:33 -04:00
2022-05-10 17:53:10 -04:00
2021-08-18 18:22:53 -04:00
2020-08-14 16:22:40 -04:00
2022-03-15 14:25:16 -04:00
2022-03-15 14:25:16 -04:00
2022-05-26 14:56:32 -04:00
2022-04-22 14:50:18 -04:00
2022-04-08 12:58:15 +02:00
2022-03-04 13:03:29 -05:00
2022-02-10 10:23:40 +01:00
2022-05-04 10:03:29 -04:00
2022-05-04 10:03:23 -04:00
2022-05-04 10:03:04 -04:00
2020-11-02 15:34:29 -05:00
2021-09-01 16:55:11 -04:00
2020-08-18 18:20:26 -04:00
2022-05-26 14:56:32 -04:00
2022-03-02 18:40:06 -05:00
2021-08-18 18:22:53 -04:00
2021-01-13 23:58:14 -05:00
2022-04-08 17:24:24 -04:00
2022-04-28 14:33:20 +10:00
2022-03-25 12:40:51 -04:00
2022-03-04 13:03:30 -05:00
2022-02-23 14:26:36 -05:00
2022-04-20 21:06:02 -04:00
2022-04-08 12:58:15 +02:00
2022-05-04 10:43:54 -04:00
2022-05-04 10:43:54 -04:00
2022-03-15 14:25:16 -04:00
2022-03-02 18:40:06 -05:00
2021-09-01 16:55:11 -04:00
2022-04-07 12:53:54 +02:00
2022-03-04 13:03:30 -05:00
2022-03-04 13:03:30 -05:00
2022-03-04 13:03:30 -05:00
2022-05-10 17:53:13 -04:00
2022-05-10 17:53:13 -04:00
2020-11-02 15:34:29 -05:00
2022-04-28 17:46:01 -04:00
2022-02-16 17:30:02 -05:00
2022-04-21 11:10:37 +02:00
2021-12-01 16:02:57 -05:00
2022-04-07 12:53:54 +02:00
2022-05-04 04:20:53 +10:00
2022-04-28 14:33:20 +10:00
2022-05-19 14:09:54 +10:00
2022-04-28 14:33:20 +10:00
2022-04-08 12:58:15 +02:00
2022-04-08 12:58:15 +02:00
2022-03-15 14:34:26 -04:00
2022-03-01 16:19:02 +10:00
2022-05-18 15:20:18 -04:00
2022-04-21 16:00:14 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-05-05 16:51:30 -04:00
2022-05-04 09:57:10 -04:00
2022-02-07 13:04:25 -08:00
2021-06-01 22:55:39 -04:00
2021-08-24 15:35:25 -04:00
2022-04-25 11:17:45 +02:00
2022-04-06 10:20:29 -04:00
2020-11-02 15:35:53 -05:00
2021-05-19 23:50:27 -04:00
2022-05-04 10:03:27 -04:00
2022-02-17 15:59:05 -05:00
2022-05-04 10:02:20 -04:00
2021-05-19 23:50:27 -04:00
2022-02-25 05:50:18 +10:00
2022-02-25 05:50:18 +10:00
2022-02-25 05:50:18 +10:00
2022-02-25 05:50:18 +10:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2020-10-07 14:44:33 -04:00
2021-02-24 09:28:55 -05:00
2022-05-06 16:57:21 -04:00
2022-05-06 16:57:21 -04:00
2020-11-13 17:29:47 -05:00
2022-05-26 14:56:31 -04:00
2022-05-26 14:56:31 -04:00
2020-09-30 13:50:06 -04:00
2022-03-25 12:40:26 -04:00
2022-01-14 17:51:59 -05:00
2022-01-14 17:51:59 -05:00
2022-01-14 17:51:59 -05:00
2022-05-26 14:56:31 -04:00
2022-05-26 14:56:31 -04:00
2022-05-04 10:43:54 -04:00
2021-12-14 17:50:36 -05:00
2020-11-17 14:07:18 -05:00
2021-11-03 12:22:07 -04:00
2020-10-16 14:44:32 -04:00
2022-05-04 09:57:22 -04:00
2020-09-30 13:50:13 -04:00
2022-05-04 09:57:22 -04:00
2020-09-30 13:50:13 -04:00
2022-05-04 09:57:22 -04:00
2022-05-04 09:57:13 -04:00
2022-01-19 22:32:47 -05:00
2022-03-25 12:40:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2020-08-26 16:40:18 -04:00
2022-05-04 10:43:49 -04:00
2022-05-10 17:53:11 -04:00
2022-05-04 09:57:26 -04:00
2022-04-08 17:24:24 -04:00
2022-01-14 17:51:59 -05:00
2022-04-08 17:24:24 -04:00
2021-01-05 11:32:55 -05:00
2022-05-06 10:36:13 -04:00
2022-05-06 10:36:13 -04:00
2022-05-05 16:51:21 -04:00
2022-05-04 09:53:58 -04:00
2022-05-04 09:53:18 -04:00
2022-05-04 09:53:12 -04:00
2022-05-04 09:53:12 -04:00
2022-05-06 10:36:15 -04:00
2022-05-04 10:43:54 -04:00
2021-04-09 16:44:56 -04:00
2022-05-04 10:03:27 -04:00
2021-10-04 15:23:02 -04:00
2022-05-10 17:53:13 -04:00
2022-03-28 12:54:39 -04:00
2022-05-04 10:03:27 -04:00
2022-05-04 10:43:56 -04:00
2022-05-04 10:43:56 -04:00
2021-02-18 16:43:09 -05:00
2022-05-10 17:53:12 -04:00
2022-05-10 17:53:11 -04:00
2022-05-10 17:53:11 -04:00
2022-03-02 18:40:06 -05:00
2021-08-24 15:36:18 -04:00
2022-05-04 10:43:54 -04:00
2022-05-16 10:02:57 -04:00
2022-05-04 10:43:54 -04:00
2022-04-08 17:24:24 -04:00
2022-01-14 17:51:59 -05:00
2022-04-08 17:24:24 -04:00
2022-01-14 17:51:59 -05:00
2022-05-04 09:57:22 -04:00
2020-08-14 16:22:40 -04:00
2022-05-04 09:57:22 -04:00
2020-10-05 15:15:27 -04:00
2022-05-05 16:51:48 -04:00
2022-05-05 16:51:48 -04:00
2022-05-06 10:36:14 -04:00
2022-05-04 09:57:18 -04:00
2022-04-08 17:24:24 -04:00
2022-01-14 17:51:59 -05:00
2021-08-18 18:22:25 -04:00
2022-02-09 12:17:57 -05:00
2022-01-07 17:19:34 -05:00
2022-02-09 12:17:57 -05:00
2021-08-16 15:17:57 -04:00
2022-02-25 05:50:18 +10:00
2022-05-04 09:53:28 -04:00
2022-04-08 17:24:24 -04:00
2021-10-13 14:14:34 -04:00
2022-05-04 09:52:44 -04:00
2022-05-04 09:52:44 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2020-10-05 15:15:27 -04:00
2022-04-08 17:24:24 -04:00
2022-01-14 17:51:59 -05:00
2022-05-13 13:14:37 -04:00
2022-05-06 10:36:13 -04:00
2022-05-06 16:56:57 -04:00
2021-10-20 11:43:57 -04:00
2022-03-22 10:53:39 -04:00
2022-05-04 09:55:18 -04:00
2022-01-14 17:52:00 -05:00
2021-10-28 14:26:12 -04:00
2021-07-23 10:08:01 -04:00
2021-07-23 10:08:01 -04:00
2022-01-14 17:52:00 -05:00
2021-10-28 14:26:12 -04:00
2022-05-26 14:56:33 -04:00
2021-03-23 22:51:54 -04:00
2022-05-04 10:03:27 -04:00
2022-05-04 10:03:27 -04:00
2022-05-04 10:03:27 -04:00
2022-01-18 17:24:18 -05:00
2022-01-14 17:52:00 -05:00
2022-05-04 10:43:50 -04:00
2022-05-16 10:02:57 -04:00
2022-05-04 10:43:55 -04:00
2022-05-10 17:53:11 -04:00
2022-05-04 10:43:55 -04:00
2022-05-04 10:03:27 -04:00
2021-05-19 23:50:27 -04:00
2022-02-17 15:59:05 -05:00
2022-02-07 17:59:53 -05:00
2022-01-27 15:49:48 -05:00
2022-04-08 17:24:24 -04:00
2020-11-13 00:13:16 -05:00
2022-04-08 17:24:24 -04:00
2021-02-09 15:28:21 -05:00
2022-04-08 17:24:24 -04:00
2020-11-13 00:13:22 -05:00
2022-05-04 09:54:38 -04:00
2022-05-04 09:54:38 -04:00
2022-04-08 17:24:24 -04:00
2021-03-23 22:52:38 -04:00
2022-04-28 17:48:35 -04:00
2022-04-28 17:47:43 -04:00
2021-10-20 11:43:57 -04:00
2022-05-26 14:56:33 -04:00
2022-04-28 17:48:40 -04:00
2020-08-14 16:22:39 -04:00
2022-01-18 17:22:36 -05:00
2021-03-23 23:27:41 -04:00
2021-08-18 18:22:24 -04:00
2021-05-19 23:50:27 -04:00
2022-01-27 15:48:56 -05:00
2022-01-14 17:51:59 -05:00
2022-04-11 13:50:35 -04:00
2022-01-27 15:49:13 -05:00
2022-02-23 14:02:51 -05:00
2022-01-14 17:51:59 -05:00
2021-09-23 15:17:29 -04:00
2021-09-23 15:17:29 -04:00
2022-04-08 17:24:24 -04:00
2022-04-08 17:24:24 -04:00
2022-05-04 10:03:27 -04:00
2021-09-23 15:17:29 -04:00
2022-04-08 17:24:24 -04:00
2022-05-04 10:03:27 -04:00
2022-05-10 17:53:13 -04:00
2022-05-06 16:57:36 -04:00
2022-03-25 12:40:24 -04:00
2020-10-14 15:27:50 -04:00
2022-05-04 10:43:56 -04:00
2022-05-10 17:53:13 -04:00
2022-03-28 12:54:39 -04:00
2022-05-06 16:57:44 -04:00
2022-05-06 16:57:44 -04:00
2022-05-10 17:53:13 -04:00
2022-05-04 10:43:56 -04:00
2022-05-05 16:50:22 -04:00
2021-12-01 16:03:34 -05:00
2020-12-23 15:05:35 -05:00
2022-05-06 16:57:28 -04:00