[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 2/2] xen/riscv: fix the base ISA checks in riscv_isa_parse_string()



On Mon, 09 Nov 2026 13:49:37 +0100, Oleksii Kurochko 
<oleksii.kurochko@xxxxxxxxx> wrote:
> riscv_isa_parse_string() is meant to reject a riscv,isa string which
> doesn't start with "rv32" or "rv64" (depending on Xen's bitness), but
> the checks are written with && instead of ||, so a string is rejected
> only when both characters of a pair are wrong. As a result, e.g.
> "xv64i" or "rv62i" is accepted on RV64. Also, for a string as short as
> "rv", isa[3] is read past the terminating NUL.
> 
> [...]

Reviewed-by: Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>

-- 
Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.