bisecting cause commit starting from ab8be66e724ecf4bffb2895c9c91bbd44fa687c7 building syzkaller on 4285ffa3fe16cc91c4747756dad420f703ee616e testing commit ab8be66e724ecf4bffb2895c9c91bbd44fa687c7 with gcc (GCC) 8.1.0 kernel signature: d610ac8c90c26a7efe081a52df76c84a74318527bd62341c1e15173ab13f4679 all runs: crashed: WARNING in idtentry_exit testing release v5.7 testing commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 with gcc (GCC) 8.1.0 kernel signature: a85008f4a28d72a8d3c681fb64b4de43461e9dd8e495e76eb7b1facb29f38a7a all runs: OK # git bisect start ab8be66e724ecf4bffb2895c9c91bbd44fa687c7 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162 Bisecting: 13278 revisions left to test after this (roughly 14 steps) [42612e7763315cf5d43c4422781e75f9ee57597a] Merge tag 'f2fs-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs testing commit 42612e7763315cf5d43c4422781e75f9ee57597a with gcc (GCC) 8.1.0 kernel signature: b08f934ac89c65c77a8654ffd76464436605d68c252947e3bd766dc22bf266ef all runs: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 42612e7763315cf5d43c4422781e75f9ee57597a Bisecting: 13278 revisions left to test after this (roughly 14 steps) [4964dd29140a44e26474dbdca559b7393aba6c39] Merge tag 'afs-fixes-20200609' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs testing commit 4964dd29140a44e26474dbdca559b7393aba6c39 with gcc (GCC) 8.1.0 kernel signature: 49b856864dce0d97856f49e83ec44eaa054d23f2ac0ac87a724d4a5324938c38 run #0: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #1: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #2: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #3: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #4: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in corrupted run #5: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #6: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #7: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks run #8: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in corrupted run #9: basic kernel testing failed: BUG: using smp_processor_id() in preemptible code in ext4_mb_new_blocks # git bisect skip 4964dd29140a44e26474dbdca559b7393aba6c39 Bisecting: 13278 revisions left to test after this (roughly 14 steps) [e19485dc7a0d210b428a249c0595769bd495fb71] fpga: dfl: pci: reduce the scope of variable 'ret' testing commit e19485dc7a0d210b428a249c0595769bd495fb71 with gcc (GCC) 8.1.0 kernel signature: b63162a8126bd1d15e81b0ea40d6b014885a800d8c1a273154781c217fd1be0c all runs: OK # git bisect good e19485dc7a0d210b428a249c0595769bd495fb71 Bisecting: 5226 revisions left to test after this (roughly 12 steps) [290160b400263202042cb7676ab6391119c82ed6] Merge remote-tracking branch 'crypto/master' testing commit 290160b400263202042cb7676ab6391119c82ed6 with gcc (GCC) 8.1.0 kernel signature: 86b3b99dab8606cfb10aa8d2855387787b52a946dc42f327c00c5e1d0d9e4957 run #0: OK run #1: OK run #2: OK run #3: boot failed: can't ssh into the instance run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 290160b400263202042cb7676ab6391119c82ed6 Bisecting: 2624 revisions left to test after this (roughly 11 steps) [f5db0044e63b7fb2840424d343d817aa3f26d4db] Merge remote-tracking branch 'spi/for-next' testing commit f5db0044e63b7fb2840424d343d817aa3f26d4db with gcc (GCC) 8.1.0 kernel signature: 2d97d549eaee9269d7d957c598a387211ab36a596321507ec7e82ad023458312 all runs: OK # git bisect good f5db0044e63b7fb2840424d343d817aa3f26d4db Bisecting: 1173 revisions left to test after this (roughly 10 steps) [8af3f71b589259f680693088eba6a7005b5b3e71] Merge remote-tracking branch 'staging/staging-next' testing commit 8af3f71b589259f680693088eba6a7005b5b3e71 with gcc (GCC) 8.1.0 kernel signature: 29e4be5e111fccd5721850d43a046a3328f82f95b4558bdf8ced8a24026163b9 all runs: crashed: WARNING in idtentry_exit # git bisect bad 8af3f71b589259f680693088eba6a7005b5b3e71 Bisecting: 734 revisions left to test after this (roughly 10 steps) [d182c1bb4c187bc14f70c341b2c62fc617599076] Merge remote-tracking branch 'driver-core/driver-core-next' testing commit d182c1bb4c187bc14f70c341b2c62fc617599076 with gcc (GCC) 8.1.0 kernel signature: 7be55c61bf066cdff10ce056587dfdc4fb1f53aa0d32872ff500440007b229e0 all runs: crashed: WARNING in idtentry_exit # git bisect bad d182c1bb4c187bc14f70c341b2c62fc617599076 Bisecting: 259 revisions left to test after this (roughly 9 steps) [6c526a12c80e54d94e911f092ba5d13f6d7220c1] Merge remote-tracking branch 'rcu/rcu/next' testing commit 6c526a12c80e54d94e911f092ba5d13f6d7220c1 with gcc (GCC) 8.1.0 kernel signature: 02630944ed0525d4b029679de4086bacf68182402bb1cf4f677191f2fd72ac3a all runs: crashed: WARNING in idtentry_exit # git bisect bad 6c526a12c80e54d94e911f092ba5d13f6d7220c1 Bisecting: 223 revisions left to test after this (roughly 8 steps) [5a346406b5139645a5e8975179a423385729b6a0] Merge remote-tracking branch 'ftrace/for-next' testing commit 5a346406b5139645a5e8975179a423385729b6a0 with gcc (GCC) 8.1.0 kernel signature: 1437b9d070b5e5f2a55fd865af0a6ddab51f447d446abce1011c39c33e0d660f all runs: crashed: WARNING in idtentry_exit # git bisect bad 5a346406b5139645a5e8975179a423385729b6a0 Bisecting: 107 revisions left to test after this (roughly 7 steps) [e9c8c19545f31ec817507ee11884356799f14917] Merge branch 'perf/core' testing commit e9c8c19545f31ec817507ee11884356799f14917 with gcc (GCC) 8.1.0 kernel signature: 7136c70943623866e941f1821f4c55cb973b1072356a03b78519109919ad8258 run #0: boot failed: can't ssh into the instance 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 e9c8c19545f31ec817507ee11884356799f14917 Bisecting: 57 revisions left to test after this (roughly 6 steps) [9227c1cbc6d1a0464e2802fe282a6f6656f8341f] Merge branch 'timers/urgent' testing commit 9227c1cbc6d1a0464e2802fe282a6f6656f8341f with gcc (GCC) 8.1.0 kernel signature: 6f17c0875d750929bb4625c16ce2ca83fa140b8314462a5f3d568b608b63aa7c run #0: OK run #1: boot failed: can't ssh into the instance 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 9227c1cbc6d1a0464e2802fe282a6f6656f8341f Bisecting: 29 revisions left to test after this (roughly 5 steps) [54f5299ad9639e77b36fc5f452ad9b813bfa1500] Merge remote-tracking branch 'tip/auto-latest' testing commit 54f5299ad9639e77b36fc5f452ad9b813bfa1500 with gcc (GCC) 8.1.0 kernel signature: c53e99b200b77a53820913b0589386335a08dff38ec47c1c4c79784e14167da8 all runs: crashed: WARNING in idtentry_exit # git bisect bad 54f5299ad9639e77b36fc5f452ad9b813bfa1500 Bisecting: 16 revisions left to test after this (roughly 4 steps) [8e62572d2c29e1c484f5d4e7c016793209de2efb] Merge branch 'linus' testing commit 8e62572d2c29e1c484f5d4e7c016793209de2efb with gcc (GCC) 8.1.0 kernel signature: 74cb9be6618e398ef6755a252f462ed58a0ee9dc34a93f966816c3615e5a39c3 all runs: OK # git bisect good 8e62572d2c29e1c484f5d4e7c016793209de2efb Bisecting: 7 revisions left to test after this (roughly 3 steps) [a21ee6055c30ce68c4e201c6496f0ed2a1936230] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables testing commit a21ee6055c30ce68c4e201c6496f0ed2a1936230 with gcc (GCC) 8.1.0 kernel signature: e034d5becb397a666b319b8a6ee19f5a894e41a8cff120473249ceaa158b396a all runs: crashed: WARNING in idtentry_exit # git bisect bad a21ee6055c30ce68c4e201c6496f0ed2a1936230 Bisecting: 3 revisions left to test after this (roughly 2 steps) [48017e5481ce85ba52c4cff082cad5f021c4b413] sparc64: Fix asm/percpu.h build error testing commit 48017e5481ce85ba52c4cff082cad5f021c4b413 with gcc (GCC) 8.1.0 kernel signature: 00ef668c0b2005f46d561c2f0ead797f4086740f4a109154d09b6ee03caa18c4 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: boot failed: can't ssh into the instance run #6: OK run #7: OK run #8: OK run #9: OK # git bisect good 48017e5481ce85ba52c4cff082cad5f021c4b413 Bisecting: 1 revision left to test after this (roughly 1 step) [28e5bfd81c8de77504703adf24ceff9301e3c7be] s390: Break cyclic percpu include testing commit 28e5bfd81c8de77504703adf24ceff9301e3c7be with gcc (GCC) 8.1.0 kernel signature: f9a55ee59ed2d3a54deb4514dafbf9a8cd9dbecc0454aadced028b5d900cba30 all runs: OK # git bisect good 28e5bfd81c8de77504703adf24ceff9301e3c7be Bisecting: 0 revisions left to test after this (roughly 0 steps) [a6342915881a687b07847b7c57628de07a256525] arm: Break cyclic percpu include testing commit a6342915881a687b07847b7c57628de07a256525 with gcc (GCC) 8.1.0 kernel signature: 200a7becddb2bd9935d78ff72dc93dbf1c008c929a7873165f4af9649e3b687e all runs: OK # git bisect good a6342915881a687b07847b7c57628de07a256525 a21ee6055c30ce68c4e201c6496f0ed2a1936230 is the first bad commit commit a21ee6055c30ce68c4e201c6496f0ed2a1936230 Author: Peter Zijlstra Date: Mon May 25 12:22:41 2020 +0200 lockdep: Change hardirq{s_enabled,_context} to per-cpu variables Currently all IRQ-tracking state is in task_struct, this means that task_struct needs to be defined before we use it. Especially for lockdep_assert_irq*() this can lead to header-hell. Move the hardirq state into per-cpu variables to avoid the task_struct dependency. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Ingo Molnar Link: https://lkml.kernel.org/r/20200623083721.512673481@infradead.org include/linux/irqflags.h | 19 ++++++++++++------- include/linux/lockdep.h | 34 ++++++++++++++++++---------------- include/linux/sched.h | 2 -- kernel/fork.c | 4 +--- kernel/locking/lockdep.c | 30 +++++++++++++++--------------- kernel/softirq.c | 6 ++++++ 6 files changed, 52 insertions(+), 43 deletions(-) culprit signature: e034d5becb397a666b319b8a6ee19f5a894e41a8cff120473249ceaa158b396a parent signature: 200a7becddb2bd9935d78ff72dc93dbf1c008c929a7873165f4af9649e3b687e revisions tested: 19, total time: 4h0m14.49639002s (build: 1h42m17.504891315s, test: 2h14m38.480900899s) first bad commit: a21ee6055c30ce68c4e201c6496f0ed2a1936230 lockdep: Change hardirq{s_enabled,_context} to per-cpu variables cc: ["bigeasy@linutronix.de" "bsegall@google.com" "christian.brauner@ubuntu.com" "dietmar.eggemann@arm.com" "juri.lelli@redhat.com" "linux-kernel@vger.kernel.org" "mgorman@suse.de" "mingo@kernel.org" "mingo@redhat.com" "peterz@infradead.org" "rostedt@goodmis.org" "tglx@linutronix.de" "vincent.guittot@linaro.org" "will@kernel.org"] crash: WARNING in idtentry_exit ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8254 at arch/x86/entry/common.c:692 idtentry_exit+0x45/0xa0 arch/x86/entry/common.c:725 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 8254 Comm: syz-executor.0 Not tainted 5.8.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0xb3/0xec lib/dump_stack.c:118 panic+0x115/0x2fa kernel/panic.c:231 __warn.cold.13+0x20/0x25 kernel/panic.c:600 report_bug+0xc0/0xf0 lib/bug.c:198 handle_bug+0x35/0x90 arch/x86/kernel/traps.c:235 exc_invalid_op+0x13/0x60 arch/x86/kernel/traps.c:255 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:549 RIP: 0010:idtentry_exit+0x45/0xa0 arch/x86/entry/common.c:692 Code: 03 75 32 f6 87 91 00 00 00 02 74 18 40 84 f6 75 45 65 8b 05 6d e5 01 7d a9 ff ff ff 7f 74 1b e9 11 df 2d fe 40 84 f6 75 49 c3 <0f> 0b f6 87 88 00 00 00 03 74 ce e9 7b fc ff ff e8 06 53 26 fe 65 RSP: 0018:ffffc90002b777a0 EFLAGS: 00010002 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88810f63a280 RSI: 0000000000000000 RDI: ffffc90002b777a8 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff810f3900 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:551 RIP: 0010:__softirqentry_text_end+0x1f/0x5b Code: c1 7c 39 c1 75 df e9 30 fc ff ff 0f 01 f8 0f 1f 80 00 00 00 00 31 c0 8e e8 e9 da 09 e0 ff b8 f2 ff ff ff 31 d2 e9 d0 92 bf ff f2 ff ff ff 48 31 f6 e9 40 8e c0 fd b8 f2 ff ff ff 4d 31 db e9 RSP: 0018:ffffc90002b77850 EFLAGS: 00010083 RAX: 0000000000000000 RBX: ffffc90002b77888 RCX: ffff88810f63a280 RDX: 0000000000000000 RSI: 0000000080004000 RDI: 00007fffffffeff0 RBP: 000000000078bf50 R08: 0000000000000000 R09: 00000000ffffdff0 R10: 00000000bffffff0 R11: 0000000000000000 R12: ffffc90002b77f58 R13: ffff88810f246000 R14: ffff88810f63a280 R15: 00007ffffffff000 get_perf_callchain+0x21e/0x300 kernel/events/callchain.c:223 perf_callchain+0x71/0x80 kernel/events/core.c:6969 perf_prepare_sample+0x1c6/0x6a0 kernel/events/core.c:6996 __perf_event_output kernel/events/core.c:7154 [inline] perf_event_output_forward+0x73/0x150 kernel/events/core.c:7174 __perf_event_overflow+0x4f/0xe0 kernel/events/core.c:8746 perf_swevent_overflow+0x99/0xc0 kernel/events/core.c:8822 perf_tp_event+0x12d/0x330 kernel/events/core.c:9278 perf_trace_lock_acquire+0x129/0x170 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x190/0x3e0 kernel/locking/lockdep.c:4996 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x94/0x9d0 kernel/locking/mutex.c:1103 __do_sys_perf_event_open+0xad2/0xf00 kernel/events/core.c:11885 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c1d9 Code: Bad RIP value. RSP: 002b:00007f2378d5ec78 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 0000000000022fc0 RCX: 000000000045c1d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 RBP: 000000000078bf50 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 000000000078bf0c R13: 00007fff47f6e0bf R14: 00007f2378d5f9c0 R15: 000000000078bf0c Kernel Offset: disabled Rebooting in 86400 seconds..