BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663 Read of size 1 at addr ffff88810af9c03c by task syz.9.476/1972 CPU: 0 PID: 1972 Comm: syz.9.476 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 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+0x100/0x140 mm/kasan/report.c:452 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 kobject_get+0x113/0x120 lib/kobject.c:663 get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 Allocated by task 1110: 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+0xd4/0x100 mm/kasan/common.c:518 kasan_kmalloc include/linux/kasan.h:254 [inline] kmem_cache_alloc_trace+0x179/0x2e0 mm/slub.c:2979 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:667 [inline] device_create_groups_vargs drivers/base/core.c:3942 [inline] device_create+0x13a/0x300 drivers/base/core.c:4002 android_device_create drivers/usb/gadget/configfs.c:1789 [inline] gadgets_make+0x816/0xa70 drivers/usb/gadget/configfs.c:1886 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdirat fs/namei.c:3831 [inline] __se_sys_mkdirat fs/namei.c:3829 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3829 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 1716: 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 skb_free_head net/core/skbuff.c:606 [inline] skb_release_data+0x53b/0x690 net/core/skbuff.c:626 skb_release_all net/core/skbuff.c:680 [inline] __kfree_skb+0x50/0x70 net/core/skbuff.c:694 tcp_rcv_established+0xd3d/0x19c0 net/ipv4/tcp_input.c:5922 tcp_v4_do_rcv+0x3e4/0x7c0 net/ipv4/tcp_ipv4.c:1699 tcp_v4_rcv+0x2295/0x2810 net/ipv4/tcp_ipv4.c:2095 ip_protocol_deliver_rcu+0x302/0x650 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x2dd/0x530 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:461 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:558 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:609 [inline] ip_sublist_rcv+0x75b/0x8b0 net/ipv4/ip_input.c:617 ip_list_rcv+0x3e4/0x430 net/ipv4/ip_input.c:652 __netif_receive_skb_list_ptype net/core/dev.c:5456 [inline] __netif_receive_skb_list_core+0x57e/0x770 net/core/dev.c:5504 __netif_receive_skb_list net/core/dev.c:5556 [inline] netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5666 gro_normal_list net/core/dev.c:5820 [inline] napi_complete_done+0x375/0x780 net/core/dev.c:6569 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline] virtnet_poll+0x8a6/0xef0 drivers/net/virtio_net.c:1567 napi_poll net/core/dev.c:6885 [inline] net_rx_action+0x48d/0xed0 net/core/dev.c:6955 __do_softirq+0x255/0x563 kernel/softirq.c:309 The buggy address belongs to the object at ffff88810af9c000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 60 bytes inside of 1024-byte region [ffff88810af9c000, ffff88810af9c400) The buggy address belongs to the page: page:ffffea00042be600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10af98 head:ffffea00042be600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000a00000001 ffff888100042f00 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 5675949490, 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+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 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+0x2f8/0x4c0 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+0x1f9/0x330 mm/slub.c:4034 __kmalloc_node include/linux/slab.h:421 [inline] kmalloc_node include/linux/slab.h:578 [inline] kzalloc_node include/linux/slab.h:678 [inline] blk_mq_alloc_hctx block/blk-mq.c:2816 [inline] blk_mq_alloc_and_init_hctx block/blk-mq.c:3247 [inline] blk_mq_realloc_hw_ctxs+0x40d/0x1620 block/blk-mq.c:3299 blk_mq_init_allocated_queue+0x466/0x1850 block/blk-mq.c:3361 blk_mq_init_queue_data block/blk-mq.c:3180 [inline] blk_mq_init_queue+0x6e/0xd0 block/blk-mq.c:3190 scsi_mq_alloc_queue+0x42/0x140 drivers/scsi/scsi_lib.c:1911 scsi_alloc_sdev+0x611/0x920 drivers/scsi/scsi_scan.c:284 scsi_probe_and_add_lun+0x17d/0x3370 drivers/scsi/scsi_scan.c:1098 __scsi_scan_target+0x1d2/0xbf0 drivers/scsi/scsi_scan.c:1581 scsi_scan_channel drivers/scsi/scsi_scan.c:1669 [inline] scsi_scan_host_selected+0x34e/0x600 drivers/scsi/scsi_scan.c:1698 do_scsi_scan_host drivers/scsi/scsi_scan.c:1837 [inline] scsi_scan_host+0x39e/0x670 drivers/scsi/scsi_scan.c:1867 page_owner free stack trace missing Memory state around the buggy address: ffff88810af9bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810af9bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810af9c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810af9c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88810af9c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ kobject: '' (ffff88810af9c000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 1972 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664 Modules linked in: CPU: 1 PID: 1972 Comm: syz.9.476 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:kobject_get+0x7c/0x120 lib/kobject.c:664 Code: 0a ff 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 16 31 45 ff 48 8b 33 48 c7 c7 c0 9b 41 85 48 89 da e8 e4 fc 1e 02 <0f> 0b eb 0c e8 db bb 0a ff eb 4c e8 d4 bb 0a ff 4c 8d 73 38 4c 89 RSP: 0018:ffffc90001247970 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: ffff88810af9c000 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90001247988 R08: ffff8881f7152fbf R09: 1ffff1103ee2a5f7 R10: dffffc0000000000 R11: ffffed103ee2a5f8 R12: 0000000000000000 R13: ffff888114649868 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fea70a066c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f484c4e2580 CR3: 000000010f4bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d720 ]--- ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 1972 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Code: 04 01 48 c7 c7 a0 49 40 85 e8 98 ca 3a 02 0f 0b eb df e8 8f 89 26 ff c6 05 cc 75 82 04 01 48 c7 c7 e0 48 40 85 e8 7c ca 3a 02 <0f> 0b eb c3 e8 73 89 26 ff c6 05 b1 75 82 04 01 48 c7 c7 40 49 40 RSP: 0018:ffffc90001247950 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90001247960 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7 R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: 0000000000000000 R13: ffff888114649868 R14: 0000000000000002 R15: 0000000000000000 FS: 00007fea70a066c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 000000010f4bb000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] kref_get include/linux/kref.h:45 [inline] kobject_get+0xfb/0x120 lib/kobject.c:667 get_device drivers/base/core.c:3361 [inline] device_add+0x331/0xc00 drivers/base/core.c:3191 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d721 ]--- ------------[ cut here ]------------ kobject: '' (ffff88810af9c000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 0 PID: 1972 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline] WARNING: CPU: 0 PID: 1972 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:kobject_get lib/kobject.c:664 [inline] RIP: 0010:kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Code: b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 4c 89 e7 e8 95 18 45 ff 49 8b 34 24 48 c7 c7 c0 9b 41 85 4c 89 e2 e8 62 e4 1e 02 <0f> 0b e9 04 01 00 00 e8 56 a3 0a ff b8 fe ff ff ff e9 b0 09 00 00 RSP: 0018:ffffc900012477d8 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: ffff8881248a2e00 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90001247830 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7 R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: ffff88810af9c000 R13: ffff8881248a2e18 R14: 0000000000000000 R15: 1ffff110249145c0 FS: 00007fea70a066c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f484c6e42f8 CR3: 000000010f4bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d722 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 0 PID: 1972 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Code: 04 01 48 c7 c7 60 48 40 85 e8 44 ca 3a 02 0f 0b eb 8b e8 3b 89 26 ff c6 05 77 75 82 04 01 48 c7 c7 60 48 40 85 e8 28 ca 3a 02 <0f> 0b e9 6c ff ff ff e8 1c 89 26 ff c6 05 5c 75 82 04 01 48 c7 c7 RSP: 0018:ffffc900012477b8 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012477c8 R08: ffff8881f7027453 R09: 1ffff1103ee04e8a R10: dffffc0000000000 R11: ffffed103ee04e8b R12: 00000000c0000000 R13: ffff8881248a2e18 R14: 0000000000000001 R15: ffff88810af9c038 FS: 00007fea70a066c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffb5ea1d2f8 CR3: 000000010f4bb000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] kref_get include/linux/kref.h:45 [inline] kobject_get lib/kobject.c:667 [inline] kobject_add_internal+0xc44/0xde0 lib/kobject.c:248 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d723 ]--- ------------[ cut here ]------------ kobject: '' (ffff88810af9c000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 1972 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:kobject_put+0x8a/0x270 lib/kobject.c:758 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e8 2f 45 ff 48 8b 33 48 c7 c7 40 9c 41 85 48 89 da e8 b6 fb 1e 02 <0f> 0b eb 0f e8 ad ba 0a ff e9 7c 01 00 00 e8 a3 ba 0a ff 4c 8d 7b RSP: 0018:ffffc900012477a0 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: ffff88810af9c000 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900012477c8 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7 R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: ffff88810af9c000 R13: ffff88810af9c03c R14: 1ffff110215f3807 R15: 0000000000000000 FS: 00007fea70a066c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffb5ea1d2f8 CR3: 000000010f4bb000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_internal+0xb52/0xde0 lib/kobject.c:266 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d724 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 1972 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Code: 04 01 48 c7 c7 e0 48 40 85 e8 7c ca 3a 02 0f 0b eb c3 e8 73 89 26 ff c6 05 b1 75 82 04 01 48 c7 c7 40 49 40 85 e8 60 ca 3a 02 <0f> 0b eb a7 e8 57 89 26 ff c6 05 92 75 82 04 01 48 c7 c7 60 48 40 RSP: 0018:ffffc90001247780 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90001247790 R08: ffff8881f7052fbf R09: 1ffff1103ee0a5f7 R10: dffffc0000000000 R11: ffffed103ee0a5f8 R12: 00000000c0000000 R13: ffff88810af9c03c R14: 0000000000000003 R15: ffff88810af9c038 FS: 00007fea70a066c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f484c6e42f8 CR3: 000000010f4bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:283 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] kref_put include/linux/kref.h:64 [inline] kobject_put+0x231/0x270 lib/kobject.c:761 kobject_add_internal+0xb52/0xde0 lib/kobject.c:266 kobject_add_varg lib/kobject.c:398 [inline] kobject_add+0x165/0x230 lib/kobject.c:450 class_dir_create_and_add drivers/base/core.c:2825 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2880 device_add+0x349/0xc00 drivers/base/core.c:3192 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d725 ]--- kobject_add_internal failed for android_usb (error: -2 parent: ) ------------[ cut here ]------------ kobject: '' (ffff88810af9c000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 0 PID: 1972 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 0 PID: 1972 Comm: syz.9.476 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:kobject_put+0x8a/0x270 lib/kobject.c:758 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 e8 2f 45 ff 48 8b 33 48 c7 c7 40 9c 41 85 48 89 da e8 b6 fb 1e 02 <0f> 0b eb 0f e8 ad ba 0a ff e9 7c 01 00 00 e8 a3 ba 0a ff 4c 8d 7b RSP: 0018:ffffc90001247960 EFLAGS: 00010246 RAX: f05d88a891a2dc00 RBX: ffff88810af9c000 RCX: 0000000000080000 RDX: ffffc90002930000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90001247988 R08: ffffc900012472e7 R09: fffff52000248e90 R10: dffffc0000000000 R11: fffff52000248e5d R12: fffffffffffffffe R13: ffff88810af9c03c R14: 1ffff110215f3807 R15: 0000000000000000 FS: 00007fea70a066c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555756694e8 CR3: 000000010f4bb000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: put_device drivers/base/core.c:3373 [inline] device_add+0x36f/0xc00 drivers/base/core.c:3318 device_create_groups_vargs drivers/base/core.c:3960 [inline] device_create+0x26c/0x300 drivers/base/core.c:4002 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xe2/0x2f0 drivers/usb/gadget/functions.c:44 function_make+0x118/0x350 drivers/usb/gadget/configfs.c:636 configfs_mkdir+0x5d2/0xd90 fs/configfs/dir.c:1354 vfs_mkdir+0x42c/0x600 fs/namei.c:3798 do_mkdirat+0x14c/0x340 fs/namei.c:3820 __do_sys_mkdir fs/namei.c:3836 [inline] __se_sys_mkdir fs/namei.c:3834 [inline] __x64_sys_mkdir+0x60/0x70 fs/namei.c:3834 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fea71face99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea70a06028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007fea72234fa0 RCX: 00007fea71face99 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000800 RBP: 00007fea72042eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea72235038 R14: 00007fea72234fa0 R15: 00007ffc78580098 ---[ end trace 9498f6c5f698d726 ]---