================================================================== BUG: KASAN: use-after-free in tipc_named_reinit+0x194/0x340 net/tipc/name_distr.c:344 Read of size 8 at addr ffff88818439a000 by task kworker/0:0/27122 CPU: 0 PID: 27122 Comm: kworker/0:0 Not tainted 5.4.44-syzkaller-00691-g788fe852d3be #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+0x14a/0x1ce lib/dump_stack.c:118 print_address_description+0x93/0x620 mm/kasan/report.c:374 __kasan_report+0x16d/0x1e0 mm/kasan/report.c:506 kasan_report+0x34/0x60 mm/kasan/common.c:634 tipc_named_reinit+0x194/0x340 net/tipc/name_distr.c:344 tipc_net_finalize+0xc7/0x130 net/tipc/net.c:138 tipc_net_finalize_work+0x50/0x70 net/tipc/net.c:150 process_one_work+0x777/0xf90 kernel/workqueue.c:2274 worker_thread+0xa8f/0x1430 kernel/workqueue.c:2420 kthread+0x2df/0x300 kernel/kthread.c:255 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the page: page:ffffea000610e600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 compound_mapcount: 0 flags: 0x8000000000010000(head) raw: 8000000000010000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888184399f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888184399f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88818439a000: 00 00 00 00 00 00 fe fe fe fe fe fe fe fe fe fe ^ ffff88818439a080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff88818439a100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ================================================================== kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 27122 Comm: kworker/0:0 Tainted: G B 5.4.44-syzkaller-00691-g788fe852d3be #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events tipc_net_finalize_work RIP: 0010:__rht_bucket_nested lib/rhashtable.c:1178 [inline] RIP: 0010:rht_bucket_nested lib/rhashtable.c:1203 [inline] RIP: 0010:rht_bucket include/linux/rhashtable.h:290 [inline] RIP: 0010:__rhashtable_walk_find_next+0x4b5/0x9b0 lib/rhashtable.c:794 Code: 00 74 0e 89 cb e8 6b 09 77 ff 89 d9 48 8b 7c 24 78 49 c1 e7 03 4c 03 3f 48 8b 44 24 58 d3 e8 89 44 24 2c 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 3c 09 77 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff8881da147a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888190f2e040 RBP: ffff8881da147bd0 R08: ffffffff81f915dd R09: 0000000000000003 R10: ffffed103b428f4d R11: 0000000000000004 R12: aaaaaaaaaaaaaaaa R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d924000 CR3: 00000001da211001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: tipc_sk_reinit+0x12a/0x4b0 net/tipc/socket.c:2790 tipc_net_finalize+0xcf/0x130 net/tipc/net.c:139 tipc_net_finalize_work+0x50/0x70 net/tipc/net.c:150 process_one_work+0x777/0xf90 kernel/workqueue.c:2274 worker_thread+0xa8f/0x1430 kernel/workqueue.c:2420 kthread+0x2df/0x300 kernel/kthread.c:255 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace 7c7e33ebabecae8e ]--- RIP: 0010:__rht_bucket_nested lib/rhashtable.c:1178 [inline] RIP: 0010:rht_bucket_nested lib/rhashtable.c:1203 [inline] RIP: 0010:rht_bucket include/linux/rhashtable.h:290 [inline] RIP: 0010:__rhashtable_walk_find_next+0x4b5/0x9b0 lib/rhashtable.c:794 Code: 00 74 0e 89 cb e8 6b 09 77 ff 89 d9 48 8b 7c 24 78 49 c1 e7 03 4c 03 3f 48 8b 44 24 58 d3 e8 89 44 24 2c 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 3c 09 77 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff8881da147a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888190f2e040 RBP: ffff8881da147bd0 R08: ffffffff81f915dd R09: 0000000000000003 R10: ffffed103b428f4d R11: 0000000000000004 R12: aaaaaaaaaaaaaaaa R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563877c9f157 CR3: 000000019c82a002 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600