syzbot


general protection fault in icmpv6_xrlim_allow

Status: fixed on 2019/10/08 11:22
Subsystems: net
[Documentation on labels]
Fix commit: c3bcde026684 tipc: pass tunnel dev as NULL to udp_tunnel(6)_xmit_skb
First crash: 1795d, last: 1788d

Sample crash report:
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: 23438 Comm: syz-executor.2 Not tainted 5.2.0-rc2+ #12
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:icmpv6_xrlim_allow+0x1b2/0x440 net/ipv6/icmp.c:214
Code: 4d 8b ac 24 b0 00 00 00 4d 85 ed 74 33 e8 a6 4a 4a fb 49 8d bd d0 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 70 02 00 00 49 8b 85 d0 02 00 00 65 48 ff 40 78
RSP: 0018:ffff8880ae809890 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff11015d01314 RCX: ffffffff86265ad6
RDX: 1ff110122732485a RSI: ffffffff86265b1a RDI: ff888091399242d0
RBP: ffff8880ae809950 R08: ffff8880943185c0 R09: 0000000000000006
R10: ffffed1015d06be7 R11: ffff8880ae835f3b R12: ffff888099c6227f
R13: ff88809139924000 R14: 0000000000000001 R15: ffff888070c24000
FS:  00007ff2d34cb700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31323000 CR3: 0000000085870000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 icmp6_send+0x1107/0x1e50 net/ipv6/icmp.c:540
 icmpv6_send+0xec/0x230 net/ipv6/ip6_icmp.c:43
 ip6_link_failure+0x2b/0x530 net/ipv6/route.c:2367
 dst_link_failure include/net/dst.h:416 [inline]
 ndisc_error_report+0xce/0x1c0 net/ipv6/ndisc.c:712
 neigh_invalidate+0x245/0x570 net/core/neighbour.c:1000
 neigh_timer_handler+0xc33/0xf30 net/core/neighbour.c:1086
 call_timer_fn+0x193/0x720 kernel/time/timer.c:1322
 expire_timers kernel/time/timer.c:1366 [inline]
 __run_timers kernel/time/timer.c:1685 [inline]
 __run_timers kernel/time/timer.c:1653 [inline]
 run_timer_softirq+0x66f/0x1740 kernel/time/timer.c:1698
 __do_softirq+0x25c/0x94c kernel/softirq.c:293
 invoke_softirq kernel/softirq.c:374 [inline]
 irq_exit+0x180/0x1d0 kernel/softirq.c:414
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1068
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:806
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline]
RIP: 0010:kfree+0x183/0x220 mm/slab.c:3756
Code: 58 7e 0f 85 b6 fe ff ff e8 eb 30 57 ff e9 ac fe ff ff e8 60 e9 cc ff 48 83 3d 88 3e 09 07 00 0f 84 9e 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 41 5c 41 5d 41 5e 5d c3 4c 89 f2 4c 89 e6 4c 89
RSP: 0018:ffff888057ce7450 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff110128631d1
RDX: 0000000000000000 RSI: ffff888094318e68 RDI: 0000000000000286
RBP: ffff888057ce7470 R08: ffff8880943185c0 R09: ffff888094318e88
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880912ab5c0
R13: ffff8880aa400c40 R14: ffffffff857b9ec3 R15: ffff8880912abc80
 skb_free_head+0x93/0xb0 net/core/skbuff.c:593
 skb_release_data+0x42d/0x7c0 net/core/skbuff.c:613
 skb_release_all+0x4d/0x60 net/core/skbuff.c:667
 __kfree_skb net/core/skbuff.c:681 [inline]
 consume_skb net/core/skbuff.c:741 [inline]
 consume_skb+0xe2/0x380 net/core/skbuff.c:735
 sctp_chunk_destroy net/sctp/sm_make_chunk.c:1452 [inline]
 sctp_chunk_put+0x192/0x280 net/sctp/sm_make_chunk.c:1479
 sctp_datamsg_destroy net/sctp/chunk.c:113 [inline]
 sctp_datamsg_put+0x1ca/0x4d0 net/sctp/chunk.c:130
 sctp_chunk_free+0x49/0x70 net/sctp/sm_make_chunk.c:1464
 __sctp_outq_teardown+0x71f/0xc60 net/sctp/outqueue.c:256
 sctp_outq_free+0x16/0x20 net/sctp/outqueue.c:276
 sctp_association_free+0x208/0x79a net/sctp/associola.c:347
 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:924 [inline]
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1312 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1179 [inline]
 sctp_do_sm+0x3a66/0x50e0 net/sctp/sm_sideeffect.c:1150
 sctp_primitive_SHUTDOWN+0xa0/0xd0 net/sctp/primitive.c:89
 sctp_close+0x445/0x860 net/sctp/socket.c:1527
 inet_release+0xe0/0x1f0 net/ipv4/af_inet.c:431
 inet6_release+0x53/0x80 net/ipv6/af_inet6.c:474
 __sock_release+0xce/0x2a0 net/socket.c:607
 sock_close+0x1b/0x30 net/socket.c:1279
 __fput+0x2ff/0x890 fs/file_table.c:280
 ____fput+0x16/0x20 fs/file_table.c:313
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 get_signal+0x1dda/0x2240 kernel/signal.c:2434
 do_signal+0x87/0x1900 arch/x86/kernel/signal.c:815
 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:279 [inline]
 do_syscall_64+0x58e/0x680 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff2d34cac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 000000000001008d RBX: 0000000000000003 RCX: 0000000000459279
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff2d34cb6d4
R13: 00000000004c6670 R14: 00000000004db380 R15: 00000000ffffffff
Modules linked in:
---[ end trace 948ca0d1017c25bf ]---
RIP: 0010:icmpv6_xrlim_allow+0x1b2/0x440 net/ipv6/icmp.c:214
Code: 4d 8b ac 24 b0 00 00 00 4d 85 ed 74 33 e8 a6 4a 4a fb 49 8d bd d0 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 70 02 00 00 49 8b 85 d0 02 00 00 65 48 ff 40 78
RSP: 0018:ffff8880ae809890 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff11015d01314 RCX: ffffffff86265ad6
RDX: 1ff110122732485a RSI: ffffffff86265b1a RDI: ff888091399242d0
RBP: ffff8880ae809950 R08: ffff8880943185c0 R09: 0000000000000006
R10: ffffed1015d06be7 R11: ffff8880ae835f3b R12: ffff888099c6227f
R13: ff88809139924000 R14: 0000000000000001 R15: ffff888070c24000
FS:  00007ff2d34cb700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31323000 CR3: 0000000085870000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/04 04:49 bpf-next 0462eaacee49 ce07a7ae .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/04 01:48 bpf-next 0462eaacee49 ce07a7ae .config console log report ci-upstream-bpf-next-kasan-gce
2019/05/30 00:08 net-next-old 36f18439ea16 5457ef34 .config console log report ci-upstream-net-kasan-gce
2019/05/28 17:29 net-next-old cec4f328c929 6bd61501 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.