bisecting fixing commit since 4fccc2503536a564a4ba31a1d50439854201659f building syzkaller on 2c36e7a75f8689b3da20e1a81a2ee5391f3af6e5 testing commit 4fccc2503536a564a4ba31a1d50439854201659f with gcc (GCC) 8.1.0 kernel signature: d79b16227fadd6154ebb61f05540113480f29d2cbe52686686f8a51ec08a2fc3 all runs: crashed: general protection fault in macvlan_hard_header testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: 2bdd3e8c0281da00abc3585f9cb893e180aacbf723094dc0ff566135d4527332 all runs: crashed: general protection fault in macvlan_hard_header revisions tested: 2, total time: 24m24.252116319s (build: 18m0.153864935s, test: 5m39.013007434s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: general protection fault in macvlan_hard_header IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready device bridge_slave_0 left promiscuous mode bridge0: port 1(bridge_slave_0) entered disabled state 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: 1 PID: 7362 Comm: syz-executor.1 Not tainted 4.19.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:dev_hard_header include/linux/netdevice.h:2882 [inline] RIP: 0010:macvlan_hard_header+0x7e/0x190 drivers/net/macvlan.c:593 Code: c1 ee 03 80 3c 06 00 0f 85 82 00 00 00 4c 8b a3 20 02 00 00 4d 85 e4 74 3a 48 b8 00 00 00 00 00 fc ff df 4c 89 e6 48 c1 ee 03 <80> 3c 06 00 0f 85 b3 00 00 00 49 8b 04 24 48 85 c0 74 16 48 89 de RSP: 0000:ffff8881f6907880 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff895b13e0 RCX: ffff8881d4755cb8 RDX: 00000000000086dd RSI: 0007000460070004 RDI: ffffffff895b1600 RBP: ffff8881f69078c0 R08: ffff8881e3c47e10 R09: 0000000000000060 R10: 1ffff1103c3b9f26 R11: 0000000000000000 R12: 0038002300380022 R13: ffff8881d4128d00 R14: ffff8881d4128d00 R15: ffff8881d4755b40 FS: 000000000175f940(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 00000001f3dfa006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dev_hard_header include/linux/netdevice.h:2885 [inline] neigh_resolve_output+0x46c/0x810 net/core/neighbour.c:1369 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x8f6/0x2200 net/ipv6/ip6_output.c:120 ip6_finish_output+0x3c6/0xa90 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x1bf/0x660 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] mld_sendpack+0x87c/0xcd0 net/ipv6/mcast.c:1684 mld_send_cr net/ipv6/mcast.c:1980 [inline] mld_ifc_timer_expire+0x372/0x740 net/ipv6/mcast.c:2479 call_timer_fn+0x14c/0x510 kernel/time/timer.c:1338 expire_timers kernel/time/timer.c:1375 [inline] __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0xb63/0x1180 kernel/time/timer.c:1709 __do_softirq+0x260/0x92d kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:544 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:clear_page_erms+0x7/0x10 arch/x86/lib/clear_page_64.S:48 Code: 48 89 47 18 48 89 47 20 48 89 47 28 48 89 47 30 48 89 47 38 48 8d 7f 40 75 d9 90 c3 0f 1f 80 00 00 00 00 b9 00 10 00 00 31 c0 aa c3 90 90 90 90 90 90 48 85 ff 0f 84 06 03 00 00 48 b8 00 00 RSP: 0000:ffff8881f42c7b40 EFLAGS: 00010246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff888000000000 RCX: 0000000000001000 RDX: 1ffff1103e789eb3 RSI: 0000000000007fc0 RDI: ffff8881c51ff000 RBP: ffff8881f42c7b58 R08: ffffffffffffffe8 R09: 0000000000000000 R10: ffffed103ed24732 R11: ffff8881f6923993 R12: ffff8881f3c4e280 R13: ffffea0007140000 R14: 0000000000000000 R15: 0000000000000000 process_huge_page mm/memory.c:4762 [inline] clear_huge_page+0x165/0x3b0 mm/memory.c:4822 __do_huge_pmd_anonymous_page mm/huge_memory.c:580 [inline] do_huge_pmd_anonymous_page+0x477/0x1420 mm/huge_memory.c:737 create_huge_pmd mm/memory.c:4025 [inline] __handle_mm_fault+0x2117/0x3230 mm/memory.c:4229 handle_mm_fault+0x36b/0x8d0 mm/memory.c:4295 __do_page_fault+0x466/0xb20 arch/x86/mm/fault.c:1412 do_page_fault+0x64/0x3a7 arch/x86/mm/fault.c:1487 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1205 RIP: 0033:0x443747 Code: 48 83 c7 04 f6 c2 08 74 0e 48 8b 0e 48 89 0f 48 83 c6 08 48 83 c7 08 81 e2 f0 00 00 00 74 1f 0f 1f 40 00 48 8b 0e 4c 8b 46 08 <48> 89 0f 4c 89 47 08 83 ea 10 48 8d 76 10 48 8d 7f 10 75 e5 f3 c3 RSP: 002b:00007ffdf7ae1eb8 EFLAGS: 00010202 RAX: 00000000200000c0 RBX: 000000000076c920 RCX: 000000306d616574 RDX: 0000000000000010 RSI: 00000000007700e0 RDI: 00000000200000c0 RBP: 00000000007700c0 R08: 0000000000000000 R09: 00ffffffffffffff R10: 00007ffdf7ae1f90 R11: 0000000000000246 R12: 000000000076bf20 R13: 00000000007700c8 R14: 000000000000c0ac R15: 000000000076bf2c Modules linked in: ---[ end trace c9a87337a9fd3c37 ]--- RIP: 0010:dev_hard_header include/linux/netdevice.h:2882 [inline] RIP: 0010:macvlan_hard_header+0x7e/0x190 drivers/net/macvlan.c:593 Code: c1 ee 03 80 3c 06 00 0f 85 82 00 00 00 4c 8b a3 20 02 00 00 4d 85 e4 74 3a 48 b8 00 00 00 00 00 fc ff df 4c 89 e6 48 c1 ee 03 <80> 3c 06 00 0f 85 b3 00 00 00 49 8b 04 24 48 85 c0 74 16 48 89 de RSP: 0000:ffff8881f6907880 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff895b13e0 RCX: ffff8881d4755cb8 RDX: 00000000000086dd RSI: 0007000460070004 RDI: ffffffff895b1600 RBP: ffff8881f69078c0 R08: ffff8881e3c47e10 R09: 0000000000000060 R10: 1ffff1103c3b9f26 R11: 0000000000000000 R12: 0038002300380022 R13: ffff8881d4128d00 R14: ffff8881d4128d00 R15: ffff8881d4755b40 FS: 000000000175f940(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 00000001f3dfa006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400