Guchun Chen
5a63a025c2
drm/amdgpu: fix NULL pointer dereference
[ Upstream commit 3c3dc65433 ]
ttm->sg needs to be checked before accessing its child member.
Call Trace:
amdgpu_ttm_backend_destroy+0x12/0x70 [amdgpu]
ttm_bo_cleanup_memtype_use+0x3a/0x60 [ttm]
ttm_bo_release+0x17d/0x300 [ttm]
amdgpu_bo_unref+0x1a/0x30 [amdgpu]
amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu+0x78b/0x8b0 [amdgpu]
kfd_ioctl_alloc_memory_of_gpu+0x118/0x220 [amdgpu]
kfd_ioctl+0x222/0x400 [amdgpu]
? kfd_dev_is_large_bar+0x90/0x90 [amdgpu]
__x64_sys_ioctl+0x8e/0xd0
? __context_tracking_exit+0x52/0x90
do_syscall_64+0x33/0x80
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f97f264d317
Code: b3 66 90 48 8b 05 71 4b 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 41 4b 2d 00 f7 d8 64 89 01 48
RSP: 002b:00007ffdb402c338 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f97f3cc63a0 RCX: 00007f97f264d317
RDX: 00007ffdb402c380 RSI: 00000000c0284b16 RDI: 0000000000000003
RBP: 00007ffdb402c380 R08: 00007ffdb402c428 R09: 00000000c4000004
R10: 00000000c4000004 R11: 0000000000000246 R12: 00000000c0284b16
R13: 0000000000000003 R14: 00007f97f3cc63a0 R15: 00007f8836200000
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:59:18 +02:00
..
2020-08-05 10:05:59 +02:00
2016-10-25 14:38:45 -04:00
2019-06-11 12:20:55 +02:00
2017-03-29 23:53:24 -04:00
2018-07-03 13:13:08 +02:00
2018-09-20 10:25:01 -05:00
2018-07-16 19:10:36 -04:00
2018-07-16 19:10:36 -04:00
2018-08-21 14:19:26 -05:00
2018-12-01 09:37:28 +01:00
2018-09-20 10:25:17 -05:00
2020-03-18 07:14:20 +01:00
2017-12-18 10:58:35 -05:00
2018-05-24 10:07:55 -05:00
2018-05-17 10:13:22 -05:00
2019-09-06 10:22:19 +02:00
2018-07-10 14:15:58 -05:00
2020-10-01 13:14:40 +02:00
2019-11-06 13:06:02 +01:00
2018-07-31 16:58:19 -05:00
2018-12-19 19:19:53 +01:00
2020-09-03 11:24:19 +02:00
2015-06-03 21:03:15 -04:00
2019-01-13 09:50:57 +01:00
2018-07-25 15:06:19 -05:00
2021-03-11 14:04:59 +01:00
2017-12-18 10:59:01 -05:00
2019-02-20 10:25:39 +01:00
2020-10-07 08:00:05 +02:00
2018-05-15 13:43:43 -05:00
2018-07-05 16:39:59 -05:00
2018-07-05 16:38:48 -05:00
2020-09-03 11:24:19 +02:00
2015-08-17 16:50:21 -04:00
2018-07-13 18:40:27 +02:00
2018-07-20 14:24:18 -05:00
2020-08-19 08:14:51 +02:00
2018-07-10 14:15:39 -05:00
2018-07-05 16:39:49 -05:00
2016-08-19 12:30:58 -04:00
2020-11-05 11:08:52 +01:00
2018-01-29 23:14:30 -05:00
2017-06-07 18:20:59 -04:00
2020-03-05 16:42:18 +01:00
2018-02-20 15:09:21 -05:00
2017-01-27 11:12:39 -05:00
2016-09-27 13:00:52 -04:00
2019-10-11 18:21:16 +02:00
2018-11-21 09:19:25 +01:00
2018-02-19 14:20:18 -05:00
2017-12-18 10:59:07 -05:00
2018-03-14 15:16:35 -05:00
2015-06-03 21:03:15 -04:00
2021-05-22 10:59:17 +02:00
2018-02-19 14:18:16 -05:00
2019-11-12 19:21:14 +01:00
2018-07-17 14:18:28 -05:00
2020-09-03 11:24:29 +02:00
2018-08-22 10:52:44 -07:00
2018-03-23 15:32:28 -04:00
2018-12-13 09:16:12 +01:00
2019-11-10 11:27:27 +01:00
2018-07-25 15:06:13 -05:00
2016-09-14 15:10:37 -04:00
2015-06-03 21:03:15 -04:00
2021-03-04 09:39:41 +01:00
2017-08-15 14:46:06 -04:00
2019-03-13 14:02:35 -07:00
2019-06-11 12:20:55 +02:00
2018-02-19 14:18:31 -05:00
2018-07-27 09:07:44 -05:00
2018-07-18 16:18:43 -05:00
2018-07-27 09:07:41 -05:00
2018-02-28 14:18:07 -05:00
2018-08-21 14:19:18 -05:00
2017-12-07 11:51:56 -05:00
2018-02-06 20:32:37 -05:00
2018-02-06 20:32:37 -05:00
2019-12-31 16:35:49 +01:00
2017-11-15 20:42:10 -08:00
2021-03-04 09:39:38 +01:00
2021-05-22 10:59:18 +02:00
2018-07-13 14:46:11 -05:00
2018-11-21 09:19:25 +01:00
2018-08-13 17:19:10 -05:00
2021-05-22 10:59:18 +02:00
2018-08-13 17:20:10 -05:00
2019-09-16 08:22:15 +02:00
2018-08-13 17:21:29 -05:00
2019-09-16 08:22:15 +02:00
2018-06-15 12:20:38 -05:00
2017-10-20 13:28:44 -04:00
2017-09-28 16:03:20 -04:00
2018-03-07 16:10:13 -05:00
2018-02-19 14:18:48 -05:00
2021-04-07 12:48:50 +02:00
2018-08-27 14:48:25 -05:00
2018-07-13 14:46:11 -05:00
2018-07-31 16:58:18 -05:00
2020-10-01 13:14:36 +02:00
2017-08-29 15:27:54 -04:00
2017-06-20 12:06:49 -04:00
2016-05-04 20:23:53 -04:00
2016-08-08 13:28:39 -04:00
2015-06-03 21:03:15 -04:00
2018-03-14 15:39:51 -05:00
2018-03-14 15:39:51 -05:00
2017-12-06 12:47:59 -05:00
2016-07-14 16:39:35 -04:00
2018-07-05 16:39:59 -05:00
2018-03-06 13:12:38 -05:00
2017-05-16 17:17:41 +02:00
2018-03-15 09:57:50 -05:00
2018-02-26 23:09:36 -05:00
2016-10-25 14:38:45 -04:00
2020-11-18 19:18:45 +01:00
2016-10-25 14:38:45 -04:00
2018-07-25 15:06:40 -05:00
2018-02-19 14:18:10 -05:00
2017-11-27 18:29:47 -05:00
2015-06-03 21:03:17 -04:00
2015-06-03 21:03:12 -04:00
2017-12-13 17:28:08 -05:00
2017-01-27 12:20:41 -05:00
2015-06-03 21:03:17 -04:00
2018-02-26 23:09:36 -05:00
2016-10-25 14:38:45 -04:00
2018-07-10 14:15:39 -05:00
2016-10-25 14:38:45 -04:00
2018-07-10 14:15:39 -05:00
2016-10-25 14:38:45 -04:00
2018-07-13 14:45:30 -05:00
2016-10-25 14:38:45 -04:00
2018-07-13 14:45:30 -05:00
2016-10-25 14:38:45 -04:00
2018-07-20 14:54:31 +10:00
2016-10-25 14:38:45 -04:00
2018-05-23 23:51:21 -05:00
2018-04-11 13:07:54 -05:00
2020-01-09 10:18:55 +01:00
2018-05-18 16:08:15 -05:00
2018-02-19 14:19:49 -05:00
2018-07-05 16:39:58 -05:00
2016-10-25 14:38:45 -04:00
2018-07-05 16:39:58 -05:00
2017-05-31 16:48:48 -04:00
2020-01-09 10:18:55 +01:00
2017-05-31 16:48:48 -04:00
2019-12-31 16:35:48 +01:00
2017-08-15 14:46:13 -04:00
2018-02-26 23:09:36 -05:00
2017-08-15 14:46:00 -04:00
2018-12-01 09:37:28 +01:00
2016-10-25 14:38:45 -04:00
2018-08-22 16:36:49 -05:00
2016-10-25 14:38:45 -04:00
2018-12-13 09:16:21 +01:00
2016-10-25 14:38:45 -04:00
2020-03-05 16:42:18 +01:00
2017-03-29 23:54:44 -04:00
2018-02-26 23:09:36 -05:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2017-09-26 17:01:32 -04:00
2018-08-27 14:49:48 -05:00
2015-06-03 21:03:17 -04:00
2017-05-16 17:17:41 +02:00
2018-05-18 16:08:15 -05:00
2019-04-27 09:36:38 +02:00
2017-08-15 14:46:00 -04:00
2017-04-28 17:32:57 -04:00
2019-02-20 10:25:39 +01:00
2018-03-14 14:38:27 -05:00
2017-12-18 10:59:58 -05:00
2017-09-26 15:14:12 -04:00
2018-03-20 23:43:25 -05:00
2017-12-13 17:28:07 -05:00
2018-05-17 10:13:18 -05:00
2017-12-13 17:28:07 -05:00
2018-06-15 12:20:42 -05:00
2016-07-15 12:33:31 -04:00
2018-05-15 13:43:35 -05:00
2018-06-13 13:45:20 -05:00
2018-02-19 14:18:31 -05:00
2018-08-13 17:19:27 -05:00
2018-02-19 14:18:31 -05:00
2016-08-31 15:21:09 -04:00
2018-07-13 14:45:30 -05:00
2016-10-25 14:38:45 -04:00
2018-07-13 14:45:30 -05:00
2016-10-25 14:38:45 -04:00
2019-02-20 10:25:42 +01:00
2017-03-29 23:54:45 -04:00
2018-03-05 15:37:12 -05:00
2016-10-25 14:38:45 -04:00
2018-08-27 14:49:33 -05:00
2018-03-15 09:57:50 -05:00
2017-02-08 17:25:02 -05:00
2019-12-31 16:36:15 +01:00
2016-10-25 14:38:45 -04:00
2017-05-16 17:17:41 +02:00
2019-10-07 18:56:58 +02:00
2018-02-19 14:18:08 -05:00
2017-01-27 12:20:41 -05:00
2016-09-28 16:13:17 -04:00
2020-02-24 08:34:40 +01:00
2020-02-28 16:38:50 +01:00
2018-05-17 10:13:17 -05:00
2018-06-15 12:20:34 -05:00
2018-02-26 23:09:36 -05:00
2016-10-25 14:38:45 -04:00
2015-09-02 12:21:35 -04:00
2019-01-26 09:32:36 +01:00
2016-10-25 14:38:45 -04:00
2019-01-26 09:32:36 +01:00
2016-10-25 14:38:45 -04:00
2019-09-16 08:22:15 +02:00
2016-10-25 14:38:45 -04:00
2019-09-16 08:22:15 +02:00
2017-03-29 23:54:47 -04:00
2018-08-13 17:21:29 -05:00
2016-10-25 14:38:45 -04:00
2018-08-13 17:21:29 -05:00
2016-10-25 14:38:45 -04:00
2018-08-16 12:59:11 -05:00
2017-03-29 23:54:47 -04:00
2020-04-13 10:45:00 +02:00
2017-05-24 17:41:27 -04:00
2018-12-01 09:37:33 +01:00
2017-03-29 23:54:46 -04:00
2018-07-10 14:16:39 -05:00
2017-03-29 23:54:30 -04:00
2018-08-21 14:16:50 -05:00
2017-01-27 11:12:43 -05:00
2018-08-21 14:17:36 -05:00
2018-02-19 14:18:11 -05:00
2017-11-01 19:22:00 -04:00