opensbi/lib/sbi
Heinrich Schuchardt 37e1544a86 lib: sbi: sse_event_get() may return NULL
sse_event_get() may return NULL. We should not dereference the return value
in sbi_sse_exit() without checking.

Fixes: c8cdf01d8f ("lib: sbi: Add support for Supervisor Software Events extension")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
2024-04-10 09:38:24 +05:30
..
tests lib: tests: Move tests to a separate directory 2024-03-19 11:20:40 +05:30
Kconfig lib: sbi: Implement SBI SSE extension 2024-04-05 15:49:02 +05:30
objects.mk lib: sbi: Implement SBI SSE extension 2024-04-05 15:49:02 +05:30
riscv_asm.c lib: sbi: Add support for smcntrpmf 2023-08-18 14:50:38 +05:30
riscv_atomic.c lib: sbi: Replace __atomic_op_bit_ord with __atomic intrinsics 2023-12-08 14:06:40 +05:30
riscv_hardfp.S lib: Move sbi core library to lib/sbi 2019-06-19 09:48:51 +05:30
riscv_locks.c lib: sbi: Have spinlock checks return bool 2021-05-14 17:05:20 +05:30
sbi_bitmap.c lib: Simple bitmap library 2020-03-11 15:29:45 +05:30
sbi_bitops.c lib: fix compilation when strings.h is included 2022-02-04 11:04:19 +05:30
sbi_console.c lib: tests: Move tests to a separate directory 2024-03-19 11:20:40 +05:30
sbi_cppc.c lib: sbi: Implement SBI CPPC extension 2023-04-07 09:36:01 +05:30
sbi_dbtr.c lib: sbi: Use mask to check the free bit during trigger allocation 2024-02-05 10:23:01 +05:30
sbi_domain.c lib: sbi: Add initial domain context management support 2024-03-10 10:26:42 +05:30
sbi_domain_context.c sbi: sbi_domain_context: Check privilege spec version before accessing S-mode CSRs 2024-04-05 18:02:29 +05:30
sbi_ecall.c lib: sbi: Pass trap context pointer to sbi_ecall_handler() 2024-03-19 11:31:39 +05:30
sbi_ecall_base.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_cppc.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_dbcn.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_dbtr.c lib: sbi: Implement SBI debug trigger extension 2024-01-10 10:55:50 +05:30
sbi_ecall_exts.carray lib: sbi_ecall: Generate extensions list with carray 2022-10-23 11:00:30 +05:30
sbi_ecall_hsm.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_ipi.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_legacy.c lib: sbi: Remove epc from struct sbi_trap_info 2024-03-19 11:31:16 +05:30
sbi_ecall_pmu.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_rfence.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_srst.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_sse.c lib: sbi: Implement SBI SSE extension 2024-04-05 15:49:02 +05:30
sbi_ecall_susp.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_time.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_ecall_vendor.c lib: sbi: Allow ecall handlers to directly update register state 2023-12-19 15:56:37 +05:30
sbi_emulate_csr.c lib: sbi_pmu: remove mhpm_count field in hart feature 2023-08-22 13:26:09 +05:30
sbi_expected_trap.S lib: sbi: Remove epc from struct sbi_trap_info 2024-03-19 11:31:16 +05:30
sbi_fifo.c treewide: Replace TRUE/FALSE with true/false 2023-01-06 17:26:35 +05:30
sbi_hart.c lib: sbi: Add missing sscrind and sscfg extensions in sbi_hart_ext[] 2024-04-10 09:33:58 +05:30
sbi_heap.c platform: recalculate heap size to support new tlb entry number 2023-12-11 09:23:24 +05:30
sbi_hfence.S lib: sbi: Fix GPA passed to __sbi_hfence_gvma_xyz() functions 2021-11-02 16:02:08 +05:30
sbi_hsm.c lib: sbi_hsm: Restor hart state to stop when fails to start 2024-02-24 18:18:34 +05:30
sbi_illegal_insn.c lib: sbi: Simplify parameters of sbi_illegal_insn_handler() 2024-03-19 11:31:31 +05:30
sbi_init.c lib: sbi: Wakeup non-coldboot HARTs early in the coldboot path 2024-04-05 17:48:25 +05:30
sbi_ipi.c lib: sbi_ipi: Drop unnecessary ipi_process check 2023-12-18 19:26:35 +05:30
sbi_irqchip.c lib: sbi: Remove regs paramter of sbi_irqchip_process() 2024-03-19 11:31:33 +05:30
sbi_math.c lib: Create a separate math helper function file 2020-05-10 09:59:24 +05:30
sbi_platform.c lib: sbi: Remove sbi_platform_hart_index/invalid() functions 2023-09-24 11:39:30 +05:30
sbi_pmu.c lib: sbi: Add SSE support for PMU events 2024-04-05 17:09:39 +05:30
sbi_scratch.c lib: sbi: Remove sbi_scratch_last_hartid() macro 2023-09-24 11:41:54 +05:30
sbi_sse.c lib: sbi: sse_event_get() may return NULL 2024-04-10 09:38:24 +05:30
sbi_string.c lib: sbi: Fix sbi_strnlen wrong count decrement 2022-09-13 17:17:10 +05:30
sbi_system.c lib: sbi: Fix shift bug in sbi_system_reset 2023-12-26 21:28:34 +05:30
sbi_timer.c lib: sbi: Add Zicntr as a HART ISA extension 2023-07-09 11:06:24 +05:30
sbi_tlb.c lib: sbi_tlb: Reduce size of struct sbi_tlb_info 2023-12-19 15:56:37 +05:30
sbi_trap.c lib: sbi: Add SSE support for PMU events 2024-04-05 17:09:39 +05:30
sbi_trap_ldst.c lib: sbi: Simplify parameters of misaligned and access fault handlers 2024-03-19 11:31:28 +05:30
sbi_unpriv.c lib: sbi: Remove unnecessary semicolon 2023-05-11 12:31:34 +05:30