================================================================== BUG: KASAN: use-after-free in rht_key_hashfn include/linux/rhashtable.h:159 [inline] BUG: KASAN: use-after-free in __rhashtable_lookup include/linux/rhashtable.h:597 [inline] BUG: KASAN: use-after-free in rhashtable_lookup include/linux/rhashtable.h:639 [inline] BUG: KASAN: use-after-free in rhashtable_lookup_fast include/linux/rhashtable.h:665 [inline] BUG: KASAN: use-after-free in ila_lookup_wildcards net/ipv6/ila/ila_xlat.c:133 [inline] BUG: KASAN: use-after-free in ila_xlat_addr net/ipv6/ila/ila_xlat.c:650 [inline] BUG: KASAN: use-after-free in ila_nf_input+0xce1/0xe00 net/ipv6/ila/ila_xlat.c:191 Read of size 4 at addr ffff888095582b88 by task syz-executor.3/23962 CPU: 0 PID: 23962 Comm: syz-executor.3 Not tainted 5.1.0-rc5+ #100 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_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 rht_key_hashfn include/linux/rhashtable.h:159 [inline] __rhashtable_lookup include/linux/rhashtable.h:597 [inline] rhashtable_lookup include/linux/rhashtable.h:639 [inline] rhashtable_lookup_fast include/linux/rhashtable.h:665 [inline] ila_lookup_wildcards net/ipv6/ila/ila_xlat.c:133 [inline] ila_xlat_addr net/ipv6/ila/ila_xlat.c:650 [inline] ila_nf_input+0xce1/0xe00 net/ipv6/ila/ila_xlat.c:191 nf_hook_entry_hookfn include/linux/netfilter.h:126 [inline] nf_hook_slow+0xbf/0x1f0 net/netfilter/core.c:512 nf_hook include/linux/netfilter.h:251 [inline] NF_HOOK include/linux/netfilter.h:294 [inline] ipv6_rcv+0x25d/0x420 net/ipv6/ip6_input.c:272 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4990 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5102 process_backlog+0x206/0x750 net/core/dev.c:5942 napi_poll net/core/dev.c:6365 [inline] net_rx_action+0x4fa/0x1070 net/core/dev.c:6431 __do_softirq+0x266/0x95a kernel/softirq.c:293 invoke_softirq kernel/softirq.c:374 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:414 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x14a/0x570 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline] RIP: 0010:kmem_cache_free+0xab/0x260 mm/slab.c:3767 Code: e8 ea 28 00 00 84 c0 74 77 41 f7 c5 00 02 00 00 74 4f e8 a8 2d cd ff 48 83 3d 30 c9 e9 06 00 0f 84 ae 01 00 00 4c 89 ef 57 9d <0f> 1f 44 00 00 4c 8b 6d 08 0f 1f 44 00 00 65 8b 05 90 b3 58 7e 83 RSP: 0018:ffff888078ad7ce8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: ffff888097bd0dc0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000286 RBP: ffff888078ad7d08 R08: ffff888089e48200 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888091315080 R13: 0000000000000286 R14: ffffffff81b7df6d R15: ffff888097bd0eb0 __d_free fs/dcache.c:269 [inline] dentry_free+0xed/0x170 fs/dcache.c:348 __dentry_kill+0x45f/0x610 fs/dcache.c:593 dentry_kill+0xd7/0x5e0 fs/dcache.c:698 dput+0x570/0x6a0 fs/dcache.c:859 __fput+0x42f/0x8d0 fs/file_table.c:291 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x412b40 Code: 01 f0 ff ff 0f 83 10 1b 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 4d 37 64 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 e4 1a 00 00 c3 48 83 ec 08 e8 0a fc ff ff RSP: 002b:00007ffe734453a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007ffe734454b0 RCX: 0000000000412b40 RDX: 00000000000000e0 RSI: 00007ffe73445890 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000006000 R09: 0000000000004000 R10: 00007ffe734454b0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe73445b30 R14: 00000000000c93e4 R15: 00007ffe73445b40 Allocated by task 23894: 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:3688 [inline] __kmalloc_node+0x4e/0x70 mm/slab.c:3695 kmalloc_node include/linux/slab.h:590 [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+0x90/0x480 lib/rhashtable.c:178 rhashtable_init+0x3f4/0x7b0 lib/rhashtable.c:1056 ila_xlat_init_net+0x1df/0x2f0 net/ipv6/ila/ila_xlat.c:615 ila_init_net+0x16/0x20 net/ipv6/ila/ila_main.c:60 ops_init+0xb6/0x410 net/core/net_namespace.c:129 setup_net+0x2d3/0x740 net/core/net_namespace.c:315 copy_net_ns+0x1df/0x340 net/core/net_namespace.c:438 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 19637: 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:3500 [inline] kfree+0xcf/0x230 mm/slab.c:3823 kvfree+0x61/0x70 mm/util.c:459 bucket_table_free+0x69/0x150 lib/rhashtable.c:108 rhashtable_free_and_destroy+0x165/0x8a0 lib/rhashtable.c:1154 ila_xlat_exit_net+0x1a4/0x360 net/ipv6/ila/ila_xlat.c:624 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:552 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 ffff888095582b80 which belongs to the cache kmalloc-32k of size 32768 The buggy address is located 8 bytes inside of 32768-byte region [ffff888095582b80, ffff88809558ab80) The buggy address belongs to the page: page:ffffea0002556000 count:1 mapcount:0 mapping:ffff88812c3f2380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001abd408 ffffea00022c9808 ffff88812c3f2380 raw: 0000000000000000 ffff888095582b80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095582a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095582b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888095582b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888095582c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888095582c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================