binder: 981:985 transaction failed 29189/-22, size 0-0 line 2896
==================================================================
binder: undelivered TRANSACTION_ERROR: 29189
BUG: KASAN: use-after-free in ccid_hc_tx_delete+0xde/0x100 net/dccp/ccid.c:188
Read of size 8 at addr ffff888086ce19c0 by task syz-executor.4/979
CPU: 0 PID: 979 Comm: syz-executor.4 Not tainted 5.0.0+ #7
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187
kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317
__asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135
ccid_hc_tx_delete+0xde/0x100 net/dccp/ccid.c:188
dccp_sk_destruct+0x3f/0x90 net/dccp/proto.c:181
__sk_destruct+0x55/0x6d0 net/core/sock.c:1699
__rcu_reclaim kernel/rcu/rcu.h:240 [inline]
rcu_do_batch kernel/rcu/tree.c:2452 [inline]
invoke_rcu_callbacks kernel/rcu/tree.c:2773 [inline]
rcu_process_callbacks+0x928/0x1390 kernel/rcu/tree.c:2754
__do_softirq+0x266/0x95a kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x180/0x1d0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x14a/0x570 arch/x86/kernel/apic/apic.c:1062
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807
RIP: 0010:_vm_normal_page+0x13/0x3d0 mm/memory.c:574
Code: 00 e9 94 fe ff ff 48 c7 c7 20 84 92 88 e8 d5 6d 0d 00 e9 d5 fe ff ff 55 48 89 e5 41 57 41 56 49 89 fe 41 55 4c 8d 6d d8 41 54 <4c> 8d a5 78 ff ff ff 53 49 c1 ec 03 48 bb 00 00 00 00 00 fc ff df
RSP: 0018:ffff88808fc9f6d8 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: ffff888089f70040 RBX: 00007f17fda04000 RCX: 0000000000000001
RDX: 800000006421f007 RSI: 00007f17fda03000 RDI: ffff8880921b3b58
RBP: ffff88808fc9f6f8 R08: ffff888089f70040 R09: fffff940003210f7
R10: fffff940003210f6 R11: ffffea00019087b3 R12: 0000000000000000
R13: ffff88808fc9f6d0 R14: ffff8880921b3b58 R15: dffffc0000000000
zap_pte_range mm/memory.c:1063 [inline]
zap_pmd_range mm/memory.c:1192 [inline]
zap_pud_range mm/memory.c:1221 [inline]
zap_p4d_range mm/memory.c:1242 [inline]
unmap_page_range+0x944/0x2330 mm/memory.c:1263
unmap_single_vma+0x19d/0x300 mm/memory.c:1308
unmap_vmas+0x115/0x250 mm/memory.c:1339
exit_mmap+0x2c2/0x530 mm/mmap.c:3139
__mmput kernel/fork.c:1047 [inline]
mmput+0x15f/0x4c0 kernel/fork.c:1068
exit_mm kernel/exit.c:545 [inline]
do_exit+0x838/0x2fd0 kernel/exit.c:862
do_group_exit+0x135/0x370 kernel/exit.c:979
get_signal+0x399/0x1d50 kernel/signal.c:2575
do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816
exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457f29
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f17fcbf5cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000073bf08 RCX: 0000000000457f29
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000073bf08
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000073bf0c
R13: 00007ffd9830b15f R14: 00007f17fcbf69c0 R15: 000000000073bf0c
Allocated by task 979:
save_stack+0x45/0xd0 mm/kasan/common.c:73
set_track mm/kasan/common.c:85 [inline]
__kasan_kmalloc mm/kasan/common.c:495 [inline]
__kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468
kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:503
slab_post_alloc_hook mm/slab.h:440 [inline]
slab_alloc mm/slab.c:3388 [inline]
kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3548
ccid_new+0x256/0x3f0 net/dccp/ccid.c:151
dccp_hdlr_ccid+0x27/0x150 net/dccp/feat.c:44
__dccp_feat_activate+0x17a/0x270 net/dccp/feat.c:344
dccp_feat_activate_values+0x33a/0x766 net/dccp/feat.c:1538
dccp_rcv_request_sent_state_process net/dccp/input.c:472 [inline]
dccp_rcv_state_process+0x116f/0x1935 net/dccp/input.c:680
dccp_v6_do_rcv+0x269/0xbf0 net/dccp/ipv6.c:641
sk_backlog_rcv include/net/sock.h:937 [inline]
__release_sock+0x12e/0x3a0 net/core/sock.c:2413
release_sock+0x59/0x1c0 net/core/sock.c:2929
inet_wait_for_connect net/ipv4/af_inet.c:588 [inline]
__inet_stream_connect+0x59f/0xea0 net/ipv4/af_inet.c:680
inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719
__sys_connect+0x266/0x330 net/socket.c:1685
__do_sys_connect net/socket.c:1696 [inline]
__se_sys_connect net/socket.c:1693 [inline]
__x64_sys_connect+0x73/0xb0 net/socket.c:1693
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 979:
save_stack+0x45/0xd0 mm/kasan/common.c:73
set_track mm/kasan/common.c:85 [inline]
__kasan_slab_free+0x102/0x150 mm/kasan/common.c:457
kasan_slab_free+0xe/0x10 mm/kasan/common.c:465
__cache_free mm/slab.c:3494 [inline]
kmem_cache_free+0x86/0x260 mm/slab.c:3754
ccid_hc_tx_delete+0xc1/0x100 net/dccp/ccid.c:190
dccp_hdlr_ccid+0x7d/0x150 net/dccp/feat.c:53
__dccp_feat_activate+0x17a/0x270 net/dccp/feat.c:344
dccp_feat_activate_values+0x33a/0x766 net/dccp/feat.c:1538
dccp_create_openreq_child+0x40c/0x570 net/dccp/minisocks.c:127
dccp_v6_request_recv_sock+0x214/0x1da0 net/dccp/ipv6.c:469
dccp_check_req+0x35c/0x6f0 net/dccp/minisocks.c:196
dccp_v6_rcv+0x6d7/0x191e net/dccp/ipv6.c:747
ip6_protocol_deliver_rcu+0x303/0x16c0 net/ipv6/ip6_input.c:394
ip6_input_finish+0x84/0x170 net/ipv6/ip6_input.c:434
kobject: 'ip6tnl0' (00000000b94a23d0): fill_kobj_path: path = '/devices/virtual/net/ip6tnl0'
NF_HOOK include/linux/netfilter.h:289 [inline]
NF_HOOK include/linux/netfilter.h:283 [inline]
ip6_input+0xe4/0x3f0 net/ipv6/ip6_input.c:443
dst_input include/net/dst.h:450 [inline]
ip6_rcv_finish+0x1e7/0x320 net/ipv6/ip6_input.c:76
NF_HOOK include/linux/netfilter.h:289 [inline]
NF_HOOK include/linux/netfilter.h:283 [inline]
ipv6_rcv+0x10e/0x420 net/ipv6/ip6_input.c:272
__netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973
kobject: 'queues' (00000000abcde966): kobject_add_internal: parent: 'ip6tnl0', set: ''
kobject: 'queues' (00000000abcde966): kobject_uevent_env
__netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083
process_backlog+0x206/0x750 net/core/dev.c:5923
napi_poll net/core/dev.c:6346 [inline]
net_rx_action+0x4fa/0x1070 net/core/dev.c:6412
__do_softirq+0x266/0x95a kernel/softirq.c:292
The buggy address belongs to the object at ffff888086ce19c0
which belongs to the cache ccid2_hc_tx_sock of size 1240
The buggy address is located 0 bytes inside of
1240-byte region [ffff888086ce19c0, ffff888086ce1e98)
The buggy address belongs to the page:
page:ffffea00021b3800 count:1 mapcount:0 mapping:ffff88809af29200 index:0x0 compound_mapcount: 0
flags: 0x1fffc0000010200(slab|head)
raw: 01fffc0000010200 ffff88809af34d48 ffff88809af34d48 ffff88809af29200
raw: 0000000000000000 ffff888086ce03c0 0000000100000005 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888086ce1880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888086ce1900: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888086ce1980: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
^
ffff888086ce1a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888086ce1a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================