Re: s390 KVM warning in handle_pqap()

2020-05-04 Thread Tony Krowiak
I'll check with the z/VM folks. On 5/4/20 4:59 AM, Christian Borntraeger wrote: On 02.05.20 04:38, Qian Cai wrote: This line, if (WARN_ON_ONCE(fc != 0x03)) qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c with this kernel config,

Re: s390 KVM warning in handle_pqap()

2020-05-04 Thread Christian Borntraeger
On 02.05.20 04:38, Qian Cai wrote: > This line, > > if (WARN_ON_ONCE(fc != 0x03)) > > qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c with this kernel config, > > https://raw.githubusercontent.com/cailca/linux-mm/master/s390.config > > # /usr/libexec/qemu-kvm -name

s390 KVM warning in handle_pqap()

2020-05-01 Thread Qian Cai
This line, if (WARN_ON_ONCE(fc != 0x03)) qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c with this kernel config, https://raw.githubusercontent.com/cailca/linux-mm/master/s390.config # /usr/libexec/qemu-kvm -name ubuntu-18.04-server-cloudimg -cpu host -smp 2 -m 2G -hda

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Wanpeng Li
2017-08-10 1:07 GMT+08:00 Dmitry Vyukov : > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit >

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Wanpeng Li
2017-08-10 1:07 GMT+08:00 Dmitry Vyukov : > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit > 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Wanpeng Li
2017-08-10 1:07 GMT+08:00 Dmitry Vyukov : > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit >

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Wanpeng Li
2017-08-10 1:07 GMT+08:00 Dmitry Vyukov : > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit > 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
On Wed, Aug 9, 2017 at 10:24 PM, David Hildenbrand wrote: > On 09.08.2017 19:07, Dmitry Vyukov wrote: >> Hello, >> >> syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. >> This is easily reproducible and reproducer is attached at the bottom. >> The report

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
On Wed, Aug 9, 2017 at 10:24 PM, David Hildenbrand wrote: > On 09.08.2017 19:07, Dmitry Vyukov wrote: >> Hello, >> >> syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. >> This is easily reproducible and reproducer is attached at the bottom. >> The report is on upstream

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread David Hildenbrand
On 09.08.2017 19:07, Dmitry Vyukov wrote: > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit > 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread David Hildenbrand
On 09.08.2017 19:07, Dmitry Vyukov wrote: > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit > 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
On Wed, Aug 9, 2017 at 7:09 PM, Dmitry Vyukov wrote: > -non-existent email address > > On Wed, Aug 9, 2017 at 7:07 PM, Dmitry Vyukov wrote: >> Hello, >> >> syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. >> This is easily

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
On Wed, Aug 9, 2017 at 7:09 PM, Dmitry Vyukov wrote: > -non-existent email address > > On Wed, Aug 9, 2017 at 7:07 PM, Dmitry Vyukov wrote: >> Hello, >> >> syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. >> This is easily reproducible and reproducer is attached at the

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
-non-existent email address On Wed, Aug 9, 2017 at 7:07 PM, Dmitry Vyukov wrote: > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
-non-existent email address On Wed, Aug 9, 2017 at 7:07 PM, Dmitry Vyukov wrote: > Hello, > > syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. > This is easily reproducible and reproducer is attached at the bottom. > The report is on upstream commit >

kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
Hello, syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. This is easily reproducible and reproducer is attached at the bottom. The report is on upstream commit 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires setting kvm-intel.unrestricted_guest=0 on the machine,

kvm: WARNING in kvm_arch_vcpu_ioctl_run

2017-08-09 Thread Dmitry Vyukov
Hello, syzkaller fuzzer has hit the following WARNING in kvm_arch_vcpu_ioctl_run. This is easily reproducible and reproducer is attached at the bottom. The report is on upstream commit 26c5cebfdb6ca799186f1e56be7d6f2480c5012c. This requires setting kvm-intel.unrestricted_guest=0 on the machine,

Re: kvm: warning in kvm_load_guest_fpu

2017-05-10 Thread Wanpeng Li
2017-05-10 9:48 GMT+08:00 Wanpeng Li : > 2017-05-09 22:04 GMT+08:00 Andrey Konovalov : >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 (4.11+). >> >> A

Re: kvm: warning in kvm_load_guest_fpu

2017-05-10 Thread Wanpeng Li
2017-05-10 9:48 GMT+08:00 Wanpeng Li : > 2017-05-09 22:04 GMT+08:00 Andrey Konovalov : >> Hi, >> >> I've got the following error report while fuzzing the kernel with syzkaller. >> >> On commit 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 (4.11+). >> >> A reproducer and .config are attached. > > If

Re: kvm: warning in kvm_load_guest_fpu

2017-05-09 Thread Wanpeng Li
2017-05-09 22:04 GMT+08:00 Andrey Konovalov : > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 (4.11+). > > A reproducer and .config are attached. If there are beauty codes for

Re: kvm: warning in kvm_load_guest_fpu

2017-05-09 Thread Wanpeng Li
2017-05-09 22:04 GMT+08:00 Andrey Konovalov : > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 2868b2513aa732a99ea4a0a6bf10dc93c1f3dac2 (4.11+). > > A reproducer and .config are attached. If there are beauty codes for testing? > > [

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-23 Thread Dmitry Vyukov
On Tue, Mar 14, 2017 at 4:17 PM, Radim Krčmář wrote: > 2017-03-12 12:20+0100, Dmitry Vyukov: >> On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: >>> On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: On

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-23 Thread Dmitry Vyukov
On Tue, Mar 14, 2017 at 4:17 PM, Radim Krčmář wrote: > 2017-03-12 12:20+0100, Dmitry Vyukov: >> On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: >>> On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: On 13/01/2017 12:15, Dmitry Vyukov wrote: > > I've commented out

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread David Hildenbrand
On 22.03.2017 16:34, Dmitry Vyukov wrote: > On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: >> >> >> On 15/02/2017 10:26, David Hildenbrand wrote: Any progress with this? Should we commit this as is? >>> Paolo, should I resend as a proper notcopieddiff

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread David Hildenbrand
On 22.03.2017 16:34, Dmitry Vyukov wrote: > On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: >> >> >> On 15/02/2017 10:26, David Hildenbrand wrote: Any progress with this? Should we commit this as is? >>> Paolo, should I resend as a proper notcopieddiff mail? >> >> Yes,

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread Dmitry Vyukov
On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: > > > On 15/02/2017 10:26, David Hildenbrand wrote: >>> >>> Any progress with this? Should we commit this as is? >>> >> Paolo, should I resend as a proper notcopieddiff mail? > > Yes, please do (CCing

Re: kvm: WARNING In kvm_apic_accept_events

2017-03-22 Thread Dmitry Vyukov
On Wed, Feb 15, 2017 at 11:10 AM, Paolo Bonzini wrote: > > > On 15/02/2017 10:26, David Hildenbrand wrote: >>> >>> Any progress with this? Should we commit this as is? >>> >> Paolo, should I resend as a proper notcopieddiff mail? > > Yes, please do (CCing sta...@vger.kernel.org too). > > Paolo

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-14 Thread Radim Krčmář
2017-03-12 12:20+0100, Dmitry Vyukov: > On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: >> On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: >>> >>> >>> On 13/01/2017 12:15, Dmitry Vyukov wrote: I've commented out the WARNING for now,

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-14 Thread Radim Krčmář
2017-03-12 12:20+0100, Dmitry Vyukov: > On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: >> On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: >>> >>> >>> On 13/01/2017 12:15, Dmitry Vyukov wrote: I've commented out the WARNING for now, but I am seeing lots of

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-12 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: > On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: >> >> >> On 13/01/2017 12:15, Dmitry Vyukov wrote: >>> >>> I've commented out the WARNING for now, but I am seeing lots of >>> use-after-free's

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-03-12 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 5:00 PM, Dmitry Vyukov wrote: > On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: >> >> >> On 13/01/2017 12:15, Dmitry Vyukov wrote: >>> >>> I've commented out the WARNING for now, but I am seeing lots of >>> use-after-free's and rcu stalls involving

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-02 Thread Radim Krčmář
2017-03-02 20:28+0800, Wanpeng Li: > 2017-03-02 2:31 GMT+08:00 Radim Krčmář : >> 2017-03-01 10:44+0100, Dmitry Vyukov: >>> On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : > Hello,

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-02 Thread Radim Krčmář
2017-03-02 20:28+0800, Wanpeng Li: > 2017-03-02 2:31 GMT+08:00 Radim Krčmář : >> 2017-03-01 10:44+0100, Dmitry Vyukov: >>> On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : > Hello, > > The following program triggers WARNING in

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-02 Thread Wanpeng Li
2017-03-02 2:31 GMT+08:00 Radim Krčmář : > 2017-03-01 10:44+0100, Dmitry Vyukov: >> On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: >>> 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : Hello, The following program triggers

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-02 Thread Wanpeng Li
2017-03-02 2:31 GMT+08:00 Radim Krčmář : > 2017-03-01 10:44+0100, Dmitry Vyukov: >> On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: >>> 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : Hello, The following program triggers WARNING in nested_vmx_vmexit:

Re: kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-03-01 Thread Radim Krčmář
2017-02-28 13:07-0800, Jim Mattson: > I believe this happens when the VMCS12 MSR bitmap address is valid, > but no device is configured to respond to the bus request. I agree > that the warning should be removed. However, in this case, the VMCS12 > MSR bitmap should read as all 1s. The same is

Re: kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-03-01 Thread Radim Krčmář
2017-02-28 13:07-0800, Jim Mattson: > I believe this happens when the VMCS12 MSR bitmap address is valid, > but no device is configured to respond to the bus request. I agree > that the warning should be removed. However, in this case, the VMCS12 > MSR bitmap should read as all 1s. The same is

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Radim Krčmář
2017-03-01 10:44+0100, Dmitry Vyukov: > On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: >> 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : >>> Hello, >>> >>> The following program triggers WARNING in nested_vmx_vmexit: >>>

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Radim Krčmář
2017-03-01 10:44+0100, Dmitry Vyukov: > On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: >> 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : >>> Hello, >>> >>> The following program triggers WARNING in nested_vmx_vmexit: >>>

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Radim Krčmář
cf43c837882ddb41cb3a22a62644cc9081d865b5c7d6d371bfbc1b7da5ab28911fcb5667d0e8b0ca", > 0x65}], 0x1, 0x42, &(0x7fae2000-0x10)=[@vmwrite={0x8, 0x0, 0x1ff, > 0x0, 0x4, 0x0, 0x1, 0x0, 0x6}], 0x1) > getpid() > ioctl$KVM_RUN(r2, 0xae80) > mmap(&(0x7f00/0xaf7000)=nil, (

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Radim Krčmář
4cc9081d865b5c7d6d371bfbc1b7da5ab28911fcb5667d0e8b0ca", > 0x65}], 0x1, 0x42, &(0x7fae2000-0x10)=[@vmwrite={0x8, 0x0, 0x1ff, > 0x0, 0x4, 0x0, 0x1, 0x0, 0x6}], 0x1) > getpid() > ioctl$KVM_RUN(r2, 0xae80) > mmap(&(0x7f00/0xaf7000)=nil, (0xaf7000), 0x3, > 0x40

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Dmitry Vyukov
On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: > 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : >> Hello, >> >> The following program triggers WARNING in nested_vmx_vmexit: >>

Re: kvm: WARNING in nested_vmx_vmexit

2017-03-01 Thread Dmitry Vyukov
On Wed, Mar 1, 2017 at 7:13 AM, Wanpeng Li wrote: > 2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : >> Hello, >> >> The following program triggers WARNING in nested_vmx_vmexit: >>

Re: kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Wanpeng Li
2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : > Hello, > > The following program triggers WARNING in nested_vmx_vmexit: > https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gistfile1.txt > > > [ cut

Re: kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Wanpeng Li
2017-02-28 20:15 GMT+08:00 Dmitry Vyukov : > Hello, > > The following program triggers WARNING in nested_vmx_vmexit: > https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gistfile1.txt > > > [ cut here ] >

Re: kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-02-28 Thread Jim Mattson
I believe this happens when the VMCS12 MSR bitmap address is valid, but no device is configured to respond to the bus request. I agree that the warning should be removed. However, in this case, the VMCS12 MSR bitmap should read as all 1s. The same is true everywhere that nested_get_page returns

Re: kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-02-28 Thread Jim Mattson
I believe this happens when the VMCS12 MSR bitmap address is valid, but no device is configured to respond to the bus request. I agree that the warning should be removed. However, in this case, the VMCS12 MSR bitmap should read as all 1s. The same is true everywhere that nested_get_page returns

kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-02-28 Thread Dmitry Vyukov
Hello, I've got the following WARNING while running syzkaller fuzzer: [ cut here ] WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709 nested_vmx_merge_msr_bitmap arch/x86/kvm/vmx.c:9709 [inline] WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709

kvm: WARNING in nested_vmx_merge_msr_bitmap

2017-02-28 Thread Dmitry Vyukov
Hello, I've got the following WARNING while running syzkaller fuzzer: [ cut here ] WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709 nested_vmx_merge_msr_bitmap arch/x86/kvm/vmx.c:9709 [inline] WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709

kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in nested_vmx_vmexit: https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gistfile1.txt [ cut here ] WARNING: CPU: 1 PID: 27742 at arch/x86/kvm/vmx.c:11029

kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in nested_vmx_vmexit: https://gist.githubusercontent.com/dvyukov/16b946d7dc703bb07b9b933f12fb8a6e/raw/dac60506feb8dd9dd22828c486e46ee8a5e30f13/gistfile1.txt [ cut here ] WARNING: CPU: 1 PID: 27742 at arch/x86/kvm/vmx.c:11029

Re: kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Dmitry Vyukov
l$KVM_RUN(r2, 0xae80) mmap(&(0x7f00/0xaf7000)=nil, (0xaf7000), 0x3, 0x4032, 0xffffffff, 0x0) ioctl$KVM_SET_MSRS(r2, 0x4008ae89, &(0x7faed000-0x18)={0x1, 0x0, [{0x3a, 0x0, 0x0}]}) The C reproducer does not reproduce the mm WARNING, but instead triggers the kvm WA

Re: kvm: WARNING in nested_vmx_vmexit

2017-02-28 Thread Dmitry Vyukov
p;(0x7f00/0xaf7000)=nil, (0xaf7000), 0x3, 0x4032, 0x, 0x0) ioctl$KVM_SET_MSRS(r2, 0x4008ae89, &(0x7faed000-0x18)={0x1, 0x0, [{0x3a, 0x0, 0x0}]}) The C reproducer does not reproduce the mm WARNING, but instead triggers the kvm WARNING. The program itself do

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-15 Thread Paolo Bonzini
On 15/02/2017 10:26, David Hildenbrand wrote: >> >> Any progress with this? Should we commit this as is? >> > Paolo, should I resend as a proper notcopieddiff mail? Yes, please do (CCing sta...@vger.kernel.org too). Paolo

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-15 Thread Paolo Bonzini
On 15/02/2017 10:26, David Hildenbrand wrote: >> >> Any progress with this? Should we commit this as is? >> > Paolo, should I resend as a proper notcopieddiff mail? Yes, please do (CCing sta...@vger.kernel.org too). Paolo

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-15 Thread David Hildenbrand
>>> From: David Hildenbrand >>> Date: Mon, 23 Jan 2017 16:42:23 +0100 >>> Subject: [PATCH] KVM: x86: fix illegal MP_STATE when in/entering SMM >>> >>> If we already entered/are about to enter SMM, don't allow >>> switching to INIT/SIPI_RECEIVED, otherwise the next call to >>>

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-15 Thread David Hildenbrand
>>> From: David Hildenbrand >>> Date: Mon, 23 Jan 2017 16:42:23 +0100 >>> Subject: [PATCH] KVM: x86: fix illegal MP_STATE when in/entering SMM >>> >>> If we already entered/are about to enter SMM, don't allow >>> switching to INIT/SIPI_RECEIVED, otherwise the next call to >>>

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-14 Thread Dmitry Vyukov
On Mon, Jan 23, 2017 at 5:29 PM, Paolo Bonzini wrote: > > On 23/01/2017 17:03, David Hildenbrand wrote: >> Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: >>> On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: Hello, The following program

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-14 Thread Dmitry Vyukov
On Mon, Jan 23, 2017 at 5:29 PM, Paolo Bonzini wrote: > > On 23/01/2017 17:03, David Hildenbrand wrote: >> Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: >>> On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: Hello, The following program triggers WARNING in

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-23 Thread Paolo Bonzini
On 23/01/2017 17:03, David Hildenbrand wrote: > Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: >> On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: >>> Hello, >>> >>> The following program triggers WARNING in kvm_apic_accept_events: >>>

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-23 Thread Paolo Bonzini
On 23/01/2017 17:03, David Hildenbrand wrote: > Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: >> On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: >>> Hello, >>> >>> The following program triggers WARNING in kvm_apic_accept_events: >>>

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-23 Thread David Hildenbrand
Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: > On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers WARNING in kvm_apic_accept_events: >>

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-23 Thread David Hildenbrand
Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: > On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers WARNING in kvm_apic_accept_events: >>

kvm: WARNING in mmu_spte_clear_track_bits

2017-01-23 Thread Dmitry Vyukov
Hello, I've started seeing the following WARNING while running syzkaller fuzzer: Out of memory: Kill process 30627 (syz-execprog) score 57 or sacrifice child Killed process 30962 (syz-executor) total-vm:20996kB, anon-rss:64kB, file-rss:0kB, shmem-rss:0kB oom_reaper: reaped process 3916

kvm: WARNING in mmu_spte_clear_track_bits

2017-01-23 Thread Dmitry Vyukov
Hello, I've started seeing the following WARNING while running syzkaller fuzzer: Out of memory: Kill process 30627 (syz-execprog) score 57 or sacrifice child Killed process 30962 (syz-executor) total-vm:20996kB, anon-rss:64kB, file-rss:0kB, shmem-rss:0kB oom_reaper: reaped process 3916

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_apic_accept_events: > https://gist.githubusercontent.com/dvyukov/95b845a2e637485568ea1ef181a72370/raw/d90717dd67128b21715c5e794568a1600f613d97/gistfile1.txt > > On

Re: kvm: WARNING In kvm_apic_accept_events

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_apic_accept_events: > https://gist.githubusercontent.com/dvyukov/95b845a2e637485568ea1ef181a72370/raw/d90717dd67128b21715c5e794568a1600f613d97/gistfile1.txt > > On commit

Re: kvm: WARNING in kvm_load_guest_fpu

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 4:57 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_load_guest_fpu: > https://gist.githubusercontent.com/dvyukov/5bc076073b48772e22b5f33acbe2b743/raw/1000df869f0d58a5c6e637268453c711280b255d/gistfile1.txt > > On

Re: kvm: WARNING in kvm_load_guest_fpu

2017-01-22 Thread Dmitry Vyukov
On Sat, Nov 12, 2016 at 4:57 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in kvm_load_guest_fpu: > https://gist.githubusercontent.com/dvyukov/5bc076073b48772e22b5f33acbe2b743/raw/1000df869f0d58a5c6e637268453c711280b255d/gistfile1.txt > > On commit

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-17 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: > > > On 13/01/2017 12:15, Dmitry Vyukov wrote: >> >> I've commented out the WARNING for now, but I am seeing lots of >> use-after-free's and rcu stalls involving mmu_spte_clear_track_bits: >> >> >> BUG: KASAN:

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-17 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 4:20 PM, Paolo Bonzini wrote: > > > On 13/01/2017 12:15, Dmitry Vyukov wrote: >> >> I've commented out the WARNING for now, but I am seeing lots of >> use-after-free's and rcu stalls involving mmu_spte_clear_track_bits: >> >> >> BUG: KASAN: use-after-free in

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-17 Thread Paolo Bonzini
On 13/01/2017 12:15, Dmitry Vyukov wrote: > > I've commented out the WARNING for now, but I am seeing lots of > use-after-free's and rcu stalls involving mmu_spte_clear_track_bits: > > > BUG: KASAN: use-after-free in mmu_spte_clear_track_bits+0x186/0x190 > arch/x86/kvm/mmu.c:597 at addr

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-17 Thread Paolo Bonzini
On 13/01/2017 12:15, Dmitry Vyukov wrote: > > I've commented out the WARNING for now, but I am seeing lots of > use-after-free's and rcu stalls involving mmu_spte_clear_track_bits: > > > BUG: KASAN: use-after-free in mmu_spte_clear_track_bits+0x186/0x190 > arch/x86/kvm/mmu.c:597 at addr

Re: kvm: WARNING in x86_emulate_insn

2017-01-17 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 12:34 PM, Dmitry Vyukov wrote: > On Fri, Jan 13, 2017 at 6:47 PM, Radim Krčmář wrote: >> 2017-01-12 14:55+0100, Dmitry Vyukov: >>> Hello, >>> >>> I've got the following WARNING in x86_emulate_insn while running >>> syzkaller fuzzer:

Re: kvm: WARNING in x86_emulate_insn

2017-01-17 Thread Dmitry Vyukov
On Tue, Jan 17, 2017 at 12:34 PM, Dmitry Vyukov wrote: > On Fri, Jan 13, 2017 at 6:47 PM, Radim Krčmář wrote: >> 2017-01-12 14:55+0100, Dmitry Vyukov: >>> Hello, >>> >>> I've got the following WARNING in x86_emulate_insn while running >>> syzkaller fuzzer: >>> >>> WARNING: CPU: 2 PID: 18646 at

Re: kvm: WARNING in x86_emulate_insn

2017-01-17 Thread Dmitry Vyukov
On Fri, Jan 13, 2017 at 6:47 PM, Radim Krčmář wrote: > 2017-01-12 14:55+0100, Dmitry Vyukov: >> Hello, >> >> I've got the following WARNING in x86_emulate_insn while running >> syzkaller fuzzer: >> >> WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 >>

Re: kvm: WARNING in x86_emulate_insn

2017-01-17 Thread Dmitry Vyukov
On Fri, Jan 13, 2017 at 6:47 PM, Radim Krčmář wrote: > 2017-01-12 14:55+0100, Dmitry Vyukov: >> Hello, >> >> I've got the following WARNING in x86_emulate_insn while running >> syzkaller fuzzer: >> >> WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 >> x86_emulate_insn+0x16a5/0x4090

Re: kvm: WARNING in x86_emulate_insn

2017-01-13 Thread Radim Krčmář
2017-01-12 14:55+0100, Dmitry Vyukov: > Hello, > > I've got the following WARNING in x86_emulate_insn while running > syzkaller fuzzer: > > WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 > x86_emulate_insn+0x16a5/0x4090 arch/x86/kvm/emulate.c:5572 > Modules linked in: > CPU: 2 PID:

Re: kvm: WARNING in x86_emulate_insn

2017-01-13 Thread Radim Krčmář
2017-01-12 14:55+0100, Dmitry Vyukov: > Hello, > > I've got the following WARNING in x86_emulate_insn while running > syzkaller fuzzer: > > WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 > x86_emulate_insn+0x16a5/0x4090 arch/x86/kvm/emulate.c:5572 > Modules linked in: > CPU: 2 PID:

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-13 Thread Dmitry Vyukov
On Tue, Dec 13, 2016 at 8:50 PM, Dmitry Vyukov wrote: > Hello, > > The following program: > https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt > > leads to WARNING in mmu_spte_clear_track_bits

Re: kvm: WARNING in mmu_spte_clear_track_bits

2017-01-13 Thread Dmitry Vyukov
On Tue, Dec 13, 2016 at 8:50 PM, Dmitry Vyukov wrote: > Hello, > > The following program: > https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt > > leads to WARNING in mmu_spte_clear_track_bits and later to splash

kvm: WARNING in x86_emulate_insn

2017-01-12 Thread Dmitry Vyukov
Hello, I've got the following WARNING in x86_emulate_insn while running syzkaller fuzzer: WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 x86_emulate_insn+0x16a5/0x4090 arch/x86/kvm/emulate.c:5572 Modules linked in: CPU: 2 PID: 18646 Comm: syz-executor Not tainted 4.10.0-rc3+ #155

kvm: WARNING in x86_emulate_insn

2017-01-12 Thread Dmitry Vyukov
Hello, I've got the following WARNING in x86_emulate_insn while running syzkaller fuzzer: WARNING: CPU: 2 PID: 18646 at arch/x86/kvm/emulate.c:5558 x86_emulate_insn+0x16a5/0x4090 arch/x86/kvm/emulate.c:5572 Modules linked in: CPU: 2 PID: 18646 Comm: syz-executor Not tainted 4.10.0-rc3+ #155

kvm: WARNING in vmx_handle_exit

2017-01-02 Thread Dmitry Vyukov
Hello, I've got the following warning while running syzkaller fuzzer: WARNING: CPU: 2 PID: 13257 at arch/x86/kvm/vmx.c:8633 vmx_handle_exit+0x262b/0x38b0 arch/x86/kvm/vmx.c:8633 vmx: unexpected exit reason 0xb CPU: 2 PID: 13257 Comm: syz-executor7 Not tainted 4.10.0-rc1+ #118 Hardware name: QEMU

kvm: WARNING in vmx_handle_exit

2017-01-02 Thread Dmitry Vyukov
Hello, I've got the following warning while running syzkaller fuzzer: WARNING: CPU: 2 PID: 13257 at arch/x86/kvm/vmx.c:8633 vmx_handle_exit+0x262b/0x38b0 arch/x86/kvm/vmx.c:8633 vmx: unexpected exit reason 0xb CPU: 2 PID: 13257 Comm: syz-executor7 Not tainted 4.10.0-rc1+ #118 Hardware name: QEMU

kvm: WARNING in mmu_spte_clear_track_bits

2016-12-13 Thread Dmitry Vyukov
Hello, The following program: https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt leads to WARNING in mmu_spte_clear_track_bits and later to splash of BUG: Bad page state in process a.out pfn:619b5 On commit

kvm: WARNING in mmu_spte_clear_track_bits

2016-12-13 Thread Dmitry Vyukov
Hello, The following program: https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt leads to WARNING in mmu_spte_clear_track_bits and later to splash of BUG: Bad page state in process a.out pfn:619b5 On commit

Re: kvm: WARNING in em_jmp_far

2016-11-15 Thread Paolo Bonzini
On 15/11/2016 06:39, Nadav Amit wrote: > >> On Nov 14, 2016, at 9:30 PM, Dmitry Vyukov wrote: >> >> On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: >>> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: Hello,

Re: kvm: WARNING in em_jmp_far

2016-11-15 Thread Paolo Bonzini
On 15/11/2016 06:39, Nadav Amit wrote: > >> On Nov 14, 2016, at 9:30 PM, Dmitry Vyukov wrote: >> >> On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: >>> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: Hello, The following program triggers WARNING in em_jmp_far:

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:30 PM, Dmitry Vyukov wrote: > > On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: >> >>> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >>> >>> Hello, >>> >>> The following program triggers WARNING in

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:30 PM, Dmitry Vyukov wrote: > > On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: >> >>> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >>> >>> Hello, >>> >>> The following program triggers WARNING in em_jmp_far: >>>

kvm: WARNING in rtc_status_pending_eoi_check_valid

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in rtc_status_pending_eoi_check_valid: https://gist.githubusercontent.com/dvyukov/1bd04c1b36a0c2da13c6da386e1e8c08/raw/c22c7dfa28604bd2920e1c135cfff2cb2acf8bed/gistfile1.txt On commit a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (Nov 13) Disabled LAPIC

kvm: WARNING in rtc_status_pending_eoi_check_valid

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in rtc_status_pending_eoi_check_valid: https://gist.githubusercontent.com/dvyukov/1bd04c1b36a0c2da13c6da386e1e8c08/raw/c22c7dfa28604bd2920e1c135cfff2cb2acf8bed/gistfile1.txt On commit a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (Nov 13) Disabled LAPIC

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: > > Hello, > > The following program triggers WARNING in em_jmp_far: > https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt > > >

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Nadav Amit
> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: > > Hello, > > The following program triggers WARNING in em_jmp_far: > https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt > > > WARNING: CPU: 1 PID: 15748

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: > >> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers WARNING in em_jmp_far: >>

Re: kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
On Tue, Nov 15, 2016 at 6:24 AM, Nadav Amit wrote: > >> On Nov 14, 2016, at 9:06 PM, Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers WARNING in em_jmp_far: >>

kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in em_jmp_far: https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt WARNING: CPU: 1 PID: 15748 at arch/x86/kvm/emulate.c:2128 em_jmp_far+0x4a7/0x530 Kernel panic - not

kvm: WARNING in em_jmp_far

2016-11-14 Thread Dmitry Vyukov
Hello, The following program triggers WARNING in em_jmp_far: https://gist.githubusercontent.com/dvyukov/16bfd3d68fa7d5461101ef74e07796e4/raw/e6d663980681f2c5838ff6cd361cede7d3204838/gistfile1.txt WARNING: CPU: 1 PID: 15748 at arch/x86/kvm/emulate.c:2128 em_jmp_far+0x4a7/0x530 Kernel panic - not

Re: kvm: WARNING in kvm_arch_vcpu_ioctl_run

2016-11-14 Thread Paolo Bonzini
On 14/11/2016 15:09, Dmitry Vyukov wrote: > > I made dump_vmcs() no-op locally. You should see the warning > regardless, but probably it is difficult to notice. Or maybe tons of > output affect timings so that the warning does not happen. I let it run for several minutes, and only got 50

  1   2   >