tipc: 32-bit node address hash set to f9ff1eac ================================================================== BUG: KASAN: use-after-free in tipc_named_reinit+0x194/0x340 net/tipc/name_distr.c:344 Read of size 8 at addr ffff888171bfe000 by task kworker/0:3/1621 CPU: 0 PID: 1621 Comm: kworker/0:3 Not tainted 5.4.55-syzkaller-00694-g5c524b17ccd3 #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:ffffea0005c6ff80 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: ffff888171bfdf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888171bfdf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888171bfe000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888171bfe080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888171bfe100: 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: 1621 Comm: kworker/0:3 Tainted: G B 5.4.55-syzkaller-00694-g5c524b17ccd3 #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 cb 8b 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 9c 8b 76 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff88819592fa80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888196822040 RBP: ffff88819592fbd0 R08: ffffffff81f9a76d R09: 0000000000000003 R10: ffffed1032b25f4d 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: 00007f60a2e24000 CR3: 00000001a527c005 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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 17158a54c0b23803 ]--- 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 cb 8b 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 9c 8b 76 ff 4d 8b 3f 31 ff 4c 89 RSP: 0018:ffff88819592fa80 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffff8881 RCX: 00000000ffff8881 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888196822040 RBP: ffff88819592fbd0 R08: ffffffff81f9a76d R09: 0000000000000003 R10: ffffed1032b25f4d 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: 00007f60a2e4e000 CR3: 00000001d4e10004 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400