================================================================== BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631 Read of size 1 at addr ffff88811b6bc03c by task syz.8.2643/9768 CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:348 kobject_get+0x113/0x120 lib/kobject.c:631 get_device drivers/base/core.c:3794 [inline] device_add+0x2f0/0xec0 drivers/base/core.c:3618 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 Allocated by task 718: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:334 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1830 [inline] __do_sys_umount fs/namespace.c:1838 [inline] __se_sys_umount fs/namespace.c:1836 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1836 x64_sys_call+0x86a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:167 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 718: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] kmem_cache_free+0x12d/0x300 mm/slub.c:3737 putname fs/namei.c:272 [inline] user_path_at_empty+0x162/0x1c0 fs/namei.c:2914 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1830 [inline] __do_sys_umount fs/namespace.c:1838 [inline] __se_sys_umount fs/namespace.c:1836 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1836 x64_sys_call+0x86a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:167 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff88811b6bb300 which belongs to the cache names_cache of size 4096 The buggy address is located 3388 bytes inside of 4096-byte region [ffff88811b6bb300, ffff88811b6bc300) The buggy address belongs to the physical page: page:ffffea00046dae00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b6b8 head:ffffea00046dae00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881001ed200 raw: 0000000000000000 0000000000070007 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 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 9552, tgid 9552 (udevd), ts 557772120239, free_ts 556053337049 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2673 prep_new_page+0x1c/0x110 mm/page_alloc.c:2680 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4587 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5931 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x1a8/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 getname fs/namei.c:218 [inline] __do_sys_rename fs/namei.c:5081 [inline] __se_sys_rename fs/namei.c:5078 [inline] __x64_sys_rename+0x6e/0x90 fs/namei.c:5078 x64_sys_call+0x300/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:83 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1581 [inline] free_pcp_prepare mm/page_alloc.c:1655 [inline] free_unref_page_prepare+0x81b/0x820 mm/page_alloc.c:3622 free_unref_page+0x93/0x530 mm/page_alloc.c:3720 free_the_page mm/page_alloc.c:863 [inline] __free_pages+0x67/0x100 mm/page_alloc.c:6021 __free_slab+0xc7/0x1a0 mm/slub.c:2044 free_slab mm/slub.c:2059 [inline] discard_slab mm/slub.c:2065 [inline] __unfreeze_partials+0x15a/0x190 mm/slub.c:2614 put_cpu_partial+0xa9/0x100 mm/slub.c:2690 __slab_free+0x1c4/0x280 mm/slub.c:3589 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] slab_alloc mm/slub.c:3392 [inline] __kmem_cache_alloc_lru mm/slub.c:3399 [inline] kmem_cache_alloc+0x166/0x320 mm/slub.c:3408 getname_flags+0xba/0x510 fs/namei.c:139 user_path_at_empty+0x2f/0x1c0 fs/namei.c:2911 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1830 [inline] __do_sys_umount fs/namespace.c:1838 [inline] __se_sys_umount fs/namespace.c:1836 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1836 Memory state around the buggy address: ffff88811b6bbf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811b6bbf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88811b6bc000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88811b6bc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88811b6bc100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ kobject: '(null)' (ffff88811b6bc000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 9768 at lib/kobject.c:634 kobject_get+0x7c/0x120 lib/kobject.c:632 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kobject_get+0x7c/0x120 lib/kobject.c:632 Code: 83 fc 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 c6 a0 c8 fc 48 8b 33 48 c7 c7 e0 14 0b 86 48 89 da e8 24 8a 53 fc <0f> 0b eb 0c e8 db 06 83 fc eb 4c e8 d4 06 83 fc 4c 8d 73 38 4c 89 RSP: 0018:ffffc90000987a38 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: ffff88811b6bc000 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000987a50 R08: ffffc90000987627 R09: 1ffff92000130ec4 R10: dffffc0000000000 R11: fffff52000130ec5 R12: 1ffff1102650520e R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_device drivers/base/core.c:3794 [inline] device_add+0x2f0/0xec0 drivers/base/core.c:3618 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 9768 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Code: 05 01 48 c7 c7 c0 16 ca 85 e8 f8 67 d8 fe 0f 0b eb df e8 af e4 07 ff c6 05 a0 21 26 05 01 48 c7 c7 00 16 ca 85 e8 dc 67 d8 fe <0f> 0b eb c3 e8 93 e4 07 ff c6 05 85 21 26 05 01 48 c7 c7 60 16 ca RSP: 0018:ffffc90000987a18 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000987a28 R08: ffffc90000987607 R09: 1ffff92000130ec0 R10: dffffc0000000000 R11: fffff52000130ec1 R12: 1ffff1102650520e R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 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:635 get_device drivers/base/core.c:3794 [inline] device_add+0x2f0/0xec0 drivers/base/core.c:3618 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kobject: '(null)' (ffff88811b6bc000): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 9768 at lib/kobject.c:634 kobject_get lib/kobject.c:632 [inline] WARNING: CPU: 1 PID: 9768 at lib/kobject.c:634 kobject_add_internal+0x110/0xc20 lib/kobject.c:216 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kobject_get lib/kobject.c:632 [inline] RIP: 0010:kobject_add_internal+0x110/0xc20 lib/kobject.c:216 Code: 75 d0 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 62 89 c8 fc 49 8b 36 48 c7 c7 e0 14 0b 86 4c 89 f2 e8 c0 72 53 fc <0f> 0b e9 f8 00 00 00 e8 74 ef 82 fc b8 fe ff ff ff e9 31 08 00 00 RSP: 0018:ffffc900009878f8 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: ffff888132829000 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000987950 R08: ffffc90000987607 R09: 1ffff92000130ec0 R10: dffffc0000000000 R11: fffff52000130ec1 R12: dffffc0000000000 R13: ffff888132829018 R14: ffff88811b6bc000 R15: 1ffff11026505200 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x165/0x230 lib/kobject.c:418 device_add+0x398/0xec0 drivers/base/core.c:3633 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 1 PID: 9768 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Code: 05 01 48 c7 c7 a0 15 ca 85 e8 a4 67 d8 fe 0f 0b eb 8b e8 5b e4 07 ff c6 05 4b 21 26 05 01 48 c7 c7 a0 15 ca 85 e8 88 67 d8 fe <0f> 0b e9 6c ff ff ff e8 3c e4 07 ff c6 05 30 21 26 05 01 48 c7 c7 RSP: 0018:ffffc900009878d8 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900009878e8 R08: ffffc900009875e7 R09: 1ffff92000130ebc R10: dffffc0000000000 R11: fffff52000130ebd R12: dffffc0000000000 R13: ffff888132829018 R14: 0000000000000001 R15: 00000000c0000000 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 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:635 [inline] kobject_add_internal+0xa81/0xc20 lib/kobject.c:216 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x165/0x230 lib/kobject.c:418 device_add+0x398/0xec0 drivers/base/core.c:3633 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kobject: '(null)' (ffff88811b6bc000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 1 PID: 9768 at lib/kobject.c:728 kobject_put+0x8a/0x280 lib/kobject.c:726 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kobject_put+0x8a/0x280 lib/kobject.c:726 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 88 9f c8 fc 48 8b 33 48 c7 c7 60 15 0b 86 48 89 da e8 e6 88 53 fc <0f> 0b eb 0f e8 9d 05 83 fc e9 8f 01 00 00 e8 93 05 83 fc 4c 8d 7b RSP: 0018:ffffc900009878c0 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: ffff88811b6bc000 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900009878e8 R08: ffffc900009874a7 R09: 1ffff92000130e94 R10: dffffc0000000000 R11: fffff52000130e95 R12: dffffc0000000000 R13: ffff88811b6bc03c R14: 1ffff110236d7807 R15: 0000000000000000 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kobject_add_internal+0x9a2/0xc20 lib/kobject.c:234 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x165/0x230 lib/kobject.c:418 device_add+0x398/0xec0 drivers/base/core.c:3633 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 9768 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Code: 05 01 48 c7 c7 00 16 ca 85 e8 dc 67 d8 fe 0f 0b eb c3 e8 93 e4 07 ff c6 05 85 21 26 05 01 48 c7 c7 60 16 ca 85 e8 c0 67 d8 fe <0f> 0b eb a7 e8 77 e4 07 ff c6 05 66 21 26 05 01 48 c7 c7 a0 15 ca RSP: 0018:ffffc900009878a0 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc900009878b0 R08: ffffc90000987487 R09: 1ffff92000130e90 R10: dffffc0000000000 R11: fffff52000130e91 R12: 00000000c0000000 R13: ffff88811b6bc03c R14: 0000000000000003 R15: ffff88811b6bc038 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 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+0x244/0x280 lib/kobject.c:729 kobject_add_internal+0x9a2/0xc20 lib/kobject.c:234 kobject_add_varg lib/kobject.c:366 [inline] kobject_add+0x165/0x230 lib/kobject.c:418 device_add+0x398/0xec0 drivers/base/core.c:3633 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]--- kobject_add_internal failed for f_midi (error: -2 parent: (null)) ------------[ cut here ]------------ kobject: '(null)' (ffff88811b6bc000): is not initialized, yet kobject_put() is being called. WARNING: CPU: 1 PID: 9768 at lib/kobject.c:728 kobject_put+0x8a/0x280 lib/kobject.c:726 Modules linked in: CPU: 1 PID: 9768 Comm: syz.8.2643 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:kobject_put+0x8a/0x280 lib/kobject.c:726 Code: 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 88 9f c8 fc 48 8b 33 48 c7 c7 60 15 0b 86 48 89 da e8 e6 88 53 fc <0f> 0b eb 0f e8 9d 05 83 fc e9 8f 01 00 00 e8 93 05 83 fc 4c 8d 7b RSP: 0018:ffffc90000987a28 EFLAGS: 00010246 RAX: 4ff0eaf36da29000 RBX: ffff88811b6bc000 RCX: 0000000000080000 RDX: ffffc90003a43000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000987a50 R08: ffffc90000987727 R09: 1ffff92000130ee4 R10: dffffc0000000000 R11: fffff52000130ee5 R12: ffff888132829068 R13: ffff88811b6bc03c R14: 1ffff110236d7807 R15: 0000000000000000 FS: 00007faad26a36c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3da1f7000 CR3: 00000001465bb000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: put_device drivers/base/core.c:3806 [inline] device_add+0x9a1/0xec0 drivers/base/core.c:3751 device_create_groups_vargs drivers/base/core.c:4392 [inline] device_create+0x26c/0x300 drivers/base/core.c:4434 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:36 create_alsa_device drivers/usb/gadget/function/f_midi.c:1306 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1347 try_get_usb_function_instance drivers/usb/gadget/functions.c:28 [inline] usb_get_function_instance+0xf3/0x310 drivers/usb/gadget/functions.c:44 function_make+0x118/0x360 drivers/usb/gadget/configfs.c:652 configfs_mkdir+0x518/0x9e0 fs/configfs/dir.c:1329 vfs_mkdir+0x39c/0x580 fs/namei.c:4113 do_mkdirat+0x174/0x4d0 fs/namei.c:4138 __do_sys_mkdirat fs/namei.c:4153 [inline] __se_sys_mkdirat fs/namei.c:4151 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4151 x64_sys_call+0x73d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faad179e559 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:00007faad26a3028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007faad1a25fa0 RCX: 00007faad179e559 RDX: 00000000000001ff RSI: 0000200000000340 RDI: ffffffffffffff9c RBP: 00007faad1835ab8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faad1a26038 R14: 00007faad1a25fa0 R15: 00007ffc1b664508 ---[ end trace 0000000000000000 ]---