8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 hrtimer: interrupt took 32663 ns ================================================================== BUG: KASAN: use-after-free in ccid_hc_tx_delete+0xe0/0x100 net/dccp/ccid.c:188 Read of size 8 at addr ffff8801c0bbf280 by task udevd/6964 CPU: 1 PID: 6964 Comm: udevd Not tainted 4.19.0-rc5+ #161 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 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/0xa80 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+0xf23/0x2670 kernel/rcu/tree.c:2864 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1056 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:864 RIP: 0010:lock_release+0x4e4/0x970 kernel/locking/lockdep.c:3909 Code: 00 48 83 3d 95 1b d1 07 00 0f 84 c5 02 00 00 48 8b bd e0 fe ff ff 57 9d 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 01 c3 <48> c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 c7 43 10 00 00 00 RSP: 0018:ffff8801d978f698 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffffed003b2f1ed7 RCX: 1ffff100370e4d9e RDX: 1ffffffff1263e41 RSI: 0000000000000002 RDI: 0000000000000286 RBP: ffff8801d978f7c0 R08: 0000000000000000 R09: 0000000000000001 R10: ffff8801b8726d28 R11: 00adbe6fe02b4a77 R12: ffff8801b8726480 R13: 50e4808fcd937a16 R14: 0000000000000001 R15: ffff8801b8726480 kobject: 'loop5' (000000003d780a56): kobject_uevent_env up_read+0x1a/0x110 kernel/locking/rwsem.c:119 anon_vma_unlock_read include/linux/rmap.h:135 [inline] validate_mm+0x153/0x630 mm/mmap.c:376 vma_link+0x116/0x180 mm/mmap.c:631 kobject: 'loop5' (000000003d780a56): fill_kobj_path: path = '/devices/virtual/block/loop5' mmap_region+0x1337/0x1cd0 mm/mmap.c:1785 kobject: 'loop1' (000000002b41fa56): kobject_uevent_env do_mmap+0xa10/0x1220 mm/mmap.c:1535 kobject: 'loop1' (000000002b41fa56): fill_kobj_path: path = '/devices/virtual/block/loop1' do_mmap_pgoff include/linux/mm.h:2298 [inline] vm_mmap_pgoff+0x213/0x2c0 mm/util.c:357 ksys_mmap_pgoff+0xf1/0x660 mm/mmap.c:1585 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f71a3b03d0a Code: b8 ff ff ff ff e9 fa fe ff ff 48 63 fb b8 03 00 00 00 0f 05 b8 ff ff ff ff e9 e6 fe ff ff 90 90 49 89 ca b8 09 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d fe c0 2a 00 31 d2 48 29 c2 64 RSP: 002b:00007ffe56368e18 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000001020440 RCX: 00007f71a3b03d0a RDX: 0000000000000003 RSI: 0000000000001000 RDI: 0000000000000000 RBP: 0000000000001000 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000022 R11: 0000000000000246 R12: 000000000000000a R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffe563693a0 Allocated by task 7023: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 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+0x188/0x280 net/dccp/feat.c:344 dccp_feat_activate_values+0x3c1/0x80a net/dccp/feat.c:1538 dccp_rcv_request_sent_state_process net/dccp/input.c:472 [inline] dccp_rcv_state_process+0x11d4/0x1a32 net/dccp/input.c:678 dccp_v6_do_rcv+0x271/0xbf0 net/dccp/ipv6.c:638 sk_backlog_rcv include/net/sock.h:931 [inline] __release_sock+0x12f/0x3a0 net/core/sock.c:2336 release_sock+0xad/0x2c0 net/core/sock.c:2849 inet_wait_for_connect net/ipv4/af_inet.c:588 [inline] __inet_stream_connect+0x641/0x1150 net/ipv4/af_inet.c:680 inet_stream_connect+0x58/0xa0 net/ipv4/af_inet.c:719 __sys_connect+0x37d/0x4c0 net/socket.c:1664 __do_sys_connect net/socket.c:1675 [inline] __se_sys_connect net/socket.c:1672 [inline] __ia32_sys_connect+0x72/0xb0 net/socket.c:1672 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 Freed by task 7034: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 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+0x83/0x290 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+0x188/0x280 net/dccp/feat.c:344 dccp_feat_activate_values+0x3c1/0x80a net/dccp/feat.c:1538 dccp_create_openreq_child+0x47a/0x630 net/dccp/minisocks.c:127 dccp_v6_request_recv_sock+0x278/0x2020 net/dccp/ipv6.c:466 dccp_check_req+0x47d/0x6d0 net/dccp/minisocks.c:196 dccp_v6_rcv+0x874/0x1ce9 net/dccp/ipv6.c:744 ip6_input_finish+0x3fc/0x1aa0 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:4891 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5001 process_backlog+0x218/0x6f0 net/core/dev.c:5807 napi_poll net/core/dev.c:6227 [inline] net_rx_action+0x7c5/0x1950 net/core/dev.c:6293 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801c0bbf280 which belongs to the cache ccid2_hc_tx_sock of size 1240 The buggy address is located 0 bytes inside of 1240-byte region [ffff8801c0bbf280, ffff8801c0bbf758) The buggy address belongs to the page: page:ffffea000702ef80 count:1 mapcount:0 mapping:ffff8801cb139180 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0006f89188 ffffea0006ff9e08 ffff8801cb139180 raw: 0000000000000000 ffff8801c0bbe200 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c0bbf180: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc ffff8801c0bbf200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc kobject: 'loop3' (0000000006e98d56): kobject_uevent_env >ffff8801c0bbf280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb kobject: 'loop3' (0000000006e98d56): fill_kobj_path: path = '/devices/virtual/block/loop3' ^ ffff8801c0bbf300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c0bbf380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================