Raymond Mao
0a31d3128e
lib: fdtdec: validate bloblist FDT before consuming libfdt size
...
Coverity Scan defects are observed in fdtdec_apply_bloblist_dtos(),
since the live FDT taken from the bloblist is passed to libfdt helpers
which consume header size/offset fields:
- fdt_open_into()
- fdt_pack()
Validate the bloblist FDT with fdt_check_full() before calling
fdt_open_into() and again after applying overlays before calling
fdt_pack(). This makes the libfdt consumers operate on a checked FDT
blob while keeping the existing flow unchanged.
Also normalize libfdt return codes from this path to errno values,
including the overlay callback path through bloblist_apply_blobs().
Fixes: b70cbbfbf9 ("fdtdec: apply DT overlays from bloblist")
Addresses-Coverity-ID: CID 645837: (TAINTED_SCALAR)
Signed-off-by: Raymond Mao <raymond.mao@riscstar.com >
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com >
2026-05-08 15:49:27 -06:00
..
2025-11-06 08:30:33 -06:00
2025-04-11 12:16:44 -06:00
2023-12-21 08:54:37 -05:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2026-01-13 09:42:44 -06:00
2025-04-11 12:16:44 -06:00
2024-07-15 12:12:18 -06:00
2026-03-27 10:50:29 +01:00
2025-07-26 07:34:31 +02:00
2025-11-15 11:36:50 +01:00
2025-11-06 23:26:28 +01:00
2026-05-05 16:29:08 +02:00
2026-05-05 16:29:08 +02:00
2026-04-17 08:02:42 +02:00
2024-07-15 12:12:18 -06:00
2024-10-11 11:44:48 -06:00
2026-03-13 10:52:02 -06:00
2026-01-06 14:44:21 -06:00
2024-07-15 12:12:18 -06:00
2025-06-14 09:09:40 -06:00
2026-04-03 12:06:07 -06:00
2026-03-27 10:50:29 +01:00
2025-04-08 16:23:51 -06:00
2024-07-15 12:12:18 -06:00
2025-05-30 09:49:31 +01:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-11-03 21:27:12 -06:00
2024-08-26 14:06:08 -06:00
2023-09-24 09:54:57 -04:00
2023-12-21 08:54:37 -05:00
2025-05-27 10:07:36 +01:00
2024-04-20 08:22:24 +02:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-02-03 16:01:36 -06:00
2023-12-21 08:54:37 -05:00
2022-04-21 14:32:40 -04:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-10-11 11:44:48 -06:00
2024-08-27 18:01:21 -06:00
2023-12-21 08:54:37 -05:00
2021-05-24 14:21:30 -04:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2026-05-08 15:49:27 -06:00
2025-10-09 13:50:40 -06:00
2023-12-21 08:54:37 -05:00
2026-04-22 13:51:41 -06:00
2024-07-05 13:57:02 -06:00
2024-10-11 11:44:48 -06:00
2023-12-21 08:54:37 -05:00
2024-12-07 09:07:45 -03:00
2024-10-11 11:44:48 -06:00
2024-02-09 09:42:04 +01:00
2026-04-27 11:28:25 -06:00
2026-03-13 13:22:01 -06:00
2025-05-16 06:21:36 +02:00
2023-12-21 08:54:37 -05:00
2026-03-13 13:20:11 -06:00
2025-02-03 16:01:36 -06:00
2025-10-10 14:25:33 -06:00
2026-03-12 09:30:44 +01:00
2024-12-06 17:47:23 -06:00
2025-04-03 16:54:49 -06:00
2024-11-18 16:12:35 +01:00
2025-05-30 09:49:31 +01:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2021-06-11 16:34:52 +05:30
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-12-06 17:47:23 -06:00
2025-01-18 17:12:47 -06:00
2025-01-18 17:12:47 -06:00
2024-12-06 17:47:23 -06:00
2025-05-29 08:25:18 -06:00
2026-02-11 11:13:47 +02:00
2024-02-02 19:57:45 +01:00
2026-02-18 08:27:51 -06:00
2026-04-21 11:19:49 -06:00
2024-11-13 08:14:23 -06:00
2024-01-09 10:08:52 +01:00
2025-04-23 13:19:44 -06:00
2025-05-22 10:57:12 -06:00
2025-01-28 08:58:41 +02:00
2025-12-04 09:38:58 -06:00
2023-12-21 08:54:37 -05:00
2022-01-19 18:11:34 +01:00
2024-10-14 17:58:30 -06:00
2025-12-04 09:38:58 -06:00
2025-06-13 16:57:15 -06:00
2025-04-23 13:19:44 -06:00
2026-03-14 08:10:26 +01:00
2026-04-21 11:19:49 -06:00