Re: [PATCH] target/arm: Check if debug is already initialized

2023-04-11 Thread Peter Maydell
On Wed, 5 Apr 2023 at 08:02, Akihiko Odaki wrote: > > When virtualizing SMP system, kvm_arm_init_debug() will be called > multiple times. Check if the debug feature is already initialized when the > function is called; otherwise it will overwrite pointers to memory > allocated with the previous ca

Re: [PATCH] target/arm: Check if debug is already initialized

2023-04-05 Thread Philippe Mathieu-Daudé
On 5/4/23 09:02, Akihiko Odaki wrote: When virtualizing SMP system, kvm_arm_init_debug() will be called multiple times. Check if the debug feature is already initialized when the function is called; otherwise it will overwrite pointers to memory allocated with the previous call and leak it. Fixe

[PATCH] target/arm: Check if debug is already initialized

2023-04-05 Thread Akihiko Odaki
When virtualizing SMP system, kvm_arm_init_debug() will be called multiple times. Check if the debug feature is already initialized when the function is called; otherwise it will overwrite pointers to memory allocated with the previous call and leak it. Fixes: e4482ab7e3 ("target-arm: kvm - add su