Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-08-04 Thread Alistair Francis
On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > Coverity complained about the possible out-of-bounds access with > counter_virt/counter_virt_prev because these two arrays are > accessed with privilege mode. However, these two arrays are accessed > only when virt is enabled. Thus, the privil

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-08-04 Thread Alistair Francis
On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > Coverity complained about the possible out-of-bounds access with > counter_virt/counter_virt_prev because these two arrays are > accessed with privilege mode. However, these two arrays are accessed > only when virt is enabled. Thus, the privil

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-07-31 Thread Peter Maydell
On Sat, 27 Jul 2024 at 02:36, Atish Kumar Patra wrote: > > On Thu, Jul 25, 2024 at 10:12 PM Alistair Francis > wrote: > > > > On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > > > > > Coverity complained about the possible out-of-bounds access with > > > counter_virt/counter_virt_prev beca

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-07-31 Thread Alistair Francis
On Sat, Jul 27, 2024 at 11:36 AM Atish Kumar Patra wrote: > > On Thu, Jul 25, 2024 at 10:12 PM Alistair Francis > wrote: > > > > On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > > > > > Coverity complained about the possible out-of-bounds access with > > > counter_virt/counter_virt_prev b

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-07-26 Thread Atish Kumar Patra
On Thu, Jul 25, 2024 at 10:12 PM Alistair Francis wrote: > > On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > > > Coverity complained about the possible out-of-bounds access with > > counter_virt/counter_virt_prev because these two arrays are > > accessed with privilege mode. However, these

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-07-26 Thread Atish Kumar Patra
On Thu, Jul 25, 2024 at 10:12 PM Alistair Francis wrote: > > On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > > > Coverity complained about the possible out-of-bounds access with > > counter_virt/counter_virt_prev because these two arrays are > > accessed with privilege mode. However, these

Re: [PATCH] target/riscv: Add asserts for out-of-bound access

2024-07-25 Thread Alistair Francis
On Wed, Jul 24, 2024 at 6:33 PM Atish Patra wrote: > > Coverity complained about the possible out-of-bounds access with > counter_virt/counter_virt_prev because these two arrays are > accessed with privilege mode. However, these two arrays are accessed > only when virt is enabled. Thus, the privil