bisecting cause commit starting from da454ebf578f6c542ba9f5b3ddb98db3ede109c1 building syzkaller on 6972b10616d785401dea17cec890cca8916424a7 testing commit da454ebf578f6c542ba9f5b3ddb98db3ede109c1 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5d0f1e0dc2f72ccbcd414d3f7c2de3122a97d344e20bc231a56ae1a6ede333b9 all runs: crashed: WARNING in static_key_slow_try_dec testing release v5.13 testing commit 62fb9874f5da54fdb243003b386128037319b219 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 1cb5111c0f95c1fc7e3896d55db5b53fbce5858f143c657e735c92f7019c7d10 run #0: crashed: BUG: sleeping function called from invalid context in lock_sock_nested run #1: crashed: BUG: spinlock bad magic in synchronize_srcu run #2: crashed: BUG: spinlock bad magic in synchronize_srcu run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK reproducer seems to be flaky testing release v5.12 testing commit 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: f49397d19055b9442e2c2b720108afe8474cea2e340222187afff379ccf6ade1 run #0: crashed: BUG: spinlock bad magic in synchronize_srcu run #1: crashed: BUG: spinlock bad magic in synchronize_srcu run #2: crashed: BUG: spinlock bad magic in synchronize_srcu 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: OK run #17: OK run #18: OK run #19: OK testing release v5.11 testing commit f40ddce88593482919761f74910f42f4b84c004b compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 8eb48db83d9f749192d28a9978aa4fc25fb6641ea16d5a4553bec11708320c0f run #0: crashed: BUG: spinlock bad magic in synchronize_srcu 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: OK run #17: OK run #18: OK run #19: OK testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 8e87dd22a4dc96899d1b4a403d3465086b938b507b4b6839238b5a7ba1f0f554 all runs: OK # git bisect start f40ddce88593482919761f74910f42f4b84c004b 2c85ebc57b3e1817b6ce1a6b703928e113a90442 Bisecting: 7761 revisions left to test after this (roughly 13 steps) [538fcf57aaee6ad78a05f52b69a99baa22b33418] Merge branches 'acpi-scan', 'acpi-pnp' and 'acpi-sleep' testing commit 538fcf57aaee6ad78a05f52b69a99baa22b33418 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 07db8c29533a62766e9823666d44080191eae41b3a7e67de71c9ed8d0349fb6d all runs: OK # git bisect good 538fcf57aaee6ad78a05f52b69a99baa22b33418 Bisecting: 3868 revisions left to test after this (roughly 12 steps) [d64c6f96ba86bd8b97ed8d6762a8c8cc1770d214] Merge tag 'net-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit d64c6f96ba86bd8b97ed8d6762a8c8cc1770d214 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 9849e281b953e3043c1fa865d4ea9209d01614487b9b48d81b5b9b18ab03238e all runs: OK # git bisect good d64c6f96ba86bd8b97ed8d6762a8c8cc1770d214 Bisecting: 1934 revisions left to test after this (roughly 11 steps) [70b6ff35d62050d1573876cc0e1e078acd3e6008] cfg80211/mac80211: fix kernel-doc for SAR APIs testing commit 70b6ff35d62050d1573876cc0e1e078acd3e6008 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d7a1471f8f17eb36f0780953026083139491f9abe765bfbf2f8ba171e6676732 all runs: OK # git bisect good 70b6ff35d62050d1573876cc0e1e078acd3e6008 Bisecting: 965 revisions left to test after this (roughly 10 steps) [17b6c49da37f5d57d76bf352d32b0ac498e7c133] Merge tag 'x86_urgent_for_v5.11_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 17b6c49da37f5d57d76bf352d32b0ac498e7c133 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 4b76855541728b042ccc5d7799365073ee17d898ae4abb449af88a865e397d11 all runs: OK # git bisect good 17b6c49da37f5d57d76bf352d32b0ac498e7c133 Bisecting: 483 revisions left to test after this (roughly 9 steps) [b333a99e14d133afe204f775e72cc119decda2ca] Merge tag 'powerpc-5.11-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux testing commit b333a99e14d133afe204f775e72cc119decda2ca compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 1ecf7265ba80bf14b3edbd91018d15b293d23381d57901e41ae8ddc622c08783 all runs: OK # git bisect good b333a99e14d133afe204f775e72cc119decda2ca Bisecting: 236 revisions left to test after this (roughly 8 steps) [7c2d18357f2c4d26e727e76245e297ffdbc03097] Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input testing commit 7c2d18357f2c4d26e727e76245e297ffdbc03097 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 9a66edab9182dea96012da7ffbb3adc9195a56ee6e7394cdcf4d2e8c36d6dec9 run #0: crashed: BUG: spinlock bad magic in synchronize_srcu run #1: crashed: BUG: spinlock bad magic in synchronize_srcu run #2: crashed: BUG: spinlock bad magic in synchronize_srcu 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: OK run #17: OK run #18: OK run #19: OK # git bisect bad 7c2d18357f2c4d26e727e76245e297ffdbc03097 Bisecting: 123 revisions left to test after this (roughly 7 steps) [dbc15d24f9fa6f25723ef750b65b98bfcd3d3910] Merge tag 'trace-v5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace testing commit dbc15d24f9fa6f25723ef750b65b98bfcd3d3910 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 5391bdbd546ec0cd136d5100519f8f52258c993a5065e9ee7aff92d67043c209 all runs: OK # git bisect good dbc15d24f9fa6f25723ef750b65b98bfcd3d3910 Bisecting: 61 revisions left to test after this (roughly 6 steps) [2d8bdf5906580daf72364e0dac4517ac26d5b05d] Merge tag 'mmc-v5.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc testing commit 2d8bdf5906580daf72364e0dac4517ac26d5b05d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 03eda41f934c00ea7a430f3a7b376b99cab49b5c7e8a1f4e7d9d2377ba279eae all runs: OK # git bisect good 2d8bdf5906580daf72364e0dac4517ac26d5b05d Bisecting: 22 revisions left to test after this (roughly 5 steps) [1e0d27fce010b0a4a9e595506b6ede75934c31be] Merge branch 'akpm' (patches from Andrew) testing commit 1e0d27fce010b0a4a9e595506b6ede75934c31be compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: d166d1f3153a702d62d82796f348bdd7595686c1a8daa72131fb8bd0f3596eb1 all runs: OK # git bisect good 1e0d27fce010b0a4a9e595506b6ede75934c31be Bisecting: 10 revisions left to test after this (roughly 4 steps) [964d069f93c4468b220f7e15fac7a3f7bd6d13ec] Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi testing commit 964d069f93c4468b220f7e15fac7a3f7bd6d13ec compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: c25c7e8d6d449f15a660b2944482e255ba173c322b9ccd2cef0dd9aa745ccd69 all runs: OK # git bisect good 964d069f93c4468b220f7e15fac7a3f7bd6d13ec Bisecting: 5 revisions left to test after this (roughly 3 steps) [60159e9e7bc7e528c103b6b6d47dfd83af29669c] Input: ili210x - implement pressure reporting for ILI251x testing commit 60159e9e7bc7e528c103b6b6d47dfd83af29669c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: cbd78a37a8c9ce7dcf25b51dfbc035dff166ba19e670a709556e8c1e99b5c64c all runs: OK # git bisect good 60159e9e7bc7e528c103b6b6d47dfd83af29669c Bisecting: 2 revisions left to test after this (roughly 2 steps) [2dce6db70c77bbe639f5cd9cc796fb8f2694a7d0] Input: goodix - add support for Goodix GT9286 chip testing commit 2dce6db70c77bbe639f5cd9cc796fb8f2694a7d0 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: cbd78a37a8c9ce7dcf25b51dfbc035dff166ba19e670a709556e8c1e99b5c64c all runs: OK # git bisect good 2dce6db70c77bbe639f5cd9cc796fb8f2694a7d0 Bisecting: 0 revisions left to test after this (roughly 1 step) [9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8] Input: xpad - sync supported devices with fork on GitHub testing commit 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: aa6c188fd3e8cb6dd4f34340a971ae545b8db5bb45d81bb9a3803d4e1c980b6f all runs: OK # git bisect good 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 7c2d18357f2c4d26e727e76245e297ffdbc03097 is the first bad commit commit 7c2d18357f2c4d26e727e76245e297ffdbc03097 Merge: 964d069f93c4 9bbd77d5bbc9 Author: Linus Torvalds Date: Sat Feb 6 14:57:23 2021 -0800 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input Pull input fixes from Dmitry Torokhov: "Nothing terribly interesting, just a few fixups" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: xpad - sync supported devices with fork on GitHub Input: ariel-pwrbutton - remove unused variable ariel_pwrbutton_id_table Input: goodix - add support for Goodix GT9286 chip dt-bindings: input: touchscreen: goodix: Add binding for GT9286 IC dt-bindings: input: adc-keys: clarify description Input: ili210x - implement pressure reporting for ILI251x Input: i8042 - unbreak Pegatron C15B Input: st1232 - wait until device is ready before reading resolution Input: st1232 - do not read more bytes than needed Input: st1232 - fix off-by-one error in resolution handling .../devicetree/bindings/input/adc-keys.txt | 22 +++++++++- .../bindings/input/touchscreen/goodix.yaml | 1 + drivers/input/joystick/xpad.c | 17 +++++++- drivers/input/misc/ariel-pwrbutton.c | 6 --- drivers/input/serio/i8042-x86ia64io.h | 2 + drivers/input/touchscreen/goodix.c | 2 + drivers/input/touchscreen/ili210x.c | 26 ++++++++---- drivers/input/touchscreen/st1232.c | 48 +++++++++++++++++++--- 8 files changed, 102 insertions(+), 22 deletions(-) Reproducer flagged being flaky revisions tested: 18, total time: 5h19m59.743798165s (build: 1h51m30.363208475s, test: 3h26m13.408868909s) first bad commit: 7c2d18357f2c4d26e727e76245e297ffdbc03097 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input recipients (to): ["torvalds@linux-foundation.org"] recipients (cc): [] crash: BUG: spinlock bad magic in synchronize_srcu BUG: spinlock bad magic on CPU#1, syz-executor.0/28034 lock: 0xffff8880b9f00040, .magic: 00000000, .owner: /-1, .owner_cpu: 0 CPU: 1 PID: 28034 Comm: syz-executor.0 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x9a/0xcc lib/dump_stack.c:120 debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] do_raw_spin_lock+0x216/0x2b0 kernel/locking/spinlock_debug.c:112 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0x41/0x50 kernel/locking/spinlock.c:159 srcu_might_be_idle kernel/rcu/srcutree.c:772 [inline] synchronize_srcu+0x4f/0x1c0 kernel/rcu/srcutree.c:999 kvm_mmu_uninit_vm+0x10/0x20 arch/x86/kvm/mmu/mmu.c:5483 kvm_arch_destroy_vm+0x42c/0x5f0 arch/x86/kvm/x86.c:10563 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:820 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4038 [inline] kvm_dev_ioctl+0xc64/0x1100 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4090 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x11f/0x190 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4665e9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f35bb8a7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe1be3b62f R14: 00007f35bb8a7300 R15: 0000000000022000 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 28034 Comm: syz-executor.0 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_segcblist_enqueue+0x90/0xf0 kernel/rcu/rcu_segcblist.c:250 Code: 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 4e 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 21 48 89 75 00 48 89 73 20 48 83 c4 08 5b 5d c3 48 RSP: 0018:ffffc900037e7c10 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880b9e00080 RCX: ffffffff8151e790 RDX: 0000000000000000 RSI: ffffc900037e7cf8 RDI: ffff8880b9e000a0 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003 R10: fffff520006fcf74 R11: 6637303030302052 R12: ffffc900037e7cf8 R13: 0000000000000000 R14: ffff8880b9e00080 R15: ffff8880b9e00040 FS: 00007f35bb8a7700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000540198 CR3: 000000003d996000 CR4: 00000000001526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __call_srcu+0x193/0xc50 kernel/rcu/srcutree.c:859 __synchronize_srcu+0x128/0x220 kernel/rcu/srcutree.c:923 kvm_mmu_uninit_vm+0x10/0x20 arch/x86/kvm/mmu/mmu.c:5483 kvm_arch_destroy_vm+0x42c/0x5f0 arch/x86/kvm/x86.c:10563 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:820 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4038 [inline] kvm_dev_ioctl+0xc64/0x1100 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4090 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x11f/0x190 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4665e9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f35bb8a7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe1be3b62f R14: 00007f35bb8a7300 R15: 0000000000022000 Modules linked in: ---[ end trace 37cc98bda19a2ab3 ]--- RIP: 0010:rcu_segcblist_enqueue+0x90/0xf0 kernel/rcu/rcu_segcblist.c:250 Code: 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 4e 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 21 48 89 75 00 48 89 73 20 48 83 c4 08 5b 5d c3 48 RSP: 0018:ffffc900037e7c10 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880b9e00080 RCX: ffffffff8151e790 RDX: 0000000000000000 RSI: ffffc900037e7cf8 RDI: ffff8880b9e000a0 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003 R10: fffff520006fcf74 R11: 6637303030302052 R12: ffffc900037e7cf8 R13: 0000000000000000 R14: ffff8880b9e00080 R15: ffff8880b9e00040 FS: 00007f35bb8a7700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000540198 CR3: 000000003d996000 CR4: 00000000001526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400