bisecting fixing commit since 4fccc2503536a564a4ba31a1d50439854201659f building syzkaller on 2c36e7a75f8689b3da20e1a81a2ee5391f3af6e5 testing commit 4fccc2503536a564a4ba31a1d50439854201659f with gcc (GCC) 8.4.1 20210217 kernel signature: 0f553484812edb78be9496bad69625baf7650583deb2c60207fa6f08e72262d0 all runs: crashed: general protection fault in macvlan_hard_header testing current HEAD 78fec1611cbf7b0bdaddfdbf174a3a2463663bff testing commit 78fec1611cbf7b0bdaddfdbf174a3a2463663bff with gcc (GCC) 8.4.1 20210217 kernel signature: 2211e82c93b4e4367284d5fc9327609ff272c4e4e2f8943612b013e103894751 all runs: crashed: general protection fault in macvlan_hard_header revisions tested: 2, total time: 23m38.643916293s (build: 16m44.075025392s, test: 6m27.309461973s) the crash still happens on HEAD commit msg: Linux 4.19.183 crash: general protection fault in macvlan_hard_header IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready 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: 7375 Comm: syz-executor.1 Not tainted 4.19.183-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:2883 [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: 0018:ffff8881f68077e8 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffffffff895b3420 RCX: ffff8881f31bf378 RDX: 00000000000086dd RSI: 00000006e0044006 RDI: ffffffff895b3640 RBP: ffff8881f6807828 R08: ffff8881e8065890 R09: 0000000000000038 R10: 1ffff1103a3219f6 R11: 0000000000000000 R12: 0000003700220037 R13: ffff8881d61facc0 R14: ffff8881d61facc0 R15: ffff8881f31bf200 FS: 00007fb93b099700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d9a01 CR3: 00000001d59d7006 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dev_hard_header include/linux/netdevice.h:2886 [inline] neigh_resolve_output net/core/neighbour.c:1369 [inline] neigh_resolve_output+0x46c/0x810 net/core/neighbour.c:1354 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x8f6/0x2200 net/ipv6/ip6_output.c:120 ip6_finish_output+0x3c8/0xd20 net/ipv6/ip6_output.c:192 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x1bf/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ndisc_send_skb+0xcc8/0x12d0 net/ipv6/ndisc.c:491 ndisc_send_rs+0x116/0x5e0 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x25c/0x5e0 net/ipv6/addrconf.c:3835 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_timers kernel/time/timer.c:1664 [inline] run_timer_softirq+0xb63/0x1180 kernel/time/timer.c:1709 __do_softirq+0x25f/0x919 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:535 [inline] smp_apic_timer_interrupt+0x13e/0x540 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:batadv_hardif_get_by_netdev+0x12f/0x300 net/batman-adv/hard-interface.c:83 Code: 80 3c 28 00 0f 85 b2 01 00 00 48 8b 1b 48 81 fb e0 73 d7 8a 0f 84 40 01 00 00 48 8d 7b 20 48 89 f8 48 c1 e8 03 42 80 3c 28 00 <0f> 85 99 01 00 00 48 8b 85 70 ff ff ff 48 39 43 20 75 bb 4c 8d 7b RSP: 0018:ffff8881d41c6b68 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 1ffff1103c2f4ad4 RBX: ffff8881e17a5680 RCX: ffffffff81502ad1 RDX: 1ffffffff15aee7c RSI: 0000000000000004 RDI: ffff8881e17a56a0 RBP: ffff8881d41c6c08 R08: ffffed103ed04733 R09: ffffed103ed04732 R10: ffffed103ed04732 R11: ffff8881f6823993 R12: ffff8881e7c66c00 R13: dffffc0000000000 R14: ffff8881d41c6be0 R15: ffffffff89196060 batadv_hard_if_event+0xc8/0x10d0 net/batman-adv/hard-interface.c:1035 notifier_call_chain+0x8a/0x160 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x11/0x20 kernel/notifier.c:401 call_netdevice_notifiers_info+0x28/0x60 net/core/dev.c:1744 netdev_state_change net/core/dev.c:1349 [inline] netdev_state_change+0xd4/0x100 net/core/dev.c:1342 do_setlink+0x1b1a/0x2e10 net/core/rtnetlink.c:2661 rtnl_group_changelink net/core/rtnetlink.c:2925 [inline] rtnl_newlink+0xaff/0x1340 net/core/rtnetlink.c:3083 rtnetlink_rcv_msg+0x34f/0x8f0 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x13e/0x3d0 net/netlink/af_netlink.c:2455 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4796 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x443/0x650 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x764/0xc60 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xb5/0xf0 net/socket.c:632 ___sys_sendmsg+0x647/0x950 net/socket.c:2115 __sys_sendmsg+0xd9/0x180 net/socket.c:2153 __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2160 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x463d89 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:00007fb93b099198 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00000000000009f9 RCX: 0000000000463d89 RDX: 0000000000000084 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 000000000000002e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000053bf00 R13: 00007fb93b0996bc R14: 00000000ffffffff R15: 0000000000000003 Modules linked in: ---[ end trace 6cab713272e3c5a5 ]--- kasan: CONFIG_KASAN_INLINE enabled RIP: 0010:dev_hard_header include/linux/netdevice.h:2883 [inline] RIP: 0010:macvlan_hard_header+0x7e/0x190 drivers/net/macvlan.c:593 kasan: GPF could be caused by NULL-ptr deref or user memory access 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 general protection fault: 0000 [#2] PREEMPT SMP KASAN RSP: 0018:ffff8881f68077e8 EFLAGS: 00010207 CPU: 1 PID: 18 Comm: ksoftirqd/1 Tainted: G D 4.19.183-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:2883 [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 RAX: dffffc0000000000 RBX: ffffffff895b3420 RCX: ffff8881f31bf378 RSP: 0018:ffff8881f5747688 EFLAGS: 00010207 RAX: dffffc0000000000 RBX: ffffffff895b3420 RCX: ffff8881f36e6ef8 RDX: 00000000000086dd RSI: 00000006e0044006 RDI: ffffffff895b3640 RBP: ffff8881f57476c8 R08: ffff8881e8ec2f90 R09: 0000000000000038 R10: 1ffff1103a53b296 R11: 0000000000000000 R12: 0000003700220037 R13: ffff8881dd58c480 R14: ffff8881dd58c480 R15: ffff8881f36e6d80 FS: 0000000000000000(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000053c000 CR3: 000000000846d005 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: RDX: 00000000000086dd RSI: 00000006e0044006 RDI: ffffffff895b3640 RBP: ffff8881f6807828 R08: ffff8881e8065890 R09: 0000000000000038 dev_hard_header include/linux/netdevice.h:2886 [inline] neigh_resolve_output net/core/neighbour.c:1369 [inline] neigh_resolve_output+0x46c/0x810 net/core/neighbour.c:1354 neigh_output include/net/neighbour.h:501 [inline] ip6_finish_output2+0x8f6/0x2200 net/ipv6/ip6_output.c:120 ip6_finish_output+0x3c8/0xd20 net/ipv6/ip6_output.c:192 R10: 1ffff1103a3219f6 R11: 0000000000000000 R12: 0000003700220037 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x1bf/0x660 net/ipv6/ip6_output.c:209 dst_output include/net/dst.h:455 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] ndisc_send_skb+0xcc8/0x12d0 net/ipv6/ndisc.c:491 R13: ffff8881d61facc0 R14: ffff8881d61facc0 R15: ffff8881f31bf200 ndisc_send_rs+0x116/0x5e0 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x25c/0x5e0 net/ipv6/addrconf.c:3835 FS: 00007fb93b099700(0000) GS:ffff8881f6800000(0000) knlGS:0000000000000000 call_timer_fn+0x14c/0x510 kernel/time/timer.c:1338 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d9a01 CR3: 00000001d59d7006 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 expire_timers kernel/time/timer.c:1375 [inline] __run_timers kernel/time/timer.c:1696 [inline] __run_timers kernel/time/timer.c:1664 [inline] run_timer_softirq+0xb63/0x1180 kernel/time/timer.c:1709 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400