ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ---[ end trace b8c475ad4788fb4b ]--- ================================================================== BUG: KASAN: use-after-free in tipc_conn_close+0x3a/0x130 net/tipc/topsrv.c:157 Read of size 8 at addr ffff88810b1be108 by task kworker/u4:4/551 CPU: 0 PID: 551 Comm: kworker/u4:4 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: netns cleanup_net Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0xe2/0x130 mm/kasan/report.c:452 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 tipc_conn_close+0x3a/0x130 net/tipc/topsrv.c:157 tipc_topsrv_stop net/tipc/topsrv.c:704 [inline] tipc_topsrv_exit_net+0x182/0x390 net/tipc/topsrv.c:727 ops_exit_list net/core/net_namespace.c:185 [inline] cleanup_net+0x586/0xb70 net/core/net_namespace.c:609 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Allocated by task 49: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:430 [inline] ____kasan_kmalloc mm/kasan/common.c:509 [inline] __kasan_kmalloc+0xda/0x110 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] kmem_cache_alloc_trace+0x184/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:667 [inline] tipc_conn_alloc+0x5a/0x460 net/tipc/topsrv.c:184 tipc_topsrv_accept+0xff/0x280 net/tipc/topsrv.c:472 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Freed by task 49: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4a/0x70 mm/kasan/common.c:45 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:370 kasan_slab_free include/linux/kasan.h:220 [inline] slab_free_hook mm/slub.c:1600 [inline] slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626 slab_free mm/slub.c:3208 [inline] kfree+0xc0/0x270 mm/slub.c:4196 tipc_conn_kref_release net/tipc/topsrv.c:142 [inline] kref_put include/linux/kref.h:65 [inline] conn_put+0x2b6/0x320 net/tipc/topsrv.c:147 tipc_conn_recv_work+0x391/0x3f0 net/tipc/topsrv.c:432 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x52/0x310 kernel/workqueue.c:1352 __queue_work+0x923/0xca0 kernel/workqueue.c:1518 queue_work_on+0xd5/0x130 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:515 [inline] tipc_conn_data_ready+0x135/0x190 net/tipc/topsrv.c:446 tipc_sk_filter_rcv+0xc42/0x3850 net/tipc/socket.c:2386 tipc_sk_enqueue net/tipc/socket.c:2442 [inline] tipc_sk_rcv+0x7cc/0x1ef0 net/tipc/socket.c:2493 tipc_node_xmit+0x256/0xcd0 net/tipc/node.c:1674 tipc_node_xmit_skb+0xe9/0x130 net/tipc/node.c:1739 tipc_sk_respond+0x22b/0x310 net/tipc/socket.c:287 __tipc_shutdown+0xeb9/0x1520 net/tipc/socket.c:577 tipc_release+0x79/0x1490 net/tipc/socket.c:629 __sock_release net/socket.c:597 [inline] sock_close+0xe0/0x270 net/socket.c:1286 __fput+0x2fb/0x770 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x127/0x190 kernel/task_work.c:189 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xcb/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:274 do_syscall_64+0x3d/0x40 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xcb Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:38 __kasan_record_aux_stack+0xd2/0x100 mm/kasan/generic.c:348 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358 insert_work+0x52/0x310 kernel/workqueue.c:1352 __queue_work+0x923/0xca0 kernel/workqueue.c:1518 queue_work_on+0xd5/0x130 kernel/workqueue.c:1545 queue_work include/linux/workqueue.h:515 [inline] tipc_topsrv_queue_evt+0x2d7/0x340 net/tipc/topsrv.c:336 tipc_sub_send_event net/tipc/subscr.c:54 [inline] tipc_sub_timeout+0x1ef/0x390 net/tipc/subscr.c:109 call_timer_fn+0x38/0x290 kernel/time/timer.c:1450 expire_timers kernel/time/timer.c:1495 [inline] __run_timers+0x639/0x9a0 kernel/time/timer.c:1789 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1802 __do_softirq+0x255/0x563 kernel/softirq.c:309 The buggy address belongs to the object at ffff88810b1be100 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 8 bytes inside of 192-byte region [ffff88810b1be100, ffff88810b1be1c0) The buggy address belongs to the page: page:ffffea00042c6f80 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810b1be800 pfn:0x10b1be flags: 0x4000000000000200(slab) raw: 4000000000000200 ffffea00045aa648 ffffea0004370088 ffff888100043380 raw: ffff88810b1be800 000000000010000a 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY), pid 1, ts 2381732907, free_ts 0 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x179/0x180 mm/page_alloc.c:2462 get_page_from_freelist+0x2235/0x23d0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x268/0x5f0 mm/page_alloc.c:5370 alloc_slab_page mm/slub.c:-1 [inline] allocate_slab mm/slub.c:1813 [inline] new_slab+0x84/0x3f0 mm/slub.c:1874 new_slab_objects mm/slub.c:2632 [inline] ___slab_alloc+0x2a6/0x450 mm/slub.c:2796 __slab_alloc+0x63/0xa0 mm/slub.c:2836 slab_alloc_node mm/slub.c:2918 [inline] slab_alloc mm/slub.c:2960 [inline] __kmalloc+0x201/0x330 mm/slub.c:4034 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_array_node include/linux/slab.h:630 [inline] kcalloc_node include/linux/slab.h:635 [inline] sbitmap_init_node+0x14f/0x3c0 lib/sbitmap.c:76 blk_mq_alloc_hctx block/blk-mq.c:2829 [inline] blk_mq_alloc_and_init_hctx block/blk-mq.c:3231 [inline] blk_mq_realloc_hw_ctxs+0x770/0x16c0 block/blk-mq.c:3283 blk_mq_init_allocated_queue+0x409/0x17c0 block/blk-mq.c:3345 blk_mq_init_queue_data block/blk-mq.c:3164 [inline] blk_mq_init_queue+0x6e/0xd0 block/blk-mq.c:3174 scsi_mq_alloc_queue+0x42/0x140 drivers/scsi/scsi_lib.c:1900 scsi_alloc_sdev+0x60d/0x920 drivers/scsi/scsi_scan.c:284 scsi_probe_and_add_lun+0x196/0x33e0 drivers/scsi/scsi_scan.c:1098 __scsi_scan_target+0x1d6/0xbc0 drivers/scsi/scsi_scan.c:1581 scsi_scan_channel drivers/scsi/scsi_scan.c:1669 [inline] scsi_scan_host_selected+0x343/0x5f0 drivers/scsi/scsi_scan.c:1698 page_owner free stack trace missing Memory state around the buggy address: ffff88810b1be000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810b1be080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88810b1be100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810b1be180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88810b1be200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== general protection fault, probably for non-canonical address 0xfe47fc3500000009: 0000 [#1] PREEMPT SMP KASAN KASAN: maybe wild-memory-access in range [0xf24001a800000048-0xf24001a80000004f] CPU: 1 PID: 551 Comm: kworker/u4:4 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: netns cleanup_net RIP: 0010:tipc_conn_close+0x4c/0x130 net/tipc/topsrv.c:157 Code: 7b 08 4d 89 fe 49 c1 ee 03 43 80 3c 26 00 74 08 4c 89 ff e8 76 96 3d fd 4c 89 7d d0 4d 8b 3f 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 55 96 3d fd 4d 8b 27 4d 8d bc 24 RSP: 0018:ffffc90000d97bc0 EFLAGS: 00010a06 RAX: 1e48003500000009 RBX: ffff88810b1be100 RCX: 0000000000000282 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00000000ffffffff RBP: ffffc90000d97bf0 R08: 0000000000000004 R09: 0000000000000003 R10: fffffbfff0d8f048 R11: 1ffffffff0d8f048 R12: dffffc0000000000 R13: 1ffff1102264ef43 R14: 1ffff11021637c21 R15: f24001a800000049 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f78f5752d60 CR3: 000000011c0b6000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tipc_topsrv_stop net/tipc/topsrv.c:704 [inline] tipc_topsrv_exit_net+0x182/0x390 net/tipc/topsrv.c:727 ops_exit_list net/core/net_namespace.c:185 [inline] cleanup_net+0x586/0xb70 net/core/net_namespace.c:609 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447 kthread+0x346/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Modules linked in: ---[ end trace b8c475ad4788fb4c ]--- RIP: 0010:tipc_conn_close+0x4c/0x130 net/tipc/topsrv.c:157 Code: 7b 08 4d 89 fe 49 c1 ee 03 43 80 3c 26 00 74 08 4c 89 ff e8 76 96 3d fd 4c 89 7d d0 4d 8b 3f 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 55 96 3d fd 4d 8b 27 4d 8d bc 24 RSP: 0018:ffffc90000d97bc0 EFLAGS: 00010a06 RAX: 1e48003500000009 RBX: ffff88810b1be100 RCX: 0000000000000282 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00000000ffffffff RBP: ffffc90000d97bf0 R08: 0000000000000004 R09: 0000000000000003 R10: fffffbfff0d8f048 R11: 1ffffffff0d8f048 R12: dffffc0000000000 R13: 1ffff1102264ef43 R14: 1ffff11021637c21 R15: f24001a800000049 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f78f5752d60 CR3: 000000000620f000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7b 08 jnp 0xa 2: 4d 89 fe mov %r15,%r14 5: 49 c1 ee 03 shr $0x3,%r14 9: 43 80 3c 26 00 cmpb $0x0,(%r14,%r12,1) e: 74 08 je 0x18 10: 4c 89 ff mov %r15,%rdi 13: e8 76 96 3d fd call 0xfd3d968e 18: 4c 89 7d d0 mov %r15,-0x30(%rbp) 1c: 4d 8b 3f mov (%r15),%r15 1f: 49 83 c7 18 add $0x18,%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 55 96 3d fd call 0xfd3d968e 39: 4d 8b 27 mov (%r15),%r12 3c: 4d rex.WRB 3d: 8d .byte 0x8d 3e: bc .byte 0xbc 3f: 24 .byte 0x24