[ 1683.197496][T20078] udpgso_bench_tx (20078) used greatest stack depth: 22408 bytes left [ 1685.121086][ C2] ================================================================== [ 1685.121243][ C2] BUG: KASAN: slab-use-after-free in fib_rules_lookup+0xc66/0xc80 [ 1685.121387][ C2] Read of size 8 at addr ff110000152eb740 by task kworker/2:1/29726 [ 1685.121512][ C2] [ 1685.121559][ C2] CPU: 2 UID: 0 PID: 29726 Comm: kworker/2:1 Not tainted 7.1.0-rc7-virtme #1 PREEMPT(full) [ 1685.121562][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1685.121564][ C2] Workqueue: mld mld_ifc_work [ 1685.121570][ C2] Call Trace: [ 1685.121571][ C2] [ 1685.121573][ C2] dump_stack_lvl+0x6f/0xa0 [ 1685.121578][ C2] print_address_description.constprop.0+0x56/0x2d0 [ 1685.121583][ C2] print_report+0xfc/0x1fa [ 1685.121585][ C2] ? __virt_addr_valid+0x102/0x440 [ 1685.121589][ C2] ? __virt_addr_valid+0x1da/0x440 [ 1685.121592][ C2] kasan_report+0x108/0x130 [ 1685.121595][ C2] ? fib_rules_lookup+0xc66/0xc80 [ 1685.121597][ C2] ? fib_rules_lookup+0xc66/0xc80 [ 1685.121600][ C2] fib_rules_lookup+0xc66/0xc80 [ 1685.121602][ C2] ? fib_nl_delrule+0x80/0x80 [ 1685.121603][ C2] ? l3mdev_update_flow+0xf8/0x550 [ 1685.121606][ C2] ? dev_get_by_index_rcu+0xe6/0x180 [ 1685.121609][ C2] __fib_lookup+0xdb/0x130 [ 1685.121611][ C2] ? fib4_rule_nlmsg_payload+0x10/0x10 [ 1685.121613][ C2] ? mark_usage+0x61/0x170 [ 1685.121617][ C2] ip_route_input_slow+0x5eb/0x2400 [ 1685.121620][ C2] ? arch_stack_walk+0xd0/0x130 [ 1685.121623][ C2] ? fib_multipath_hash+0x11b0/0x11b0 [ 1685.121627][ C2] ? rcu_is_watching+0x15/0xd0 [ 1685.121630][ C2] ? lock_acquire+0x134/0x160 [ 1685.121632][ C2] ip_route_input_noref+0x114/0x250 [ 1685.121634][ C2] ? ip_route_input_slow+0x2400/0x2400 [ 1685.121637][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 1685.121639][ C2] ip_rcv_finish_core+0x553/0x14c0 [ 1685.121642][ C2] ip_rcv_finish+0xee/0x250 [ 1685.121644][ C2] ? process_backlog+0x561/0x1490 [ 1685.121646][ C2] ip_rcv+0xdc/0x3d0 [ 1685.121648][ C2] ? ip_local_deliver+0x4c0/0x4c0 [ 1685.121650][ C2] ? validate_chain+0x38b/0xc20 [ 1685.121652][ C2] ? __queue_work+0x315/0xc00 [ 1685.121655][ C2] ? mark_usage+0x61/0x170 [ 1685.121656][ C2] ? __lock_acquire+0x508/0xc10 [ 1685.121658][ C2] __netif_receive_skb_one_core+0xfc/0x180 [ 1685.121660][ C2] ? lock_acquire.part.0+0xbc/0x260 [ 1685.121662][ C2] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 1685.121664][ C2] ? rcu_is_watching+0x15/0xd0 [ 1685.121666][ C2] process_backlog+0x2bc/0x1490 [ 1685.121669][ C2] __napi_poll+0xa7/0x3b0 [ 1685.121671][ C2] net_rx_action+0x513/0xf50 [ 1685.121674][ C2] ? __napi_poll+0x3b0/0x3b0 [ 1685.121676][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 1685.121677][ C2] ? __rwlock_init+0x150/0x150 [ 1685.121680][ C2] ? __run_timers+0xab0/0xab0 [ 1685.121682][ C2] ? rcu_is_watching+0x15/0xd0 [ 1685.121684][ C2] ? mark_held_locks+0x40/0x70 [ 1685.121686][ C2] handle_softirqs+0x1d8/0x940 [ 1685.121689][ C2] ? _local_bh_enable+0xd0/0xd0 [ 1685.121690][ C2] ? _local_bh_enable+0xd0/0xd0 [ 1685.121693][ C2] do_softirq+0xa9/0xe0 [ 1685.121694][ C2] [ 1685.121695][ C2] [ 1685.121695][ C2] ? __dev_queue_xmit+0x956/0x1b70 [ 1685.121697][ C2] __local_bh_enable_ip+0x113/0x140 [ 1685.121699][ C2] __dev_queue_xmit+0x96b/0x1b70 [ 1685.121701][ C2] ? arch_stack_walk+0xd7/0x130 [ 1685.121702][ C2] ? __lock_acquire+0x508/0xc10 [ 1685.121704][ C2] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 1685.121706][ C2] ? find_held_lock+0x2b/0x80 [ 1685.121708][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 1685.121709][ C2] ? rcu_is_watching+0x15/0xd0 [ 1685.121710][ C2] ? mark_held_locks+0x40/0x70 [ 1685.121712][ C2] ? __asan_memcpy+0x3c/0x60 [ 1685.121714][ C2] ? neigh_hh_output+0x152/0x4c0 [ 1685.121718][ C2] ip6_finish_output2+0x986/0x1310 [ 1685.121720][ C2] ? ip6_xmit+0x2000/0x2000 [ 1685.121721][ C2] ? find_held_lock+0x2b/0x80 [ 1685.121723][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 1685.121724][ C2] ? ip6_mtu+0x174/0x410 [ 1685.121727][ C2] ip6_finish_output+0x701/0xe80 [ 1685.121730][ C2] ip6_output+0x23f/0x7f0 [ 1685.121732][ C2] ? ip6_finish_output+0xe80/0xe80 [ 1685.121734][ C2] ? __lock_release.isra.0+0x6b/0x1a0 [ 1685.121735][ C2] ? xfrm_bundle_lookup.constprop.0+0xba0/0xba0 [ 1685.121737][ C2] ? mark_held_locks+0x40/0x70 [ 1685.121739][ C2] ? __local_bh_enable_ip+0xa5/0x140 [ 1685.121740][ C2] ? __local_bh_enable_ip+0xa5/0x140 [ 1685.121742][ C2] ? icmp6_dst_alloc+0x317/0x4d0 [ 1685.121744][ C2] mld_sendpack+0x9d6/0xec0 [ 1685.121747][ C2] ? nf_hook.constprop.0+0x340/0x340 [ 1685.121750][ C2] ? mld_send_cr+0x50f/0x820 [ 1685.121752][ C2] mld_ifc_work+0x36/0x190 [ 1685.121753][ C2] ? process_one_work+0xdb7/0x1410 [ 1685.121755][ C2] process_one_work+0xdf8/0x1410 [ 1685.121757][ C2] ? pwq_dec_nr_in_flight+0x710/0x710 [ 1685.121759][ C2] ? lock_acquire.part.0+0xbc/0x260 [ 1685.121762][ C2] worker_thread+0x4f1/0xd60 [ 1685.121764][ C2] ? rescuer_thread+0x1320/0x1320 [ 1685.121766][ C2] ? __kthread_parkme+0xbd/0x210 [ 1685.121769][ C2] ? rescuer_thread+0x1320/0x1320 [ 1685.121770][ C2] kthread+0x367/0x460 [ 1685.121772][ C2] ? trace_irq_enable.constprop.0+0x9b/0x180 [ 1685.121775][ C2] ? kthread_affine_node+0x330/0x330 [ 1685.121777][ C2] ret_from_fork+0x474/0x6b0 [ 1685.121779][ C2] ? arch_exit_to_user_mode_prepare.isra.0+0x120/0x120 [ 1685.121781][ C2] ? __switch_to+0x5a3/0xe00 [ 1685.121784][ C2] ? kthread_affine_node+0x330/0x330 [ 1685.121786][ C2] ret_from_fork_asm+0x11/0x20 [ 1685.121790][ C2] [ 1685.121790][ C2] [ 1685.130292][ C2] Allocated by task 20103: [ 1685.130379][ C2] kasan_save_stack+0x2f/0x50 [ 1685.130466][ C2] kasan_save_track+0x14/0x30 [ 1685.130550][ C2] __kasan_kmalloc+0x7b/0x90 [ 1685.130634][ C2] __kmalloc_node_track_caller_noprof+0x2d6/0x7b0 [ 1685.130739][ C2] kmemdup_noprof+0x25/0x40 [ 1685.130825][ C2] fib_rules_register+0x30/0x590 [ 1685.130910][ C2] fib4_rules_init+0x21/0x140 [ 1685.130994][ C2] fib_net_init+0x165/0x350 [ 1685.131077][ C2] ops_init+0x187/0x560 [ 1685.131141][ C2] setup_net+0x11b/0x3b0 [ 1685.131206][ C2] copy_net_ns+0x383/0x660 [ 1685.131291][ C2] create_new_namespaces+0x371/0xa10 [ 1685.131377][ C2] unshare_nsproxy_namespaces+0xa5/0x1d0 [ 1685.131461][ C2] ksys_unshare+0x353/0x880 [ 1685.131546][ C2] __x64_sys_unshare+0x34/0x50 [ 1685.131630][ C2] do_syscall_64+0x117/0x590 [ 1685.131716][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 1685.131821][ C2] [ 1685.131864][ C2] Freed by task 38: [ 1685.131934][ C2] kasan_save_stack+0x2f/0x50 [ 1685.132024][ C2] kasan_save_track+0x14/0x30 [ 1685.132108][ C2] kasan_save_free_info+0x3b/0x60 [ 1685.132193][ C2] __kasan_slab_free+0x43/0x70 [ 1685.132277][ C2] kmem_cache_free_bulk.part.0+0x1e3/0x480 [ 1685.132385][ C2] kvfree_rcu_bulk+0x1f1/0x240 [ 1685.132472][ C2] kfree_rcu_work+0x130/0x1b0 [ 1685.132555][ C2] process_one_work+0xdf8/0x1410 [ 1685.132640][ C2] worker_thread+0x4f1/0xd60 [ 1685.132725][ C2] kthread+0x367/0x460 [ 1685.132789][ C2] ret_from_fork+0x474/0x6b0 [ 1685.132873][ C2] ret_from_fork_asm+0x11/0x20 [ 1685.132958][ C2] [ 1685.133001][ C2] Last potentially related work creation: [ 1685.133086][ C2] kasan_save_stack+0x2f/0x50 [ 1685.133171][ C2] kasan_record_aux_stack+0x9b/0xc0 [ 1685.133256][ C2] kvfree_call_rcu+0x7e/0x5b0 [ 1685.133347][ C2] ops_undo_list+0x5be/0x8f0 [ 1685.133431][ C2] cleanup_net+0x431/0x940 [ 1685.133514][ C2] process_one_work+0xdf8/0x1410 [ 1685.133598][ C2] worker_thread+0x4f1/0xd60 [ 1685.133681][ C2] kthread+0x367/0x460 [ 1685.133745][ C2] ret_from_fork+0x474/0x6b0 [ 1685.133829][ C2] ret_from_fork_asm+0x11/0x20 [ 1685.133913][ C2] [ 1685.133957][ C2] The buggy address belongs to the object at ff110000152eb6c0 [ 1685.133957][ C2] which belongs to the cache kmalloc-192 of size 192 [ 1685.134162][ C2] The buggy address is located 128 bytes inside of [ 1685.134162][ C2] freed 192-byte region [ff110000152eb6c0, ff110000152eb780) [ 1685.134370][ C2] [ 1685.134412][ C2] The buggy address belongs to the physical page: [ 1685.134520][ C2] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xff110000152eadc0 pfn:0x152ea [ 1685.134692][ C2] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 1685.134822][ C2] flags: 0x80000000000240(workingset|head|node=0|zone=1) [ 1685.134932][ C2] page_type: f5(slab) [ 1685.134999][ C2] raw: 0080000000000240 ff1100000103c4c0 ffd4000000349b90 ffd4000000742d90 [ 1685.135153][ C2] raw: ff110000152eadc0 0000000000150014 00000000f5000000 0000000000000000 [ 1685.135304][ C2] head: 0080000000000240 ff1100000103c4c0 ffd4000000349b90 ffd4000000742d90 [ 1685.135455][ C2] head: ff110000152eadc0 0000000000150014 00000000f5000000 0000000000000000 [ 1685.135605][ C2] head: 0080000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff [ 1685.135757][ C2] head: ff11000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 1685.135906][ C2] page dumped because: kasan: bad access detected [ 1685.136012][ C2] [ 1685.136054][ C2] Memory state around the buggy address: [ 1685.136137][ C2] ff110000152eb600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1685.136313][ C2] ff110000152eb680: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 1685.136436][ C2] >ff110000152eb700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 1685.136557][ C2] ^ [ 1685.136708][ C2] ff110000152eb780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1685.136831][ C2] ff110000152eb800: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 1685.136953][ C2] ================================================================== [ 1685.137166][ C2] Disabling lock debugging due to kernel taint [ 1708.053325][T20932] udpgso_bench_tx (20932) used greatest stack depth: 22208 bytes left [ 1709.123713][T21002] udpgso_bench_tx (21002) used greatest stack depth: 21504 bytes left