bisecting fixing commit since 4fccc2503536a564a4ba31a1d50439854201659f building syzkaller on 2c36e7a75f8689b3da20e1a81a2ee5391f3af6e5 testing commit 4fccc2503536a564a4ba31a1d50439854201659f with gcc (GCC) 8.1.0 kernel signature: 56ae1fca5122924790fc0ea76aa9fe83f4f834c895f5aff5236db92c7068ae0a all runs: crashed: general protection fault in macvlan_hard_header testing current HEAD 2c746135a12e3f329171ed168ca0078d468f6d85 testing commit 2c746135a12e3f329171ed168ca0078d468f6d85 with gcc (GCC) 8.1.0 kernel signature: b186ed43fd265e0cc0749ced61ce0575dc4209cedb58acfb47cd55aa06baaba8 all runs: crashed: general protection fault in macvlan_hard_header revisions tested: 2, total time: 24m15.31481546s (build: 17m45.780599772s, test: 5m40.743848607s) the crash still happens on HEAD commit msg: Linux 4.19.158 crash: general protection fault in macvlan_hard_header IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready kasan: CONFIG_KASAN_INLINE enabled kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 8374 Comm: syz-executor.0 Not tainted 4.19.158-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: 0018:ffff8880ba6077e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff895b03e0 RCX: ffff88807f3e05f8 RDX: 00000000000086dd RSI: 0007200000070004 RDI: ffffffff895b0600 RBP: ffff8880ba607820 R08: ffff8880b0e6a490 R09: 0000000000000038 R10: 1ffff11016013a26 R11: 0000000000000000 R12: 0039000000380023 R13: ffff8880ab618540 R14: ffff8880ab618540 R15: ffff88807f3e0480 FS: 00007fba845ea700(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555ee8260160 CR3: 00000000918f3000 CR4: 00000000001406f0 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] 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:3834 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:qlink_free mm/kasan/quarantine.c:150 [inline] RIP: 0010:qlist_free_all+0xf8/0x140 mm/kasan/quarantine.c:166 Code: 40 10 00 00 00 00 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 68 dd d3 ff 48 83 3d 38 a2 bf 06 00 74 46 48 8b 7d d0 57 9d <0f> 1f 44 00 00 eb ae 48 89 df e8 99 57 9a ff 48 b9 00 00 00 00 00 RSP: 0018:ffff88807f396c48 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff8880930427c0 RCX: 1ffff110128771b5 RDX: 0000000000000000 RSI: ffff8880943b8db0 RDI: 0000000000000282 RBP: ffff88807f396c80 R08: ffff8880943b8da8 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88813be9c940 R14: ffff888093041840 R15: ffffffff8851fa40 quarantine_reduce+0x163/0x1a0 mm/kasan/quarantine.c:259 kasan_kmalloc+0x9b/0xe0 mm/kasan/kasan.c:538 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc mm/slab.c:3397 [inline] __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x144/0x770 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] dev_set_alias+0x3a/0x1a0 net/core/dev.c:1279 do_setlink+0x7bc/0x2e10 net/core/rtnetlink.c:2436 rtnl_group_changelink net/core/rtnetlink.c:2925 [inline] rtnl_newlink+0x81f/0x1320 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+0x765/0xc40 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:0x45c4a9 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fba845e9c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fba845ea6d4 RCX: 000000000045c4a9 RDX: 0000000000000084 RSI: 0000000020000140 RDI: 0000000000000005 RBP: 000000000076bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009f9 R14: 00000000004cc75a R15: 000000000076bfcc Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN ---[ end trace 8d667d2e7e4ec16c ]--- CPU: 1 PID: 8359 Comm: syz-executor.5 Tainted: G D 4.19.158-syzkaller #0 RIP: 0010:dev_hard_header include/linux/netdevice.h:2882 [inline] RIP: 0010:macvlan_hard_header+0x7e/0x190 drivers/net/macvlan.c:593 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: 0018:ffff8880ba7077e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff895b03e0 RCX: ffff8880abebcab8 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 RDX: 00000000000086dd RSI: 0007200000070004 RDI: ffffffff895b0600 RBP: ffff8880ba707820 R08: ffff8880ad0d7d10 R09: 0000000000000038 R10: 1ffff110165115c6 R11: 0000000000000000 R12: 0039000000380023 R13: ffff8880abad4780 R14: ffff8880abad4780 R15: ffff8880abebc940 FS: 0000000000000000(0000) GS:ffff8880ba700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d80f0 CR3: 000000000846d000 CR4: 00000000001406e0 RSP: 0018:ffff8880ba6077e0 EFLAGS: 00010202 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: RAX: dffffc0000000000 RBX: ffffffff895b03e0 RCX: ffff88807f3e05f8 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 RDX: 00000000000086dd RSI: 0007200000070004 RDI: ffffffff895b0600 RBP: ffff8880ba607820 R08: ffff8880b0e6a490 R09: 0000000000000038 ip6_finish_output+0x3c6/0xa90 net/ipv6/ip6_output.c:154 R10: 1ffff11016013a26 R11: 0000000000000000 R12: 0039000000380023 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x1bf/0x660 net/ipv6/ip6_output.c:171 R13: ffff8880ab618540 R14: ffff8880ab618540 R15: ffff88807f3e0480 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 FS: 00007fba845ea700(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 ndisc_send_rs+0x116/0x5e0 net/ipv6/ndisc.c:685 addrconf_rs_timer+0x25c/0x5e0 net/ipv6/addrconf.c:3834 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555ee8260160 CR3: 00000000918f3000 CR4: 00000000001406f0 call_timer_fn+0x14c/0x510 kernel/time/timer.c:1338 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 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 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 __do_softirq+0x260/0x92d kernel/softirq.c:292