tipc: 32-bit node address hash set to faff1eac ================================================================== BUG: KASAN: use-after-free in tipc_named_reinit+0x913/0x946 net/tipc/name_distr.c:344 Read of size 8 at addr ffff8880491ba000 by task kworker/0:13/30474 CPU: 0 PID: 30474 Comm: kworker/0:13 Not tainted 5.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events tipc_net_finalize_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 tipc_named_reinit+0x913/0x946 net/tipc/name_distr.c:344 tipc_net_finalize net/tipc/net.c:138 [inline] tipc_net_finalize+0x1cf/0x310 net/tipc/net.c:131 tipc_net_finalize_work+0x55/0x80 net/tipc/net.c:150 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 Allocated by task 9784: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:494 kmem_cache_alloc_trace+0x14f/0x2d0 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] tipc_nametbl_init+0x1b5/0x490 net/tipc/name_table.c:852 tipc_init_net+0x381/0x5c0 net/tipc/core.c:79 ops_init+0xaf/0x470 net/core/net_namespace.c:151 setup_net+0x2d8/0x850 net/core/net_namespace.c:341 copy_net_ns+0x2cf/0x5e0 net/core/net_namespace.c:482 create_new_namespaces+0x3f6/0xb10 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xbd/0x1f0 kernel/nsproxy.c:231 ksys_unshare+0x36c/0x9a0 kernel/fork.c:2983 __do_sys_unshare kernel/fork.c:3051 [inline] __se_sys_unshare kernel/fork.c:3049 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3049 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 24997: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf5/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kfree+0x103/0x2c0 mm/slab.c:3757 tipc_exit_net+0x2c/0x270 net/tipc/core.c:113 ops_exit_list+0xb0/0x160 net/core/net_namespace.c:186 cleanup_net+0x4ea/0xa00 net/core/net_namespace.c:603 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415 kthread+0x3b5/0x4a0 kernel/kthread.c:291 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff8880491b8000 which belongs to the cache kmalloc-16k of size 16384 The buggy address is located 8192 bytes inside of 16384-byte region [ffff8880491b8000, ffff8880491bc000) The buggy address belongs to the page: page:ffffea0001246e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0001246e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea00010c4008 ffffea000103cc08 ffff8880aa002380 raw: 0000000000000000 ffff8880491b8000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880491b9f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880491b9f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880491ba000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880491ba080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880491ba100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================