R13: 00007f66a070ff78 R14: 00007f66a0710020 R15: 0000000000000000 dccp_parse_options: DCCP(ffff888061fb0ac0): Option 32 (len=7) error=9 ================================================================== BUG: KASAN: slab-use-after-free in dccp_ackvec_runlen net/dccp/ccids/../ackvec.h:43 [inline] BUG: KASAN: slab-use-after-free in ccid2_hc_tx_packet_recv+0x1902/0x2070 net/dccp/ccids/ccid2.c:593 Read of size 1 at addr ffff88802d10b494 by task syz.0.1444/9539 CPU: 1 PID: 9539 Comm: syz.0.1444 Not tainted 6.10.0-rc6-syzkaller-00165-g0ec986ed7bab #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 dccp_ackvec_runlen net/dccp/ccids/../ackvec.h:43 [inline] ccid2_hc_tx_packet_recv+0x1902/0x2070 net/dccp/ccids/ccid2.c:593 ccid_hc_tx_packet_recv net/dccp/ccid.h:189 [inline] dccp_deliver_input_to_ccids net/dccp/input.c:182 [inline] dccp_rcv_established+0x295/0x320 net/dccp/input.c:374 dccp_v6_do_rcv+0x28c/0xb10 net/dccp/ipv6.c:625 sk_backlog_rcv include/net/sock.h:1106 [inline] __release_sock+0x243/0x350 net/core/sock.c:2983 release_sock+0x61/0x1f0 net/core/sock.c:3549 dccp_sendmsg+0x4ee/0xba0 net/dccp/proto.c:803 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x1a6/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2200 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f669f97796c Code: 2a 5a 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5a 02 00 48 8b RSP: 002b:00007f66a070fed0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f66a070ffd0 RCX: 00007f669f97796c RDX: 0000000000000020 RSI: 00007f66a0710020 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007f66a070ff24 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000005 R13: 00007f66a070ff78 R14: 00007f66a0710020 R15: 0000000000000000 Allocated by task 9539: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4123 [inline] kmalloc_node_track_caller_noprof+0x225/0x440 mm/slub.c:4143 kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:597 __alloc_skb+0x1f3/0x440 net/core/skbuff.c:666 alloc_skb include/linux/skbuff.h:1308 [inline] dccp_send_ack+0xaa/0x310 net/dccp/output.c:585 ccid2_hc_rx_packet_recv+0x10c/0x1c0 net/dccp/ccids/ccid2.c:772 ccid_hc_rx_packet_recv net/dccp/ccid.h:182 [inline] dccp_deliver_input_to_ccids net/dccp/input.c:176 [inline] dccp_rcv_established+0x1bb/0x320 net/dccp/input.c:374 dccp_v6_do_rcv+0x28c/0xb10 net/dccp/ipv6.c:625 sk_backlog_rcv include/net/sock.h:1106 [inline] __sk_receive_skb+0x823/0x8a0 net/core/sock.c:569 dccp_v6_rcv+0x123b/0x1710 net/dccp/ipv6.c:794 ip6_protocol_deliver_rcu+0x1058/0x1570 net/ipv6/ip6_input.c:438 ip6_input_finish+0x186/0x2d0 net/ipv6/ip6_input.c:483 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 __netif_receive_skb_one_core net/core/dev.c:5625 [inline] __netif_receive_skb+0x1ea/0x650 net/core/dev.c:5739 process_backlog+0x391/0x7d0 net/core/dev.c:6068 __napi_poll+0xcb/0x490 net/core/dev.c:6722 napi_poll net/core/dev.c:6791 [inline] net_rx_action+0x7bb/0x10a0 net/core/dev.c:6907 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 do_softirq+0x11b/0x1e0 kernel/softirq.c:455 __local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:382 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:851 [inline] __dev_queue_xmit+0x16c9/0x3d30 net/core/dev.c:4420 dev_queue_xmit include/linux/netdevice.h:3095 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip6_finish_output2+0xfc0/0x1670 net/ipv6/ip6_output.c:137 ip6_finish_output+0x41e/0x810 net/ipv6/ip6_output.c:222 NF_HOOK include/linux/netfilter.h:314 [inline] ip6_xmit+0xefe/0x17f0 net/ipv6/ip6_output.c:358 inet6_csk_xmit+0x466/0x700 net/ipv6/inet6_connection_sock.c:135 dccp_transmit_skb+0xf3f/0x16a0 net/dccp/output.c:138 dccp_xmit_packet+0x376/0x610 net/dccp/output.c:281 dccp_write_xmit+0x138/0x220 net/dccp/output.c:366 dccp_sendmsg+0x76d/0xba0 net/dccp/proto.c:801 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x1a6/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2200 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 9539: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xe0/0x150 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2196 [inline] slab_free mm/slub.c:4438 [inline] kfree+0x149/0x360 mm/slub.c:4559 skb_kfree_head net/core/skbuff.c:1069 [inline] skb_free_head net/core/skbuff.c:1081 [inline] skb_release_data+0x676/0x880 net/core/skbuff.c:1108 skb_release_all net/core/skbuff.c:1173 [inline] __kfree_skb net/core/skbuff.c:1187 [inline] kfree_skb_reason+0x1a3/0x3b0 net/core/skbuff.c:1223 dccp_v6_do_rcv+0x131/0xb10 sk_backlog_rcv include/net/sock.h:1106 [inline] __release_sock+0x243/0x350 net/core/sock.c:2983 release_sock+0x61/0x1f0 net/core/sock.c:3549 dccp_sendmsg+0x4ee/0xba0 net/dccp/proto.c:803 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x1a6/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2200 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802d10b000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1172 bytes inside of freed 2048-byte region [ffff88802d10b000, ffff88802d10b800) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2d108 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015042000 ffffea00019a0e00 dead000000000002 raw: 0000000000000000 0000000000080008 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015042000 ffffea00019a0e00 dead000000000002 head: 0000000000000000 0000000000080008 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0000b44201 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5096, tgid 5096 (syz-executor), ts 81743814485, free_ts 81712467362 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2265 allocate_slab+0x5a/0x2f0 mm/slub.c:2428 new_slab mm/slub.c:2481 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3667 __slab_alloc+0x58/0xa0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3990 [inline] kmalloc_trace_noprof+0x1d5/0x2c0 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] rtnl_newlink+0xf2/0x20a0 net/core/rtnetlink.c:3739 rtnetlink_rcv_msg+0x89b/0x1180 net/core/rtnetlink.c:6635 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2564 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x8db/0xcb0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 __sys_sendto+0x3a4/0x4f0 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0xde/0x100 net/socket.c:2200 page last free pid 5160 tgid 5160 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd22/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4009 anon_vma_chain_alloc mm/rmap.c:142 [inline] __anon_vma_prepare+0xc4/0x4a0 mm/rmap.c:195 vmf_anon_prepare mm/memory.c:3239 [inline] do_cow_fault mm/memory.c:4941 [inline] do_fault mm/memory.c:5053 [inline] do_pte_missing mm/memory.c:3897 [inline] handle_pte_fault+0x59b1/0x7090 mm/memory.c:5381 __handle_mm_fault mm/memory.c:5524 [inline] handle_mm_fault+0x10df/0x1ba0 mm/memory.c:5689 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 Memory state around the buggy address: ffff88802d10b380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802d10b400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88802d10b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802d10b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88802d10b580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================