================================================================== BUG: KASAN: use-after-free in rht_bucket_lock include/linux/rhashtable.h:225 [inline] BUG: KASAN: use-after-free in lockdep_rht_bucket_is_held+0xfb/0x100 lib/rhashtable.c:59 Read of size 8 at addr ffff888086540e10 by task ksoftirqd/1/16 CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.0.0+ #108 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 rht_bucket_lock include/linux/rhashtable.h:225 [inline] lockdep_rht_bucket_is_held+0xfb/0x100 lib/rhashtable.c:59 __rhashtable_lookup include/linux/rhashtable.h:494 [inline] rhashtable_lookup include/linux/rhashtable.h:533 [inline] rhashtable_lookup_fast include/linux/rhashtable.h:559 [inline] ila_lookup_wildcards net/ipv6/ila/ila_xlat.c:133 [inline] ila_xlat_addr net/ipv6/ila/ila_xlat.c:649 [inline] ila_nf_input+0xa2a/0xdf0 net/ipv6/ila/ila_xlat.c:191 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] br_nf_pre_routing_ipv6+0x50a/0x740 net/bridge/br_netfilter_ipv6.c:238 br_nf_pre_routing+0xe80/0x13a0 net/bridge/br_netfilter_hooks.c:482 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] NF_HOOK include/linux/netfilter.h:287 [inline] br_handle_frame+0x95b/0x1450 net/bridge/br_input.c:305 __netif_receive_skb_core+0xa96/0x3040 net/core/dev.c:4909 __netif_receive_skb_one_core+0xa8/0x1a0 net/core/dev.c:4978 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5090 process_backlog+0x206/0x750 net/core/dev.c:5930 napi_poll net/core/dev.c:6353 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6419 __do_softirq+0x266/0x95a kernel/softirq.c:293 run_ksoftirqd kernel/softirq.c:655 [inline] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:647 smpboot_thread_fn+0x6ab/0xa10 kernel/smpboot.c:164 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 7945: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_kmalloc mm/kasan/common.c:497 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:511 __do_kmalloc_node mm/slab.c:3686 [inline] __kmalloc_node+0x4e/0x70 mm/slab.c:3693 kmalloc_node include/linux/slab.h:588 [inline] kvmalloc_node+0xbd/0x100 mm/util.c:430 kvmalloc include/linux/mm.h:605 [inline] kvzalloc include/linux/mm.h:613 [inline] bucket_table_alloc+0x3f/0x470 lib/rhashtable.c:176 rhashtable_init+0x489/0x8a0 lib/rhashtable.c:1045 ila_xlat_init_net+0x1df/0x2f0 net/ipv6/ila/ila_xlat.c:614 ila_init_net+0x16/0x20 net/ipv6/ila/ila_main.c:60 ops_init+0xb6/0x410 net/core/net_namespace.c:129 setup_net+0x2c5/0x730 net/core/net_namespace.c:314 copy_net_ns+0x1d9/0x340 net/core/net_namespace.c:437 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:206 ksys_unshare+0x440/0x980 kernel/fork.c:2549 __do_sys_unshare kernel/fork.c:2617 [inline] __se_sys_unshare kernel/fork.c:2615 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2615 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7522: save_stack+0x45/0xd0 mm/kasan/common.c:75 set_track mm/kasan/common.c:87 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3821 kvfree+0x61/0x70 mm/util.c:459 bucket_table_free+0x93/0x180 lib/rhashtable.c:108 rhashtable_free_and_destroy+0x155/0x8f0 lib/rhashtable.c:1143 ila_xlat_exit_net+0x1a4/0x360 net/ipv6/ila/ila_xlat.c:623 ila_exit_net+0x16/0x20 net/ipv6/ila/ila_main.c:72 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:551 process_one_work+0x98e/0x1790 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff888086540e00 which belongs to the cache kmalloc-32k of size 32768 The buggy address is located 16 bytes inside of 32768-byte region [ffff888086540e00, ffff888086548e00) The buggy address belongs to the page: page:ffffea0002195000 count:1 mapcount:0 mapping:ffff88812c3f2380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002969408 ffffea0002256808 ffff88812c3f2380 raw: 0000000000000000 ffff888086540e00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888086540d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888086540d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888086540e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888086540e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888086540f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================