]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Mar 2025 22:58:40 +0000 (14:58 -0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 19 Mar 2025 06:42:09 +0000 (16:42 +1000)
commit1a010d22b7adecf0fb1c069e1e535af1aa51e9cf
treeed0ada7c4759ebed234e258263d0d36a02de2da9
parent4e9e2478dfd26480bbf50367a67b9be0edafef2b
linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall

The third argument of the syscall contains the size of the
cpu mask in bytes, not bits.  Nor is the size rounded up to
a multiple of sizeof(abi_ulong).

Cc: qemu-stable@nongnu.org
Reported-by: Andreas Schwab <schwab@suse.de>
Fixes: 9e1c7d982d7 ("linux-user/riscv: Add syscall riscv_hwprobe")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250308225902.1208237-3-richard.henderson@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
linux-user/syscall.c