IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready 8021q: adding VLAN 0 to HW filter on device team0 hrtimer: interrupt took 32419 ns ================================================================== BUG: KASAN: use-after-free in ccid_hc_tx_delete+0xe0/0x100 net/dccp/ccid.c:188 Read of size 8 at addr ffff8801d0be10c0 by task udevd/4732 CPU: 1 PID: 4732 Comm: udevd Not tainted 4.19.0-rc1+ #212 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+0x1c9/0x2b4 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 ccid_hc_tx_delete+0xe0/0x100 net/dccp/ccid.c:188 dccp_sk_destruct+0x3c/0x80 net/dccp/proto.c:181 __sk_destruct+0x107/0xa60 net/core/sock.c:1560 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2576 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2880 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2847 [inline] rcu_process_callbacks+0xf78/0x27c0 kernel/rcu/tree.c:2864 __do_softirq+0x2eb/0xa74 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x1d6/0x210 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x18e/0x6a0 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:pte_lockptr include/linux/mm.h:1856 [inline] RIP: 0010:zap_pte_range mm/memory.c:1299 [inline] RIP: 0010:zap_pmd_range mm/memory.c:1440 [inline] RIP: 0010:zap_pud_range mm/memory.c:1469 [inline] RIP: 0010:zap_p4d_range mm/memory.c:1490 [inline] RIP: 0010:unmap_page_range+0x95f/0x2560 mm/memory.c:1511 Code: 48 8b 38 e8 f3 73 ff ff 48 b9 00 00 00 00 00 ea ff ff 48 c1 e0 06 48 8d 1c 08 48 8d 7b 28 48 89 f8 48 c1 e8 03 42 80 3c 30 00 <0f> 85 89 17 00 00 48 8b b5 58 fc ff ff 48 8b bd 68 fc ff ff 48 8b RSP: 0018:ffff8801a98e6ea8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 1ffffd4000d6df25 RBX: ffffea0006b6f900 RCX: ffffea0000000000 RDX: dffffc0000000000 RSI: ffffffff81ac5171 RDI: ffffea0006b6f928 RBP: ffff8801a98e7308 R08: ffff8801d6e6a440 R09: ffff8801a98e72a0 R10: ffffed003531ce55 R11: ffff8801a98e72af R12: 0000000000000001 R13: ffff8801c0cc9430 R14: dffffc0000000000 R15: 00007f7350c00000 unmap_single_vma+0x1a0/0x310 mm/memory.c:1556 unmap_vmas+0x125/0x200 mm/memory.c:1586 exit_mmap+0x2c2/0x590 mm/mmap.c:3093 __mmput kernel/fork.c:1002 [inline] mmput+0x265/0x620 kernel/fork.c:1023 exec_mmap fs/exec.c:1043 [inline] flush_old_exec+0xbaf/0x2110 fs/exec.c:1276 load_elf_binary+0xa33/0x5610 fs/binfmt_elf.c:869 search_binary_handler+0x17d/0x570 fs/exec.c:1653 exec_binprm fs/exec.c:1695 [inline] __do_execve_file.isra.35+0x15ff/0x2460 fs/exec.c:1819 do_execveat_common fs/exec.c:1866 [inline] do_execve fs/exec.c:1883 [inline] __do_sys_execve fs/exec.c:1964 [inline] __se_sys_execve fs/exec.c:1959 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1959 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f73511a2207 Code: Bad RIP value. RSP: 002b:00007fffd4007f38 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f73511a2207 RDX: 000000000107b330 RSI: 00007fffd4008030 RDI: 00007fffd4009040 RBP: 0000000000625500 R08: 0000000000001158 R09: 0000000000001158 R10: 0000000000000000 R11: 0000000000000202 R12: 000000000107b330 R13: 0000000000000007 R14: 0000000001076250 R15: 0000000000000005 Allocated by task 4729: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x710 mm/slab.c:3554 ccid_new+0x25b/0x3e0 net/dccp/ccid.c:151 dccp_hdlr_ccid+0x27/0x150 net/dccp/feat.c:44 __dccp_feat_activate+0x184/0x270 net/dccp/feat.c:344 dccp_feat_activate_values+0x3b6/0x839 net/dccp/feat.c:1538 dccp_create_openreq_child+0x47a/0x620 net/dccp/minisocks.c:127 dccp_v6_request_recv_sock+0x253/0x2040 net/dccp/ipv6.c:466 dccp_check_req+0x46e/0x6c0 net/dccp/minisocks.c:196 dccp_v6_rcv+0x88e/0x1d9c net/dccp/ipv6.c:744 ip6_input_finish+0x407/0x1a40 net/ipv6/ip6_input.c:383 NF_HOOK include/linux/netfilter.h:287 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:426 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:287 [inline] ipv6_rcv+0x11e/0x650 net/ipv6/ip6_input.c:271 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4892 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5002 process_backlog+0x219/0x760 net/core/dev.c:5808 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x799/0x1900 net/core/dev.c:6294 __do_softirq+0x2eb/0xa74 kernel/softirq.c:292 Freed by task 4730: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x280 mm/slab.c:3756 ccid_hc_tx_delete+0xc3/0x100 net/dccp/ccid.c:190 dccp_hdlr_ccid+0x7d/0x150 net/dccp/feat.c:53 __dccp_feat_activate+0x184/0x270 net/dccp/feat.c:344 dccp_feat_activate_values+0x3b6/0x839 net/dccp/feat.c:1538 dccp_create_openreq_child+0x47a/0x620 net/dccp/minisocks.c:127 dccp_v6_request_recv_sock+0x253/0x2040 net/dccp/ipv6.c:466 dccp_check_req+0x46e/0x6c0 net/dccp/minisocks.c:196 dccp_v6_rcv+0x88e/0x1d9c net/dccp/ipv6.c:744 ip6_input_finish+0x407/0x1a40 net/ipv6/ip6_input.c:383 NF_HOOK include/linux/netfilter.h:287 [inline] ip6_input+0xe9/0x600 net/ipv6/ip6_input.c:426 dst_input include/net/dst.h:450 [inline] ip6_rcv_finish+0x17a/0x330 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:287 [inline] ipv6_rcv+0x11e/0x650 net/ipv6/ip6_input.c:271 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4892 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5002 process_backlog+0x219/0x760 net/core/dev.c:5808 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x799/0x1900 net/core/dev.c:6294 __do_softirq+0x2eb/0xa74 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801d0be10c0 which belongs to the cache ccid2_hc_tx_sock of size 1240 The buggy address is located 0 bytes inside of 1240-byte region [ffff8801d0be10c0, ffff8801d0be1598) The buggy address belongs to the page: page:ffffea000742f800 count:1 mapcount:0 mapping:ffff8801cd9ab680 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffff8801cd9a1748 ffffea000741b808 ffff8801cd9ab680 raw: 0000000000000000 ffff8801d0be0040 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d0be0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801d0be1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801d0be1080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8801d0be1100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801d0be1180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================