Abhinav Parihar
5d4b707b45
BACKPORT: dsp-kernel: Add attribute and flag checks during map creation
...
A persistence map is expected to hold refs=2 during its creation.
However, the Fuzzy test can create a persistence map by configuring
a mismatch between attributes and flags using the KEEP MAP attribute
and FD NOMAP flags. This sets the map reference count to 1. The user
then calls fastrpc_internal_munmap_fd to free the map since it
doesn't check flags, which can cause a use-after-free (UAF) for the
file map and shared buffer. Add a check to restrict DMA handle
maps with invalid attributes.
Change-Id: I2f024ef99cc2a0487010504166e3af3433d5302d
Acked-by: Santosh <quic_ssakore@quicinc.com >
Signed-off-by: Abhinav Parihar <quic_parihar@quicinc.com >
2025-04-08 16:42:26 +03:00
..
2024-12-05 11:21:28 +00:00
2023-09-23 10:48:09 +02:00
2024-10-01 11:50:22 +03:00
2024-11-08 16:19:12 +01:00
2024-09-04 13:13:00 +02:00
2025-01-10 13:09:21 +02:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-05-07 22:02:57 +03:00
2025-04-08 16:42:26 +03:00
2025-03-30 23:53:37 +01:00
2024-12-16 01:21:42 +02:00
2025-01-10 13:09:21 +02:00
2025-03-30 23:53:38 +01:00
2025-01-10 13:09:21 +02:00
2023-10-16 15:01:41 +03:00
2024-08-06 00:36:59 +03:00
2024-08-06 00:36:59 +03:00
2025-01-10 13:09:21 +02:00
2024-08-06 00:36:59 +03:00
2024-05-17 11:42:42 +02:00
2025-01-10 13:09:21 +02:00
2024-11-09 11:24:17 +00:00
2025-03-15 11:43:26 +05:45
2025-01-10 13:09:21 +02:00
2024-09-12 11:02:54 +02:00
2024-11-09 11:24:17 +00:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-12-05 11:21:28 +00:00
2024-12-16 01:21:42 +02:00
2024-10-09 03:14:26 +03:00
2024-12-16 01:21:42 +02:00
2024-08-19 05:32:07 +02:00
2024-10-01 11:50:22 +03:00
2024-08-19 05:32:01 +02:00
2024-12-16 01:21:42 +02:00
2023-11-28 16:46:35 +00:00
2025-02-13 00:24:31 +02:00
2025-02-14 04:05:00 +02:00
2024-12-05 10:59:34 +01:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2024-12-05 11:21:28 +00:00
2025-01-10 13:09:21 +02:00
2024-06-22 18:08:23 +03:00
2024-11-08 16:19:07 +01:00
2023-11-26 12:52:14 +00:00
2024-12-05 11:21:28 +00:00
2024-10-09 03:14:26 +03:00
2024-12-19 20:56:40 +01:00
2023-10-10 21:44:58 +02:00
2024-11-08 16:19:20 +01:00
2025-01-10 13:09:21 +02:00
2024-09-12 11:02:51 +02:00
2024-05-07 22:02:57 +03:00
2024-12-16 01:21:42 +02:00
2025-02-14 04:05:00 +02:00
2024-02-23 08:12:44 +01:00
2025-01-10 13:09:21 +02:00
2024-11-08 16:19:10 +01:00
2024-07-05 09:00:20 +02:00
2024-10-01 11:50:22 +03:00
2024-08-06 00:36:59 +03:00
2024-08-19 05:32:09 +02:00
2024-11-08 16:19:04 +01:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2024-11-09 11:24:17 +00:00
2025-01-10 13:09:21 +02:00
2024-12-05 10:59:42 +01:00
2025-02-14 04:05:00 +02:00
2025-01-10 13:09:21 +02:00
2024-11-08 16:19:03 +01:00
2025-01-10 13:09:21 +02:00
2024-09-04 13:13:00 +02:00
2025-03-13 00:20:56 +00:00
2024-05-17 11:42:40 +02:00
2023-12-14 13:13:51 +02:00
2025-01-10 13:09:21 +02:00
2024-10-09 03:14:26 +03:00
2025-01-10 13:09:21 +02:00
2024-12-05 11:21:28 +00:00
2024-05-03 06:16:46 +00:00
2025-01-10 13:09:21 +02:00
2024-06-17 09:34:03 +00:00
2024-01-25 14:33:36 -08:00
2024-11-08 16:19:06 +01:00