In the Linux kernel, the following vulnerability has been resolved: riscv/purgatory: align riscv_kernel_entry When alignment handling is delegated to the kernel, everything must be word-aligned in purgatory, since the trap handler is then set to the kexec one. Without the alignment, hitting the exception would ultimately crash. On other occasions, the kernel's handler would take care of exceptions. This has been tested on a JH7110 SoC with oreboot and its SBI delegating unaligned access exceptions and the kernel configured to handle them.
https://git.kernel.org/stable/c/fb197c5d2fd24b9af3d4697d0cf778645846d6d5
https://git.kernel.org/stable/c/6e62dab357eea12db0fc62dea94c7a892888e6e8
https://git.kernel.org/stable/c/5d4aaf16a8255f7c71790e211724ba029609c5ff
https://git.kernel.org/stable/c/10ffafb456f293976c42f700578ef740467cb569