Reka Norman
8c1d378b8c
HID: intel-ish-hid: ipc: Fix potential use-after-free in work function
...
[ Upstream commit 8ae2f2b0a28416ed2f6d8478ac8b9f7862f36785 ]
When a reset notify IPC message is received, the ISR schedules a work
function and passes the ISHTP device to it via a global pointer
ishtp_dev. If ish_probe() fails, the devm-managed device resources
including ishtp_dev are freed, but the work is not cancelled, causing a
use-after-free when the work function tries to access ishtp_dev. Use
devm_work_autocancel() instead, so that the work is automatically
cancelled if probe fails.
Signed-off-by: Reka Norman <rekanorman@chromium.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-30 12:47:53 +02:00
..
2022-12-31 13:14:39 +01:00
2023-03-10 09:39:29 +01:00
2023-03-30 12:47:53 +02:00
2021-11-18 19:15:59 +01:00
2021-09-01 22:00:06 +02:00
2021-05-05 14:29:13 +02:00
2019-05-30 11:26:32 -07:00
2022-08-17 14:23:57 +02:00
2022-01-27 11:04:27 +01:00
2020-03-13 17:33:11 +01:00
2023-03-10 09:38:57 +01:00
2019-05-21 10:50:45 +02:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2023-02-01 08:27:13 +01:00
2023-03-10 09:39:31 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-07-28 11:51:07 +02:00
2023-03-22 13:31:37 +01:00
2021-12-14 10:57:06 +01:00
2020-08-17 11:38:49 +02:00
2023-03-30 12:47:53 +02:00
2019-09-03 16:52:04 +02:00
2020-10-23 13:23:44 +02:00
2023-03-10 09:39:52 +01:00
2019-10-03 15:36:40 -04:00
2022-06-09 10:22:47 +02:00
2023-03-03 11:45:52 +01:00
2022-03-16 14:23:35 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-22 17:11:58 +02:00
2020-03-18 13:36:21 +01:00
2021-12-14 10:57:05 +01:00
2021-05-27 15:40:34 +02:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-29 12:28:37 +01:00
2019-10-03 15:36:40 -04:00
2022-11-16 09:58:15 +01:00
2019-05-30 11:26:32 -07:00
2023-03-03 11:45:52 +01:00
2023-03-10 09:39:52 +01:00
2022-12-14 11:37:21 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-04-07 18:46:20 +02:00
2019-05-30 11:26:32 -07:00
2022-06-09 10:22:47 +02:00
2021-04-07 12:48:20 +02:00
2019-10-03 15:36:40 -04:00
2019-10-03 15:36:40 -04:00
2022-12-14 11:37:21 +01:00
2021-05-05 14:39:24 +02:00
2021-12-14 10:57:06 +01:00
2019-10-03 15:36:40 -04:00
2022-04-08 14:22:46 +02:00
2023-03-10 09:39:54 +01:00
2020-08-17 11:38:49 +02:00
2022-10-29 10:12:55 +02:00
2019-01-14 20:11:01 +01:00
2022-12-31 13:14:46 +01:00
2020-11-25 14:30:33 +01:00
2020-09-02 12:55:46 -07:00
2019-05-30 11:26:32 -07:00
2023-03-10 09:39:28 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:30:28 +02:00
2020-09-03 16:18:55 +02:00
2021-04-07 18:46:20 +02:00
2019-06-05 17:30:28 +02:00
2020-04-01 12:26:12 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-06-05 17:30:28 +02:00
2019-05-30 11:26:35 -07:00
2023-01-12 11:58:46 +01:00
2023-02-06 07:59:00 +01:00
2019-06-05 17:36:37 +02:00
2021-12-14 10:57:06 +01:00
2023-03-10 09:39:29 +01:00
2019-05-30 11:26:32 -07:00
2020-10-23 16:16:31 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2021-12-14 10:57:06 +01:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2022-10-26 12:35:48 +02:00
2022-11-10 18:15:34 +01:00
2021-12-14 10:57:06 +01:00
2021-05-05 14:21:08 +02:00
2022-12-31 13:14:11 +01:00
2021-05-05 14:36:18 +02:00
2019-05-30 11:26:35 -07:00
2021-12-14 10:57:06 +01:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:06 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:08 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:19 -07:00
2021-12-14 10:57:05 +01:00
2022-12-21 17:36:38 +01:00
2022-01-27 11:03:55 +01:00
2019-02-21 12:00:54 +01:00
2021-04-07 18:46:20 +02:00
2019-02-21 12:00:54 +01:00
2020-07-20 12:24:41 +02:00
2019-02-21 12:00:53 +01:00
2022-03-16 14:23:35 +01:00
2019-05-30 11:26:32 -07:00
2021-01-07 10:14:58 +01:00
2019-05-30 11:26:32 -07:00
2020-06-19 14:17:22 +02:00
2020-06-19 14:17:22 +02:00
2019-05-30 11:26:32 -07:00
2019-10-03 15:36:40 -04:00
2019-05-30 11:26:32 -07:00
2022-09-05 10:30:07 +02:00
2021-12-14 10:57:05 +01:00
2021-08-20 14:53:54 +02:00
2023-03-22 13:31:37 +01:00
2022-12-31 13:14:46 +01:00
2022-12-31 13:14:46 +01:00
2022-12-31 13:14:46 +01:00
2019-11-06 21:37:29 +01:00