Re: [PATCH] KVM: X86: init irq->level in kvm_pv_kick_cpu_op

2017-08-02 Thread Radim Krčmář
2017-08-02 11:20+0800, Longpeng(Mike): > 'lapic_irq' is a local variable and its 'level' field isn't > initialized, so 'level' is random, it doesn't matter but > makes UBSAN unhappy: > > UBSAN: Undefined behaviour in .../lapic.c:... > load of value 10 is not a valid value for type '_Bool' > ... >

Re: [PATCH] KVM: X86: init irq->level in kvm_pv_kick_cpu_op

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 05:20, Longpeng(Mike) wrote: > 'lapic_irq' is a local variable and its 'level' field isn't > initialized, so 'level' is random, it doesn't matter but > makes UBSAN unhappy: > > UBSAN: Undefined behaviour in .../lapic.c:... > load of value 10 is not a valid value for type '_Bool' > ..

[PATCH] KVM: X86: init irq->level in kvm_pv_kick_cpu_op

2017-08-01 Thread Longpeng(Mike)
'lapic_irq' is a local variable and its 'level' field isn't initialized, so 'level' is random, it doesn't matter but makes UBSAN unhappy: UBSAN: Undefined behaviour in .../lapic.c:... load of value 10 is not a valid value for type '_Bool' ... Call Trace: [] dump_stack+0x1e/0x20 [] ubsan_epilogue