RDX: 0400000000000304 RSI: 0000000020000c00 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f07daf196d4 R13: 00000000004c6af9 R14: 00000000004dbd80 R15: 0000000000000006 dccp_parse_options: DCCP(00000000b7227312): Option 32 (len=7) error=9 ================================================================== BUG: KASAN: use-after-free in ccid2_hc_tx_packet_recv+0x21ca/0x223b net/dccp/ccids/ccid2.c:587 Read of size 1 at addr ffff8880541e5014 by task syz-executor.4/10629 CPU: 0 PID: 10629 Comm: syz-executor.4 Not tainted 5.2.0-rc6+ #41 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:188 __kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:129 ccid2_hc_tx_packet_recv+0x21ca/0x223b net/dccp/ccids/ccid2.c:587 ccid_hc_tx_packet_recv net/dccp/ccid.h:189 [inline] dccp_deliver_input_to_ccids+0x1f8/0x270 net/dccp/input.c:182 dccp_rcv_established net/dccp/input.c:374 [inline] dccp_rcv_established+0x83/0xb0 net/dccp/input.c:364 dccp_v4_do_rcv+0x139/0x190 net/dccp/ipv4.c:655 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x129/0x390 net/core/sock.c:2414 release_sock+0x59/0x1c0 net/core/sock.c:2930 dccp_sendmsg+0x683/0xd00 net/dccp/proto.c:814 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:665 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2286 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2381 __do_sys_sendmmsg net/socket.c:2410 [inline] __se_sys_sendmmsg net/socket.c:2407 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2407 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459519 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:00007f07daf18c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f07daf18c90 RCX: 0000000000459519 RDX: 0400000000000304 RSI: 0000000020000c00 RDI: 0000000000000005 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f07daf196d4 R13: 00000000004c6af9 R14: 00000000004dbd80 R15: 0000000000000006 Allocated by task 10629: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:489 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:462 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:503 __do_kmalloc_node mm/slab.c:3620 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3634 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:138 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:1054 [inline] dccp_send_ack+0xd6/0x360 net/dccp/output.c:576 ccid2_hc_rx_packet_recv+0x139/0x1b0 net/dccp/ccids/ccid2.c:766 ccid_hc_rx_packet_recv net/dccp/ccid.h:182 [inline] dccp_deliver_input_to_ccids+0xeb/0x270 net/dccp/input.c:176 dccp_rcv_established net/dccp/input.c:374 [inline] dccp_rcv_established+0x83/0xb0 net/dccp/input.c:364 dccp_v4_do_rcv+0x139/0x190 net/dccp/ipv4.c:655 sk_backlog_rcv include/net/sock.h:945 [inline] __sk_receive_skb+0x335/0xbd0 net/core/sock.c:522 dccp_v4_rcv+0xeaa/0x1be5 net/dccp/ipv4.c:876 ip_protocol_deliver_rcu+0x5a/0x8e0 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:231 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:439 [inline] ip_rcv_finish+0x1d9/0x2f0 net/ipv4/ip_input.c:413 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:523 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:5009 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5123 process_backlog+0x206/0x750 net/core/dev.c:5934 napi_poll net/core/dev.c:6357 [inline] net_rx_action+0x4f5/0x1070 net/core/dev.c:6423 __do_softirq+0x25c/0x94c kernel/softirq.c:292 Freed by task 10629: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:451 kasan_slab_free+0xe/0x10 mm/kasan/common.c:459 __cache_free mm/slab.c:3432 [inline] kfree+0xcf/0x220 mm/slab.c:3755 skb_free_head+0x93/0xb0 net/core/skbuff.c:588 skb_release_data+0x42d/0x7c0 net/core/skbuff.c:608 skb_release_all+0x4d/0x60 net/core/skbuff.c:662 __kfree_skb net/core/skbuff.c:676 [inline] kfree_skb net/core/skbuff.c:694 [inline] kfree_skb+0xe8/0x390 net/core/skbuff.c:688 dccp_v4_do_rcv net/dccp/ipv4.c:690 [inline] dccp_v4_do_rcv+0x160/0x190 net/dccp/ipv4.c:650 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x129/0x390 net/core/sock.c:2414 release_sock+0x59/0x1c0 net/core/sock.c:2930 dccp_sendmsg+0x683/0xd00 net/dccp/proto.c:814 inet_sendmsg+0x141/0x5d0 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:665 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2286 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2381 __do_sys_sendmmsg net/socket.c:2410 [inline] __se_sys_sendmmsg net/socket.c:2407 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2407 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880541e4b80 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1172 bytes inside of 2048-byte region [ffff8880541e4b80, ffff8880541e5380) The buggy address belongs to the page: page:ffffea0001507900 refcount:1 mapcount:0 mapping:ffff8880aa400c40 index:0xffff8880541e4300 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00015d1008 ffffea000220eb08 ffff8880aa400c40 raw: ffff8880541e4300 ffff8880541e4300 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880541e4f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880541e4f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880541e5000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880541e5080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880541e5100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================