tipc: 32-bit node address hash set to faff1eac ================================================================== BUG: KASAN: use-after-free in tipc_named_reinit+0x194/0x340 net/tipc/name_distr.c:344 Read of size 8 at addr ffff8881d158e000 by task kworker/0:85/23150 CPU: 0 PID: 23150 Comm: kworker/0:85 Not tainted 5.4.52-syzkaller-00272-g0c0d417747d8 #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+0x36/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:ffffea0007456380 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d158df00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881d158df80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881d158e000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881d158e080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881d158e100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== 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: 23150 Comm: kworker/0:85 Tainted: G B 5.4.52-syzkaller-00272-g0c0d417747d8 #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 3b 8e 76 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 0c 8e 76 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff888194657a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888180ac8040 RBP: ffff888194657bd0 R08: ffffffff81f99ddd R09: 0000000000000003 R10: ffffed10328caf4d 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: 00007ffd183604d8 CR3: 00000001948dd003 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 8bfe095f1da7d5fc ]--- 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 3b 8e 76 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 0c 8e 76 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff888194657a80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888180ac8040 RBP: ffff888194657bd0 R08: ffffffff81f99ddd R09: 0000000000000003 R10: ffffed10328caf4d 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: 0000001b2f923000 CR3: 000000017bee3006 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600