bisecting cause commit starting from 81b1d39fd39a0ecfd30606714bcc05da586044f9 building syzkaller on a8529b82fb3bb45832b08a099e7eb51707da9b37 testing commit 81b1d39fd39a0ecfd30606714bcc05da586044f9 with gcc (GCC) 10.2.1 20210217 kernel signature: bc9d0e6afa1b226e682b730313816c1b7d7143567181d9b0a893d1802a63cf4d all runs: crashed: WARNING: still has locks held in io_sq_thread testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b with gcc (GCC) 10.2.1 20210217 kernel signature: 5041c5e4049bf1496846dff0bc8c1e488837e1e9c6e82df31b117c7aeef8d38d all runs: OK # git bisect start 81b1d39fd39a0ecfd30606714bcc05da586044f9 f40ddce88593482919761f74910f42f4b84c004b Bisecting: 5932 revisions left to test after this (roughly 13 steps) [d99676af540c2dc829999928fb81c58c80a1dce4] Merge tag 'drm-next-2021-02-19' of git://anongit.freedesktop.org/drm/drm testing commit d99676af540c2dc829999928fb81c58c80a1dce4 with gcc (GCC) 10.2.1 20210217 kernel signature: 5176e4eaf7e223685d58240d2a80ddb80d8896e9a4fab7ad3cae071c4bb5e543 run #0: crashed: WARNING in kvm_wait run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: boot failed: WARNING in kvm_wait run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait reproducer seems to be flaky # git bisect bad d99676af540c2dc829999928fb81c58c80a1dce4 Bisecting: 3717 revisions left to test after this (roughly 12 steps) [f9d58de23152f2c16f326d7e014cfa2933b00304] Merge tag 'affs-for-5.12-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux testing commit f9d58de23152f2c16f326d7e014cfa2933b00304 with gcc (GCC) 10.2.1 20210217 kernel signature: 6dae3d2b36929304ac769f5695eb12d41788877dcc473dd66bfc10238f562376 all runs: OK # git bisect good f9d58de23152f2c16f326d7e014cfa2933b00304 Bisecting: 1854 revisions left to test after this (roughly 11 steps) [de1617578849acab8e16c9ffdce39b91fb50639d] Merge tag 'media/v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media testing commit de1617578849acab8e16c9ffdce39b91fb50639d with gcc (GCC) 10.2.1 20210217 kernel signature: c5eafff47c7f84380df08573291730493404e9b8817f456499e634b0a87e7036 run #0: crashed: WARNING in kvm_wait run #1: crashed: WARNING in kvm_wait run #2: crashed: WARNING in kvm_wait run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: boot failed: WARNING in kvm_wait run #13: boot failed: WARNING in kvm_wait run #14: boot failed: WARNING in kvm_wait run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad de1617578849acab8e16c9ffdce39b91fb50639d Bisecting: 929 revisions left to test after this (roughly 10 steps) [4a037ad5d115b2cc79a5071a7854475f365476fa] Merge tag 'for-linus-5.12-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip testing commit 4a037ad5d115b2cc79a5071a7854475f365476fa with gcc (GCC) 10.2.1 20210217 kernel signature: 588c92e07e1829e51db016ce54341a7bb99316846549e8c6f6426ae64eb7f792 run #0: crashed: WARNING in kvm_wait 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 run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad 4a037ad5d115b2cc79a5071a7854475f365476fa Bisecting: 451 revisions left to test after this (roughly 9 steps) [582cd91f69de8e44857cb610ebca661dac8656b7] Merge tag 'for-5.12/block-2021-02-17' of git://git.kernel.dk/linux-block testing commit 582cd91f69de8e44857cb610ebca661dac8656b7 with gcc (GCC) 10.2.1 20210217 kernel signature: 85c30e02a39ceed9087e35c823c1d9e5e1e042fe649c756fc4c7bdc6b3d9aac8 all runs: OK # git bisect good 582cd91f69de8e44857cb610ebca661dac8656b7 Bisecting: 247 revisions left to test after this (roughly 8 steps) [3f6ec19f2d05d800bbc42d95dece433da7697864] Merge tag 'timers-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 3f6ec19f2d05d800bbc42d95dece433da7697864 with gcc (GCC) 10.2.1 20210217 kernel signature: 117a7037edf5696526804c693d464825e2bb9dd629cbca0fdfefdee2d1274865 all runs: OK # git bisect good 3f6ec19f2d05d800bbc42d95dece433da7697864 Bisecting: 125 revisions left to test after this (roughly 7 steps) [85e853c5ec8486117182baab10c98b321daa6d47] Merge branch 'for-mingo-rcu' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into core/rcu testing commit 85e853c5ec8486117182baab10c98b321daa6d47 with gcc (GCC) 10.2.1 20210217 kernel signature: 3e5f796708b688c3b46619f20592e17f6d9f8dd7fa8edeb7c79882dd117f2036 all runs: OK # git bisect good 85e853c5ec8486117182baab10c98b321daa6d47 Bisecting: 73 revisions left to test after this (roughly 6 steps) [c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4] sched,x86: Allow !PREEMPT_DYNAMIC testing commit c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4 with gcc (GCC) 10.2.1 20210217 kernel signature: ed5289ba9960c427f675c97574db3b2fcaf95b199d1f85f6480f65f32127bfeb all runs: OK # git bisect good c5e6fc08feb2b88dc5dac2f3c817e1c2a4cafda4 Bisecting: 33 revisions left to test after this (roughly 5 steps) [9eef02334505411667a7b51a8f349f8c6c4f3b66] Merge tag 'locking-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 9eef02334505411667a7b51a8f349f8c6c4f3b66 with gcc (GCC) 10.2.1 20210217 kernel signature: 40106c43492fc05c879ca21dfe83dc89ade1b3e413e8ee6ebdd184368d08908a run #0: crashed: WARNING in kvm_wait run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: boot failed: WARNING in kvm_wait run #9: boot failed: WARNING in kvm_wait run #10: boot failed: WARNING in kvm_wait run #11: boot failed: WARNING in kvm_wait run #12: boot failed: WARNING in kvm_wait run #13: boot failed: WARNING in kvm_wait run #14: boot failed: WARNING in kvm_wait run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad 9eef02334505411667a7b51a8f349f8c6c4f3b66 Bisecting: 19 revisions left to test after this (roughly 4 steps) [62137364e3e8afcc745846c5c67cacf943149073] Merge branch 'linus' into locking/core, to pick up upstream fixes testing commit 62137364e3e8afcc745846c5c67cacf943149073 with gcc (GCC) 10.2.1 20210217 kernel signature: 188b53c9e4f10e117acf69bf5687e2fd813b301449e0207c8531b81592bd43b4 run #0: crashed: WARNING in kvm_wait 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 run #10: OK run #11: OK run #12: OK run #13: OK run #14: boot failed: WARNING in kvm_wait run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad 62137364e3e8afcc745846c5c67cacf943149073 Bisecting: 9 revisions left to test after this (roughly 3 steps) [997acaf6b4b59c6a9c259740312a69ea549cc684] lockdep: report broken irq restoration testing commit 997acaf6b4b59c6a9c259740312a69ea549cc684 with gcc (GCC) 10.2.1 20210217 kernel signature: 88eb8bb49d3c85429055f67aa6053a7190450f393ad4e4111997d113607a40fa run #0: OK 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 run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: OK run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect good 997acaf6b4b59c6a9c259740312a69ea549cc684 Bisecting: 4 revisions left to test after this (roughly 2 steps) [7f82e631d236cafd28518b998c6d4d8dc2ef68f6] locking/lockdep: Avoid unmatched unlock testing commit 7f82e631d236cafd28518b998c6d4d8dc2ef68f6 with gcc (GCC) 10.2.1 20210217 kernel signature: a636773fe0a5868527ae9946c71ff0aa8526c487867980b94308c3601937f48b run #0: OK 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 run #10: OK run #11: OK run #12: OK run #13: boot failed: WARNING in kvm_wait run #14: boot failed: WARNING in kvm_wait run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect good 7f82e631d236cafd28518b998c6d4d8dc2ef68f6 Bisecting: 2 revisions left to test after this (roughly 1 step) [b38085ba60246fccc2f49d2ac162528dedbc4e71] s390: Use arch_local_irq_{save,restore}() in early boot code testing commit b38085ba60246fccc2f49d2ac162528dedbc4e71 with gcc (GCC) 10.2.1 20210217 kernel signature: a9102376d1d1542ebce5bf20c5fe605b2bcc9bdd29bdd38ba67eba0c6af0f1f6 run #0: crashed: WARNING in kvm_wait 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 run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad b38085ba60246fccc2f49d2ac162528dedbc4e71 Bisecting: 0 revisions left to test after this (roughly 0 steps) [c8cc7e853192d520ab6a5957f5081034103587ae] lockdep: Noinstr annotate warn_bogus_irq_restore() testing commit c8cc7e853192d520ab6a5957f5081034103587ae with gcc (GCC) 10.2.1 20210217 kernel signature: a9102376d1d1542ebce5bf20c5fe605b2bcc9bdd29bdd38ba67eba0c6af0f1f6 run #0: crashed: WARNING in kvm_wait run #1: crashed: WARNING in kvm_wait run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK run #10: OK run #11: OK run #12: OK run #13: OK run #14: OK run #15: boot failed: WARNING in kvm_wait run #16: boot failed: WARNING in kvm_wait run #17: boot failed: WARNING in kvm_wait run #18: boot failed: WARNING in kvm_wait run #19: boot failed: WARNING in kvm_wait # git bisect bad c8cc7e853192d520ab6a5957f5081034103587ae c8cc7e853192d520ab6a5957f5081034103587ae is the first bad commit commit c8cc7e853192d520ab6a5957f5081034103587ae Author: Peter Zijlstra Date: Tue Feb 9 09:30:03 2021 +0100 lockdep: Noinstr annotate warn_bogus_irq_restore() vmlinux.o: warning: objtool: lock_is_held_type()+0x107: call to warn_bogus_irq_restore() leaves .noinstr.text section As per the general rule that WARNs are allowed to violate noinstr to get out, annotate it away. Fixes: 997acaf6b4b5 ("lockdep: report broken irq restoration") Reported-by: Randy Dunlap Signed-off-by: Peter Zijlstra (Intel) Acked-by: Mark Rutland Acked-by: Randy Dunlap # build-tested Link: https://lkml.kernel.org/r/YCKyYg53mMp4E7YI@hirez.programming.kicks-ass.net kernel/locking/irqflag-debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) culprit signature: a9102376d1d1542ebce5bf20c5fe605b2bcc9bdd29bdd38ba67eba0c6af0f1f6 parent signature: a636773fe0a5868527ae9946c71ff0aa8526c487867980b94308c3601937f48b Reproducer flagged being flaky revisions tested: 16, total time: 4h30m54.686835738s (build: 1h50m20.078079718s, test: 2h38m50.429387793s) first bad commit: c8cc7e853192d520ab6a5957f5081034103587ae lockdep: Noinstr annotate warn_bogus_irq_restore() recipients (to): ["linux-kernel@vger.kernel.org" "mark.rutland@arm.com" "mingo@redhat.com" "peterz@infradead.org" "peterz@infradead.org" "will@kernel.org"] recipients (cc): [] crash: WARNING in kvm_wait batman_adv: batadv0: Interface activated: batadv_slave_0 ------------[ cut here ]------------ raw_local_irq_restore() called with IRQs enabled WARNING: CPU: 0 PID: 8764 at kernel/locking/irqflag-debug.c:10 warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10 Modules linked in: CPU: 0 PID: 8764 Comm: syz-executor.1 Not tainted 5.11.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:warn_bogus_irq_restore+0x1d/0x20 kernel/locking/irqflag-debug.c:10 Code: 24 48 c7 c7 c0 74 89 88 e8 a6 1d c2 ff 80 3d b4 48 ec 03 00 74 01 c3 48 c7 c7 40 e8 8a 88 c6 05 a3 48 ec 03 01 e8 9b 1c c2 ff <0f> 0b c3 48 39 77 10 0f 84 97 00 00 00 66 f7 47 22 f0 ff 74 4b 48 RSP: 0018:ffffc900019c6d58 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88801e191268 RCX: 0000000000000000 RDX: 0000000000000202 RSI: ffffffff88dd1bc0 RDI: fffff52000338d9d RBP: 0000000000000246 R08: 0000000000000001 R09: ffff8880b9e30827 R10: ffffed10173c6104 R11: 0000000000000001 R12: 0000000000000003 R13: ffffed1003c3224d R14: 0000000000000001 R15: ffff8880b9e35a80 FS: 0000000002f68400(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8eca2ed000 CR3: 000000001790b000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvm_wait arch/x86/kernel/kvm.c:860 [inline] kvm_wait+0xc3/0xe0 arch/x86/kernel/kvm.c:837 pv_wait arch/x86/include/asm/paravirt.h:564 [inline] pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline] __pv_queued_spin_lock_slowpath+0x8b8/0xb40 kernel/locking/qspinlock.c:508 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:554 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:113 spin_lock_bh include/linux/spinlock.h:359 [inline] batadv_tt_local_resize_to_mtu+0x6c/0xe0 net/batman-adv/translation-table.c:3978 batadv_hardif_activate_interface.part.0.cold+0x65/0x1b4 net/batman-adv/hard-interface.c:655 batadv_hardif_activate_interface net/batman-adv/hard-interface.c:989 [inline] batadv_hard_if_event+0x2f1/0x1160 net/batman-adv/hard-interface.c:1005 notifier_call_chain+0x94/0x170 kernel/notifier.c:83 call_netdevice_notifiers_extack net/core/dev.c:2052 [inline] call_netdevice_notifiers net/core/dev.c:2066 [inline] __dev_notify_flags+0xcd/0x220 net/core/dev.c:8516 dev_change_flags+0xde/0x150 net/core/dev.c:8554 do_setlink+0x773/0x2f00 net/core/rtnetlink.c:2708 __rtnl_newlink+0xadb/0x1370 net/core/rtnetlink.c:3376 rtnl_newlink+0x5a/0x90 net/core/rtnetlink.c:3502 rtnetlink_rcv_msg+0x32f/0x860 net/core/rtnetlink.c:5564 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2494 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x70e/0xbe0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:672 __sys_sendto+0x1a4/0x270 net/socket.c:1975 __do_sys_sendto net/socket.c:1987 [inline] __se_sys_sendto net/socket.c:1983 [inline] __x64_sys_sendto+0xd8/0x1b0 net/socket.c:1983 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4193ec Code: fa fa ff ff 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 20 fb ff ff 48 8b RSP: 002b:00007ffd6ae36130 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00000000014a4320 RCX: 00000000004193ec RDX: 000000000000002c RSI: 00000000014a4370 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffd6ae36184 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00000000014a4370 R14: 0000000000000003 R15: 0000000000000000