Heinrich Schuchardt
574b9c8ec2
lib: sbi_pmu: avoid buffer overflow
...
total_ctrs is bounded by
SBI_PMU_FW_CTR_MAX + SBI_PMU_HW_CTR_MAX) == 48
which exceeds BITS_PER_LONG on 32 bit systems.
Iterating over the bits of &cmask results in a buffer overflow when looking
for a bit >= BITS_PER_LONG.
Adjust the iterators in sbi_pmu_ctr_start() and sbi_pmu_ctr_stop()
accordingly.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2023-11-22 20:55:22 +05:30
..
2023-04-07 09:36:01 +05:30
2023-06-05 15:46:09 +05:30
2023-08-18 14:50:38 +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-11-17 16:03:21 +05:30
2023-04-07 09:36:01 +05:30
2023-11-16 21:03:26 +05:30
2023-05-21 16:27:38 +05:30
2023-05-21 16:54:00 +05:30
2023-07-13 12:44:22 +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-08-22 13:26:09 +05:30
2022-10-23 10:19:28 +05:30
2023-01-06 17:26:35 +05:30
2023-11-22 20:42:24 +05:30
2023-06-05 15:46:09 +05:30
2021-11-02 16:02:08 +05:30
2023-09-24 11:41:54 +05:30
2023-05-11 12:31:34 +05:30
2023-09-24 11:41:54 +05:30
2023-09-24 11:39:38 +05:30
2022-02-28 09:43:12 +05:30
2020-05-10 09:59:24 +05:30
2023-10-09 13:53:20 +05:30
2023-09-24 11:39:30 +05:30
2023-11-22 20:55:22 +05:30
2023-09-24 11:41:54 +05:30
2022-09-13 17:17:10 +05:30
2023-09-24 11:48:21 +05:30
2023-07-09 11:06:24 +05:30
2023-11-16 09:21:47 +05:30
2023-05-11 12:31:34 +05:30
2023-05-11 12:31:34 +05:30