ci starts bisection 2022-08-08 06:02:55.837704821 +0000 UTC m=+145765.581202412 bisecting cause commit starting from 200e340f2196d7fd427a5810d06e893b932f145a building syzkaller on 88e3a1226bc591d81c1fb98e83cb63cd4f341c6e testing commit 200e340f2196d7fd427a5810d06e893b932f145a compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7d9d5bcf23871be9b26a42353341ccd4f808766096bc959cf6609b4d16f6b388 all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr testing release v5.19 testing commit 3d7cb6b04c3f3115719235cc6866b10326de34cd compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7d2cb1f066a4d66d93a3a14611ea6055327478d58058bafec9b4e221000d1827 all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr testing release v5.18 testing commit 4b0986a3613c92f4ec1bdc7f60ec66fea135991f compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9b9fde48e8f92a9359147967315149e87d7eecd28c9d17caaeb3c37e515e362a all runs: OK # git bisect start 3d7cb6b04c3f3115719235cc6866b10326de34cd 4b0986a3613c92f4ec1bdc7f60ec66fea135991f Bisecting: 8493 revisions left to test after this (roughly 13 steps) [c011dd537ffe47462051930413fed07dbdc80313] Merge tag 'arm-soc-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit c011dd537ffe47462051930413fed07dbdc80313 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 852f3775328b1fa8979f347149f6f8f7e5d24bdcd63a896361a391ce028a1beb run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good c011dd537ffe47462051930413fed07dbdc80313 Bisecting: 4244 revisions left to test after this (roughly 12 steps) [5d4af9c1f04ab0411ba5818baad9a68e87f33099] Merge branch 'mv88e6xxx-fixes-for-reading-serdes-state' testing commit 5d4af9c1f04ab0411ba5818baad9a68e87f33099 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ae46d2447d5b7424bda8ee9cfb4dfe3b1d8bb58eeaf1fa2e5e2c1579ce223837 all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 5d4af9c1f04ab0411ba5818baad9a68e87f33099 Bisecting: 2116 revisions left to test after this (roughly 11 steps) [7e284070abe53d448517b80493863595af4ab5f0] Merge tag 'for-5.19/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm testing commit 7e284070abe53d448517b80493863595af4ab5f0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2f7f525ee442e16f599fe7170ba6165344417ee7fb81b59b8efb4c147b6ed0cf all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 7e284070abe53d448517b80493863595af4ab5f0 Bisecting: 1057 revisions left to test after this (roughly 10 steps) [a0439cf4eca05fe562f19ece4b6761852d911adb] Merge tag 'arm-defconfig-5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit a0439cf4eca05fe562f19ece4b6761852d911adb compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6003faec4cb90a9eece2028ac0d415cd630c4069211e007ab68430f5e4751a1b all runs: OK # git bisect good a0439cf4eca05fe562f19ece4b6761852d911adb Bisecting: 536 revisions left to test after this (roughly 9 steps) [98931dd95fd489fcbfa97da563505a6f071d7c77] Merge tag 'mm-stable-2022-05-25' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit 98931dd95fd489fcbfa97da563505a6f071d7c77 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 870ab5a634147df741c522b869e0e8dae0e933ae3459aa4b9f4e28b4fd628b13 all runs: OK # git bisect good 98931dd95fd489fcbfa97da563505a6f071d7c77 Bisecting: 240 revisions left to test after this (roughly 8 steps) [7182e897695d5b70fb772736f1f08639ca0fff78] Merge tag 'gpio-updates-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux testing commit 7182e897695d5b70fb772736f1f08639ca0fff78 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e9a0c3f6de1633e6622bac573e40a05d14b8cbd5fe4c09f82200644c192b3318 all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 7182e897695d5b70fb772736f1f08639ca0fff78 Bisecting: 186 revisions left to test after this (roughly 7 steps) [825be3b5abae1e67db45ff7d4b9a7764a2419bd9] KVM: selftests: x86: Fix test failure on arch lbr capable platforms testing commit 825be3b5abae1e67db45ff7d4b9a7764a2419bd9 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cfd2b6bc3ff8481884d60c728410e3947902e2421ceb1ebb07690c2fb13316fd all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 825be3b5abae1e67db45ff7d4b9a7764a2419bd9 Bisecting: 54 revisions left to test after this (roughly 6 steps) [c24a950ec7d60c4da91dc3f273295c7f438b531e] KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES testing commit c24a950ec7d60c4da91dc3f273295c7f438b531e compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1b9cd271c600c16d98c913c22eb3519625359d3d1f799bf1433f83de69511868 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: exit status NUM run #1: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #2: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #3: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #4: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #5: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #6: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #7: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #8: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr run #9: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad c24a950ec7d60c4da91dc3f273295c7f438b531e Bisecting: 26 revisions left to test after this (roughly 5 steps) [d063de55f4799261858676d5cfa49a1612cd57ea] KVM: x86: Support the vCPU preemption check with nopvspin and realtime hint testing commit d063de55f4799261858676d5cfa49a1612cd57ea compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 75056c59abff2d60e17aaea17fcd3af7be45663228c05bb43480365f652de29f all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad d063de55f4799261858676d5cfa49a1612cd57ea Bisecting: 13 revisions left to test after this (roughly 4 steps) [0ec6c5c5bb6585320a2e51a316c2fd381fdec836] KVM: x86/xen: handle PV IPI vcpu yield testing commit 0ec6c5c5bb6585320a2e51a316c2fd381fdec836 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c9982e2b513fe9f266e52b5d6f5f52dd8df46f949c7743164f70e286ffe7f232 all runs: OK # git bisect good 0ec6c5c5bb6585320a2e51a316c2fd381fdec836 Bisecting: 6 revisions left to test after this (roughly 3 steps) [25eaeebe710c8c3aa588ee0830155fefb2548c28] KVM: x86/xen: Add self tests for KVM_XEN_HVM_CONFIG_EVTCHN_SEND testing commit 25eaeebe710c8c3aa588ee0830155fefb2548c28 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 1f28db54bb6810d276a8c49659389533a5fa62a8e3872eafc5d4dd95c82b44cb all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 25eaeebe710c8c3aa588ee0830155fefb2548c28 Bisecting: 3 revisions left to test after this (roughly 2 steps) [28d1629f751c4a5f9437fbaa0ee4ed81d1a8e587] KVM: x86/xen: Kernel acceleration for XENVER_version testing commit 28d1629f751c4a5f9437fbaa0ee4ed81d1a8e587 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bff46703770c49cd5e55e243992eb133ab285aab09944fac12ccb16bee8d382c all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 28d1629f751c4a5f9437fbaa0ee4ed81d1a8e587 Bisecting: 0 revisions left to test after this (roughly 1 step) [536395260582be7443b0b35b0bbb89ffe3947f62] KVM: x86/xen: handle PV timers oneshot mode testing commit 536395260582be7443b0b35b0bbb89ffe3947f62 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4cba2d1b31ef3c403b81a90a6df15d3ed27119372a1fbd72c112058bb75dac99 all runs: crashed: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr # git bisect bad 536395260582be7443b0b35b0bbb89ffe3947f62 Bisecting: 0 revisions left to test after this (roughly 0 steps) [942c2490c23f2800ad8143f5eb84a79b859aa743] KVM: x86/xen: Add KVM_XEN_VCPU_ATTR_TYPE_VCPU_ID testing commit 942c2490c23f2800ad8143f5eb84a79b859aa743 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9fec906bc49b9e0e8bce076eb1485a7a4be73b9123fe9b6347816b9f5995fa52 all runs: OK # git bisect good 942c2490c23f2800ad8143f5eb84a79b859aa743 536395260582be7443b0b35b0bbb89ffe3947f62 is the first bad commit commit 536395260582be7443b0b35b0bbb89ffe3947f62 Author: Joao Martins Date: Thu Mar 3 15:41:22 2022 +0000 KVM: x86/xen: handle PV timers oneshot mode If the guest has offloaded the timer virq, handle the following hypercalls for programming the timer: VCPUOP_set_singleshot_timer VCPUOP_stop_singleshot_timer set_timer_op(timestamp_ns) The event channel corresponding to the timer virq is then used to inject events once timer deadlines are met. For now we back the PV timer with hrtimer. [ dwmw2: Add save/restore, 32-bit compat mode, immediate delivery, don't check timer in kvm_vcpu_has_event() ] Signed-off-by: Joao Martins Signed-off-by: David Woodhouse Signed-off-by: Paolo Bonzini Message-Id: <20220303154127.202856-13-dwmw2@infradead.org> Signed-off-by: Paolo Bonzini arch/x86/include/asm/kvm_host.h | 4 + arch/x86/kvm/irq.c | 10 +- arch/x86/kvm/xen.c | 211 ++++++++++++++++++++++++++++++++++++++++ arch/x86/kvm/xen.h | 28 ++++++ include/uapi/linux/kvm.h | 6 ++ 5 files changed, 257 insertions(+), 2 deletions(-) culprit signature: 4cba2d1b31ef3c403b81a90a6df15d3ed27119372a1fbd72c112058bb75dac99 parent signature: 9fec906bc49b9e0e8bce076eb1485a7a4be73b9123fe9b6347816b9f5995fa52 revisions tested: 17, total time: 3h23m12.419737744s (build: 1h51m11.124670581s, test: 1h30m3.99774293s) first bad commit: 536395260582be7443b0b35b0bbb89ffe3947f62 KVM: x86/xen: handle PV timers oneshot mode recipients (to): ["dwmw@amazon.co.uk" "joao.m.martins@oracle.com" "pbonzini@redhat.com"] recipients (cc): [] crash: WARNING: ODEBUG bug in kvm_xen_vcpu_set_attr L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. ------------[ cut here ]------------ ODEBUG: init active (active state 0) object type: hrtimer hint: xen_timer_callback+0x0/0x90 arch/x86/kvm/xen.c:903 WARNING: CPU: 0 PID: 4088 at lib/debugobjects.c:505 debug_print_object+0x16e/0x250 lib/debugobjects.c:505 Modules linked in: CPU: 0 PID: 4088 Comm: syz-executor.0 Not tainted 5.17.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:505 Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 af 00 00 00 48 8b 14 dd 40 6d 41 89 4c 89 ee 48 c7 c7 40 61 41 89 e8 28 54 af 04 <0f> 0b 83 05 b5 8a 10 09 01 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e c3 RSP: 0018:ffffc9000288f788 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89415ce0 RDI: fffff52000511ee3 RBP: 0000000000000001 R08: 0000000000000001 R09: ffff8880b9c341c7 R10: ffffed1017386838 R11: 0000000000000001 R12: ffffffff88ed8ea0 R13: ffffffff89416640 R14: ffffffff815e2bb0 R15: ffffffff90110bf8 FS: 00007f10c4b36700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000041 CR3: 000000001b74d000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __debug_object_init+0x524/0xd10 lib/debugobjects.c:593 debug_hrtimer_init kernel/time/hrtimer.c:414 [inline] debug_init kernel/time/hrtimer.c:468 [inline] hrtimer_init+0x1b/0x1e0 kernel/time/hrtimer.c:1592 kvm_xen_init_timer arch/x86/kvm/xen.c:167 [inline] kvm_xen_vcpu_set_attr+0x273/0x1310 arch/x86/kvm/xen.c:683 kvm_arch_vcpu_ioctl+0x1b64/0x3110 arch/x86/kvm/x86.c:5666 kvm_vcpu_ioctl+0x71d/0xbb0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4072 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x11f/0x190 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f10c53c1279 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f10c4b36168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f10c54d3f80 RCX: 00007f10c53c1279 RDX: 0000000020000000 RSI: 000000004048aecb RDI: 0000000000000007 RBP: 00007f10c541b189 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdf8207dcf R14: 00007f10c4b36300 R15: 0000000000022000