Re: [PATCH v2] linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall

2025-03-11 Thread Alistair Francis
On Sun, Mar 9, 2025 at 9:00 AM Richard Henderson wrote: > > 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-sta...@nongnu.org > Reported-by: Andreas Schwab > Fixes: 9e1c7d982d7

Re: [PATCH v2] linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall

2025-03-10 Thread Alistair Francis
On Sun, Mar 9, 2025 at 9:00 AM Richard Henderson wrote: > > 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-sta...@nongnu.org > Reported-by: Andreas Schwab > Fixes: 9e1c7d982d7

[PATCH v2] linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall

2025-03-08 Thread Richard Henderson
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-sta...@nongnu.org Reported-by: Andreas Schwab Fixes: 9e1c7d982d7 ("linux-user/riscv: Add syscall riscv_hwprobe") Signed-off-by: Richard

[PATCH v2] linux-user/riscv: Fix handling of cpu mask in riscv_hwprobe syscall

2025-03-08 Thread Richard Henderson
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-sta...@nongnu.org Reported-by: Andreas Schwab Fixes: 9e1c7d982d7 ("linux-user/riscv: Add syscall riscv_hwprobe") Signed-off-by: Richard