Heinrich Schuchardt
eb736a5118
lib: sbi_pmu: Avoid out of bounds access
...
On a misconfigured system we could access phs->active_events[] out of
bounds. Check that num_hw_ctrs is less or equal SBI_PMU_HW_CTR_MAX.
Addresses-Coverity-ID: 1566113 ("Out-of-bounds read")
Addresses-Coverity-ID: 1566114 ("Out-of-bounds write")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
2023-07-05 09:29:24 +05:30
..
2023-04-07 09:36:01 +05:30
2023-06-05 15:46:09 +05:30
2023-05-11 12:31:34 +05:30
2021-04-09 18:51:02 +05:30
2019-06-19 09:48:51 +05:30
2021-05-14 17:05:20 +05:30
2020-03-11 15:29:45 +05:30
2022-02-04 11:04:19 +05:30
2023-05-26 12:36:54 +05:30
2023-04-07 09:36:01 +05:30
2023-06-05 15:55:21 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:54:00 +05:30
2023-07-05 09:25:32 +05:30
2022-10-23 11:00:30 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:30:29 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:54:00 +05:30
2023-05-21 16:54:00 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:53:02 +05:30
2023-05-21 16:27:38 +05:30
2023-05-11 12:31:34 +05:30
2022-10-23 10:19:28 +05:30
2023-01-06 17:26:35 +05:30
2023-04-06 18:52:03 +05:30
2023-06-05 15:46:09 +05:30
2021-11-02 16:02:08 +05:30
2023-05-11 12:31:34 +05:30
2023-05-11 12:31:34 +05:30
2023-06-05 15:46:22 +05:30
2023-05-11 12:46:42 +05:30
2022-02-28 09:43:12 +05:30
2020-05-10 09:59:24 +05:30
2022-09-13 16:43:07 +05:30
2021-09-03 12:16:01 +05:30
2023-07-05 09:29:24 +05:30
2023-06-05 15:46:22 +05:30
2022-09-13 17:17:10 +05:30
2023-06-04 15:18:40 +05:30
2022-07-08 14:51:24 +05:30
2023-04-14 13:45:30 +05:30
2023-05-11 12:31:34 +05:30
2023-05-11 12:31:34 +05:30