bisecting cause commit starting from 36a44bcdd8df092d76c11bc213e81c5817d4e302 building syzkaller on 2ffa6679c4790a83f26a1b674ed34800e028fe2e testing commit 36a44bcdd8df092d76c11bc213e81c5817d4e302 with gcc (GCC) 8.1.0 kernel signature: 490c210b200b6ba6183b15984e995615bf92f4c60c27cc2f1c8cc2aee61ebbc0 all runs: crashed: general protection fault in smc_ib_remove_dev testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.1.0 kernel signature: e21f9e4bfa322baff91101b202da096054ace0891bd0e29ec267d2f63f4a0518 all runs: crashed: general protection fault in smc_ib_remove_dev testing release v5.4 testing commit 219d54332a09e8d8741c1e1982f5eae56099de85 with gcc (GCC) 8.1.0 kernel signature: 3d6c56763fe9c2afa595e58ee0e6f3c59826894ad3c4859da9497467e37bf08e all runs: crashed: general protection fault in smc_ib_remove_dev testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 kernel signature: c2d04d0b1399216e3660010d424ba041829455e7315291f40a24929b929b39d8 all runs: crashed: general protection fault in smc_ib_remove_dev testing release v5.2 testing commit 0ecfebd2b52404ae0c54a878c872bb93363ada36 with gcc (GCC) 8.1.0 kernel signature: 6e4edcdec01c629c91853ccccdac8bfc22df8920f45eb80276c7fd6ac9d89d1e all runs: OK # git bisect start 4d856f72c10ecb060868ed10ff1b1453943fc6c8 0ecfebd2b52404ae0c54a878c872bb93363ada36 Bisecting: 7848 revisions left to test after this (roughly 13 steps) [43c95d3694cc448fdf50bd53b7ff3a5bb4655883] Merge tag 'pinctrl-v5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl testing commit 43c95d3694cc448fdf50bd53b7ff3a5bb4655883 with gcc (GCC) 8.1.0 kernel signature: 0101d5415ba42ed382adbeb2426fb4832caaa63862f0198df62c33fb001990ef 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 43c95d3694cc448fdf50bd53b7ff3a5bb4655883 Bisecting: 4619 revisions left to test after this (roughly 12 steps) [8f6ccf6159aed1f04c6d179f61f6fb2691261e84] Merge tag 'clone3-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux testing commit 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 with gcc (GCC) 8.1.0 kernel signature: a50470cbad813fa99e448c7899a89c396df426a537aa21a4f158572263044441 all runs: OK # git bisect good 8f6ccf6159aed1f04c6d179f61f6fb2691261e84 Bisecting: 2306 revisions left to test after this (roughly 11 steps) [753c8d9b7d81206bb5d011b28abe829d364b028e] Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 753c8d9b7d81206bb5d011b28abe829d364b028e with gcc (GCC) 8.1.0 kernel signature: 075555531fa5f7f9031d7f2f1ea8ade4800d3172a4c300f5589164b16d29e854 all runs: OK # git bisect good 753c8d9b7d81206bb5d011b28abe829d364b028e Bisecting: 1152 revisions left to test after this (roughly 10 steps) [d72619706abc4aa7e540ea882dae883cee7cc3b3] Merge tag 'tty-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty testing commit d72619706abc4aa7e540ea882dae883cee7cc3b3 with gcc (GCC) 8.1.0 kernel signature: 3854560a9ff0a5109063dee985b0d3d8f2d1e2b0c1f4f163dea0cad63d150d0f all runs: OK # git bisect good d72619706abc4aa7e540ea882dae883cee7cc3b3 Bisecting: 574 revisions left to test after this (roughly 9 steps) [f632a8170a6b667ee4e3f552087588f0fe13c4bb] Merge tag 'driver-core-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core testing commit f632a8170a6b667ee4e3f552087588f0fe13c4bb with gcc (GCC) 8.1.0 kernel signature: e3944c9ee05430284b1becdc88ef55c44a4649766c75b3907fc8d38c76911222 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad f632a8170a6b667ee4e3f552087588f0fe13c4bb Bisecting: 307 revisions left to test after this (roughly 8 steps) [d06e4156430e7c5eb4f04dabcaa0d9e2fba335e3] Merge tag 'devicetree-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit d06e4156430e7c5eb4f04dabcaa0d9e2fba335e3 with gcc (GCC) 8.1.0 kernel signature: 4e9b095915c247a2b4276c132bcc242b3caf17186c46e8fe04d3230e25137fdc all runs: OK # git bisect good d06e4156430e7c5eb4f04dabcaa0d9e2fba335e3 Bisecting: 160 revisions left to test after this (roughly 7 steps) [2c207985f354dfb549e5a543102a3e084eea81f6] mm/oom_kill.c: remove redundant OOM score normalization in select_bad_process() testing commit 2c207985f354dfb549e5a543102a3e084eea81f6 with gcc (GCC) 8.1.0 kernel signature: 23c823209d11da059dbc0fc0f9bfeab93adb5cb4916d8752363668bcf53884c9 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: crashed: general protection fault in send_hsr_supervision_frame run #8: crashed: general protection fault in send_hsr_supervision_frame run #9: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 2c207985f354dfb549e5a543102a3e084eea81f6 Bisecting: 73 revisions left to test after this (roughly 6 steps) [0b14e8aa68223c2c124d408aa4b110b364d13c53] mm: memcg/slab: rename slab delayed deactivation functions and fields testing commit 0b14e8aa68223c2c124d408aa4b110b364d13c53 with gcc (GCC) 8.1.0 kernel signature: d86c15f602230c099ef333aae1f7dd9c05dd84cfe70a4c36600f9038915e6232 all runs: OK # git bisect good 0b14e8aa68223c2c124d408aa4b110b364d13c53 Bisecting: 36 revisions left to test after this (roughly 5 steps) [fc7835c2f8ea800ded22f68bd782cd17a6dd83cd] nios2: switch to generic version of pte allocation testing commit fc7835c2f8ea800ded22f68bd782cd17a6dd83cd with gcc (GCC) 8.1.0 kernel signature: 3150c6d69c6148045e8cdb271f4840209838a4bed1242e74812406b26ff43985 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad fc7835c2f8ea800ded22f68bd782cd17a6dd83cd Bisecting: 18 revisions left to test after this (roughly 4 steps) [7b9afb86b6328f10dc2cad9223d7def12d60e505] sparc64: use the generic get_user_pages_fast code testing commit 7b9afb86b6328f10dc2cad9223d7def12d60e505 with gcc (GCC) 8.1.0 kernel signature: 36b853e29f291e6a506ebe18ec326cb1a9215ae3d5a1b9ab99c87455a31be327 all runs: OK # git bisect good 7b9afb86b6328f10dc2cad9223d7def12d60e505 Bisecting: 9 revisions left to test after this (roughly 3 steps) [b5d1c39f34d1c9bca0c4b9ae2e339fbbe264a9c7] mm/gup.c: remove some BUG_ONs from get_gate_page() testing commit b5d1c39f34d1c9bca0c4b9ae2e339fbbe264a9c7 with gcc (GCC) 8.1.0 kernel signature: 00e50bfd1a8e600b6555d869988adef7d851f9f9dd26f19aee35d689496ca3e2 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad b5d1c39f34d1c9bca0c4b9ae2e339fbbe264a9c7 Bisecting: 4 revisions left to test after this (roughly 2 steps) [817be129e6f254e5bd8c17b1da834c8f612dca28] mm: validate get_user_pages_fast flags testing commit 817be129e6f254e5bd8c17b1da834c8f612dca28 with gcc (GCC) 8.1.0 kernel signature: dbaa762481634afdfc701503bda65023c7f19acc6aedf752557637b62d251fc5 all runs: OK # git bisect good 817be129e6f254e5bd8c17b1da834c8f612dca28 Bisecting: 2 revisions left to test after this (roughly 1 step) [01a369160bbea43727aa2b99877f86ebddba9acc] mm: switch gup_hugepte to use try_get_compound_head testing commit 01a369160bbea43727aa2b99877f86ebddba9acc with gcc (GCC) 8.1.0 kernel signature: 6492fdfcecf332310e460fc25a5fb151a0f1931b019ea3384a9842e3b5966145 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad 01a369160bbea43727aa2b99877f86ebddba9acc Bisecting: 0 revisions left to test after this (roughly 0 steps) [cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7] mm: move the powerpc hugepd code to mm/gup.c testing commit cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7 with gcc (GCC) 8.1.0 kernel signature: 3f2b0e89a6b501368fe258cb772db5912e81986e1895064310e70eff264a34e2 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: crashed: general protection fault in send_hsr_supervision_frame # git bisect bad cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7 cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7 is the first bad commit commit cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7 Author: Christoph Hellwig Date: Thu Jul 11 20:57:28 2019 -0700 mm: move the powerpc hugepd code to mm/gup.c While only powerpc supports the hugepd case, the code is pretty generic and I'd like to keep all GUP internals in one place. Link: http://lkml.kernel.org/r/20190625143715.1689-15-hch@lst.de Signed-off-by: Christoph Hellwig Cc: Andrey Konovalov Cc: Benjamin Herrenschmidt Cc: David Miller Cc: James Hogan Cc: Jason Gunthorpe Cc: Khalid Aziz Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Paul Burton Cc: Paul Mackerras Cc: Ralf Baechle Cc: Rich Felker Cc: Yoshinori Sato Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds arch/powerpc/Kconfig | 1 + arch/powerpc/mm/hugetlbpage.c | 72 ------------------------------------- include/linux/hugetlb.h | 18 ---------- mm/Kconfig | 10 ++++++ mm/gup.c | 82 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 90 deletions(-) culprit signature: 3f2b0e89a6b501368fe258cb772db5912e81986e1895064310e70eff264a34e2 parent signature: dbaa762481634afdfc701503bda65023c7f19acc6aedf752557637b62d251fc5 revisions tested: 19, total time: 5h0m26.769350262s (build: 1h57m10.719393059s, test: 3h1m15.266682698s) first bad commit: cbd34da7dc9afd521e0bea5e7d12701f4a9da7c7 mm: move the powerpc hugepd code to mm/gup.c cc: ["akpm@linux-foundation.org" "hch@lst.de" "torvalds@linux-foundation.org"] crash: general protection fault in send_hsr_supervision_frame kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.2.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:255 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880ae809c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff88807716cb40 RCX: 1ffff1100ee056f4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae809ce0 R08: 0000000000000000 R09: 0000000000000000 R10: fffffbfff12cff1f R11: ffffffff8887a040 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff86ffb360 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 0000000084623000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hsr_announce+0xd9/0x2b0 net/hsr/hsr_device.c:339 call_timer_fn+0x169/0x570 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] run_timer_softirq+0xd85/0x13c0 kernel/time/timer.c:1698 __do_softirq+0x262/0x9a8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19a/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0x1a6/0x5f0 arch/x86/kernel/apic/apic.c:1095 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:828 RIP: 0010:native_safe_halt+0x12/0x20 arch/x86/include/asm/irqflags.h:61 Code: fe ff ff 48 89 df e8 fd af 8e fa eb 9c 90 90 90 90 90 90 90 90 90 90 90 55 48 89 e5 e9 07 00 00 00 0f 00 2d 90 cb 5c 00 fb f4 <5d> c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 e9 07 00 00 RSP: 0018:ffffffff88807cd8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffffffff8887a040 RCX: ffffffff870a9fdd RDX: 1ffffffff1124f5d RSI: 0000000000000008 RDI: ffffffff88927ae8 RBP: ffffffff88807cd8 R08: fffffbfff110f409 R09: fffffbfff110f409 R10: fffffbfff110f408 R11: ffffffff8887a047 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff88927ad8 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:156 [inline] default_idle+0x51/0x340 arch/x86/kernel/process.c:580 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:571 default_idle_call+0x87/0xa0 kernel/sched/idle.c:94 cpuidle_idle_call kernel/sched/idle.c:154 [inline] do_idle+0x488/0x750 kernel/sched/idle.c:263 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:354 rest_init+0x1a4/0x279 init/main.c:451 arch_call_rest_init+0x9/0xc start_kernel+0x68b/0x6c6 init/main.c:761 x86_64_start_reservations+0x29/0x2b arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x76/0x79 arch/x86/kernel/head64.c:453 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 Modules linked in: ---[ end trace 05506cd8635d0e6d ]--- RIP: 0010:send_hsr_supervision_frame+0x30/0xf60 net/hsr/hsr_device.c:255 Code: 89 e5 41 57 41 56 41 55 49 89 fd 41 54 41 89 d4 48 89 c2 53 48 c1 ea 03 48 83 ec 50 48 89 45 d0 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 89 75 c8 0f 85 83 0c 00 00 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffff8880ae809c68 EFLAGS: 00010282 RAX: dffffc0000000000 RBX: ffff88807716cb40 RCX: 1ffff1100ee056f4 RDX: 0000000000000002 RSI: 0000000000000017 RDI: 0000000000000000 RBP: ffff8880ae809ce0 R08: 0000000000000000 R09: 0000000000000000 R10: fffffbfff12cff1f R11: ffffffff8887a040 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff86ffb360 FS: 0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 0000000084623000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400