[PATCH] lib: sbi_trap_v_ldst: fix mask buffer overflow on VLEN > 128

Sebastian Alba Vives sebasjosue84 at gmail.com
Sat Oct 10 21:17:00 PDT 2026


Ping.

This is a stack buffer overflow in M-mode reachable from S-mode or
U-mode on any hart with VLEN > 128, which covers most vector-capable
hardware shipping today.

The fix is a unit conversion at two call sites. Happy to rework it if
there's a preferred approach.

Thanks,
Sebastian



More information about the opensbi mailing list