[ 1499.763896][T11894] gre: GRE over IPv4 demultiplexer driver [ 1500.189048][T11917] ip_gre: GRE over IPv4 tunneling driver [ 1501.744728][ C3] ================================================================== [ 1501.744895][ C3] BUG: KASAN: slab-use-after-free in fib_rules_lookup+0xc66/0xc80 [ 1501.745036][ C3] Read of size 8 at addr ff11000013b4e9c0 by task kworker/3:1/63 [ 1501.745166][ C3] [ 1501.745212][ C3] CPU: 3 UID: 0 PID: 63 Comm: kworker/3:1 Not tainted 7.1.0-rc7-virtme #1 PREEMPT(full) [ 1501.745215][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1501.745218][ C3] Workqueue: mld mld_ifc_work [ 1501.745224][ C3] Call Trace: [ 1501.745226][ C3] [ 1501.745227][ C3] dump_stack_lvl+0x6f/0xa0 [ 1501.745232][ C3] print_address_description.constprop.0+0x56/0x2d0 [ 1501.745237][ C3] print_report+0xfc/0x1fa [ 1501.745239][ C3] ? __virt_addr_valid+0x102/0x440 [ 1501.745243][ C3] ? __virt_addr_valid+0x1da/0x440 [ 1501.745245][ C3] kasan_report+0x108/0x130 [ 1501.745248][ C3] ? fib_rules_lookup+0xc66/0xc80 [ 1501.745250][ C3] ? fib_rules_lookup+0xc66/0xc80 [ 1501.745252][ C3] fib_rules_lookup+0xc66/0xc80 [ 1501.745255][ C3] ? fib_nl_delrule+0x80/0x80 [ 1501.745256][ C3] ? l3mdev_update_flow+0xf8/0x550 [ 1501.745259][ C3] ? dev_get_by_index_rcu+0xe6/0x180 [ 1501.745263][ C3] __fib_lookup+0xdb/0x130 [ 1501.745266][ C3] ? fib4_rule_nlmsg_payload+0x10/0x10 [ 1501.745269][ C3] ip_route_input_slow+0x5eb/0x2400 [ 1501.745272][ C3] ? update_curr_rt+0x70/0xa0 [ 1501.745274][ C3] ? rcu_is_watching+0x15/0xd0 [ 1501.745278][ C3] ? fib_multipath_hash+0x11b0/0x11b0 [ 1501.745282][ C3] ? rcu_is_watching+0x15/0xd0 [ 1501.745283][ C3] ? lock_acquire+0x134/0x160 [ 1501.745287][ C3] ip_route_input_noref+0x114/0x250 [ 1501.745290][ C3] ? ip_route_input_slow+0x2400/0x2400 [ 1501.745292][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 1501.745295][ C3] ip_rcv_finish_core+0x553/0x14c0 [ 1501.745297][ C3] ip_rcv_finish+0xee/0x250 [ 1501.745300][ C3] ? process_backlog+0x561/0x1490 [ 1501.745302][ C3] ip_rcv+0xdc/0x3d0 [ 1501.745304][ C3] ? ip_local_deliver+0x4c0/0x4c0 [ 1501.745306][ C3] ? validate_chain+0x38b/0xc20 [ 1501.745308][ C3] ? __queue_work+0x315/0xc00 [ 1501.745310][ C3] ? mark_usage+0x61/0x170 [ 1501.745312][ C3] ? __lock_acquire+0x508/0xc10 [ 1501.745314][ C3] __netif_receive_skb_one_core+0xfc/0x180 [ 1501.745316][ C3] ? lock_acquire.part.0+0xbc/0x260 [ 1501.745317][ C3] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 1501.745319][ C3] ? rcu_is_watching+0x15/0xd0 [ 1501.745322][ C3] process_backlog+0x2bc/0x1490 [ 1501.745324][ C3] __napi_poll+0xa7/0x3b0 [ 1501.745327][ C3] net_rx_action+0x513/0xf50 [ 1501.745329][ C3] ? __napi_poll+0x3b0/0x3b0 [ 1501.745332][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 1501.745333][ C3] ? __rwlock_init+0x150/0x150 [ 1501.745336][ C3] ? __run_timers+0xab0/0xab0 [ 1501.745338][ C3] ? rcu_is_watching+0x15/0xd0 [ 1501.745340][ C3] ? mark_held_locks+0x40/0x70 [ 1501.745342][ C3] handle_softirqs+0x1d8/0x940 [ 1501.745345][ C3] ? _local_bh_enable+0xd0/0xd0 [ 1501.745346][ C3] ? _local_bh_enable+0xd0/0xd0 [ 1501.745348][ C3] do_softirq+0xa9/0xe0 [ 1501.745350][ C3] [ 1501.745351][ C3] [ 1501.745351][ C3] ? __dev_queue_xmit+0x956/0x1b70 [ 1501.745353][ C3] __local_bh_enable_ip+0x113/0x140 [ 1501.745355][ C3] __dev_queue_xmit+0x96b/0x1b70 [ 1501.745357][ C3] ? __lock_acquire+0x508/0xc10 [ 1501.745359][ C3] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 1501.745361][ C3] ? eth_header+0x110/0x180 [ 1501.745364][ C3] ? vlan_dev_hard_header+0xf8/0x4d0 [ 1501.745366][ C3] ? mark_held_locks+0x40/0x70 [ 1501.745368][ C3] ? neigh_connected_output+0x2cf/0x5a0 [ 1501.745372][ C3] ip6_finish_output2+0x488/0x1310 [ 1501.745375][ C3] ? ip6_xmit+0x2000/0x2000 [ 1501.745377][ C3] ? find_held_lock+0x2b/0x80 [ 1501.745378][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 1501.745380][ C3] ? ip6_mtu+0x174/0x410 [ 1501.745383][ C3] ip6_finish_output+0x701/0xe80 [ 1501.745385][ C3] ip6_output+0x23f/0x7f0 [ 1501.745387][ C3] ? ip6_finish_output+0xe80/0xe80 [ 1501.745388][ C3] ? __lock_release.isra.0+0x6b/0x1a0 [ 1501.745390][ C3] ? xfrm_bundle_lookup.constprop.0+0xba0/0xba0 [ 1501.745392][ C3] ? mark_held_locks+0x40/0x70 [ 1501.745394][ C3] ? __local_bh_enable_ip+0xa5/0x140 [ 1501.745395][ C3] ? __local_bh_enable_ip+0xa5/0x140 [ 1501.745397][ C3] ? icmp6_dst_alloc+0x317/0x4d0 [ 1501.745399][ C3] mld_sendpack+0x9d6/0xec0 [ 1501.745402][ C3] ? find_held_lock+0x2b/0x80 [ 1501.745403][ C3] ? nf_hook.constprop.0+0x340/0x340 [ 1501.745406][ C3] ? mld_send_cr+0x50f/0x820 [ 1501.745408][ C3] mld_ifc_work+0x36/0x190 [ 1501.745410][ C3] ? process_one_work+0xdb7/0x1410 [ 1501.745412][ C3] process_one_work+0xdf8/0x1410 [ 1501.745415][ C3] ? pwq_dec_nr_in_flight+0x710/0x710 [ 1501.745417][ C3] ? lock_acquire.part.0+0xbc/0x260 [ 1501.745420][ C3] worker_thread+0x4f1/0xd60 [ 1501.745422][ C3] ? rescuer_thread+0x1320/0x1320 [ 1501.745424][ C3] ? __kthread_parkme+0xbd/0x210 [ 1501.745427][ C3] ? rescuer_thread+0x1320/0x1320 [ 1501.745428][ C3] kthread+0x367/0x460 [ 1501.745430][ C3] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1501.745433][ C3] ? kthread_affine_node+0x330/0x330 [ 1501.745435][ C3] ret_from_fork+0x474/0x6b0 [ 1501.745438][ C3] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 1501.745440][ C3] ? __switch_to+0x5a3/0xe00 [ 1501.745443][ C3] ? kthread_affine_node+0x330/0x330 [ 1501.745445][ C3] ret_from_fork_asm+0x11/0x20 [ 1501.745449][ C3] [ 1501.745450][ C3] [ 1501.753937][ C3] Allocated by task 11958: [ 1501.754037][ C3] kasan_save_stack+0x2f/0x50 [ 1501.754126][ C3] kasan_save_track+0x14/0x30 [ 1501.754211][ C3] __kasan_kmalloc+0x7b/0x90 [ 1501.754298][ C3] __kmalloc_node_track_caller_noprof+0x2d6/0x7b0 [ 1501.754406][ C3] kmemdup_noprof+0x25/0x40 [ 1501.754493][ C3] fib_rules_register+0x30/0x590 [ 1501.754580][ C3] fib4_rules_init+0x21/0x140 [ 1501.754665][ C3] fib_net_init+0x165/0x350 [ 1501.754751][ C3] ops_init+0x187/0x560 [ 1501.754820][ C3] setup_net+0x11b/0x3b0 [ 1501.754884][ C3] copy_net_ns+0x383/0x660 [ 1501.754971][ C3] create_new_namespaces+0x371/0xa10 [ 1501.755061][ C3] unshare_nsproxy_namespaces+0xa5/0x1d0 [ 1501.755155][ C3] ksys_unshare+0x353/0x880 [ 1501.755243][ C3] __x64_sys_unshare+0x34/0x50 [ 1501.755330][ C3] do_syscall_64+0x117/0x590 [ 1501.755417][ C3] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1501.755524][ C3] [ 1501.755570][ C3] Freed by task 36: [ 1501.755637][ C3] kasan_save_stack+0x2f/0x50 [ 1501.755726][ C3] kasan_save_track+0x14/0x30 [ 1501.755812][ C3] kasan_save_free_info+0x3b/0x60 [ 1501.755901][ C3] __kasan_slab_free+0x43/0x70 [ 1501.755986][ C3] kmem_cache_free_bulk.part.0+0x1e3/0x480 [ 1501.756098][ C3] kvfree_rcu_bulk+0x1f1/0x240 [ 1501.756185][ C3] kfree_rcu_work+0x130/0x1b0 [ 1501.756272][ C3] process_one_work+0xdf8/0x1410 [ 1501.756363][ C3] worker_thread+0x4f1/0xd60 [ 1501.756448][ C3] kthread+0x367/0x460 [ 1501.756513][ C3] ret_from_fork+0x474/0x6b0 [ 1501.756605][ C3] ret_from_fork_asm+0x11/0x20 [ 1501.756690][ C3] [ 1501.756734][ C3] Last potentially related work creation: [ 1501.756822][ C3] kasan_save_stack+0x2f/0x50 [ 1501.756913][ C3] kasan_record_aux_stack+0x9b/0xc0 [ 1501.756998][ C3] kvfree_call_rcu+0x7e/0x5b0 [ 1501.757087][ C3] ops_undo_list+0x5be/0x8f0 [ 1501.757176][ C3] cleanup_net+0x431/0x940 [ 1501.757264][ C3] process_one_work+0xdf8/0x1410 [ 1501.757350][ C3] worker_thread+0x4f1/0xd60 [ 1501.757438][ C3] kthread+0x367/0x460 [ 1501.757503][ C3] ret_from_fork+0x474/0x6b0 [ 1501.757590][ C3] ret_from_fork_asm+0x11/0x20 [ 1501.757681][ C3] [ 1501.757725][ C3] The buggy address belongs to the object at ff11000013b4e940 [ 1501.757725][ C3] which belongs to the cache kmalloc-192 of size 192 [ 1501.757936][ C3] The buggy address is located 128 bytes inside of [ 1501.757936][ C3] freed 192-byte region [ff11000013b4e940, ff11000013b4ea00) [ 1501.758171][ C3] [ 1501.758215][ C3] The buggy address belongs to the physical page: [ 1501.758322][ C3] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x13b4e [ 1501.758536][ C3] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 1501.758668][ C3] flags: 0x80000000000040(head|node=0|zone=1) [ 1501.758784][ C3] page_type: f5(slab) [ 1501.758852][ C3] raw: 0080000000000040 ff1100000103c4c0 ffd400000025fc90 ffd400000028b210 [ 1501.759065][ C3] raw: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000 [ 1501.759225][ C3] head: 0080000000000040 ff1100000103c4c0 ffd400000025fc90 ffd400000028b210 [ 1501.759430][ C3] head: 0000000000000000 0000000000150015 00000000f5000000 0000000000000000 [ 1501.759588][ C3] head: 0080000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff [ 1501.759789][ C3] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 1501.759938][ C3] page dumped because: kasan: bad access detected [ 1501.760049][ C3] [ 1501.760093][ C3] Memory state around the buggy address: [ 1501.760224][ C3] ff11000013b4e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1501.760351][ C3] ff11000013b4e900: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 1501.760476][ C3] >ff11000013b4e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1501.760648][ C3] ^ [ 1501.760753][ C3] ff11000013b4ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1501.760929][ C3] ff11000013b4ea80: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 1501.761058][ C3] ================================================================== [ 1501.761193][ C3] Disabling lock debugging due to kernel taint [ 1512.221871][T12488] ip6_gre: GRE over IPv6 tunneling driver [ 1519.648639][ C3] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 1521.248659][ C0] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 1522.785653][ C1] ip6_tunnel: tep0 xmit: Local address not yet configured! [ 1524.384640][ C2] ip6_tunnel: tep0 xmit: Local address not yet configured!