F2FS-fs (loop3): Try to recover 2th superblock, ret: 0 F2FS-fs (loop3): Mounted with checkpoint version = 48b305e5 ================================================================== BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663 Read of size 1 at addr ffff88811317883c by task syz.3.1921/8897 CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:3363 [inline] device_add+0x331/0xc00 drivers/base/core.c:3193 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 Allocated by task 8462: 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_slab_alloc+0xb7/0xe0 mm/kasan/common.c:463 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 getname_flags+0xba/0x510 fs/namei.c:141 user_path_at_empty+0x2f/0x50 fs/namei.c:2790 user_path_at include/linux/namei.h:60 [inline] __do_sys_chdir fs/open.c:492 [inline] __se_sys_chdir+0x99/0x220 fs/open.c:486 __x64_sys_chdir+0x38/0x40 fs/open.c:486 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb Freed by task 8462: 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] kmem_cache_free+0x100/0x2d0 mm/slub.c:3224 putname fs/namei.c:262 [inline] filename_lookup+0x476/0x660 fs/namei.c:2478 user_path_at_empty+0x43/0x50 fs/namei.c:2790 user_path_at include/linux/namei.h:60 [inline] __do_sys_chdir fs/open.c:492 [inline] __se_sys_chdir+0x99/0x220 fs/open.c:486 __x64_sys_chdir+0x38/0x40 fs/open.c:486 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb The buggy address belongs to the object at ffff888113178000 which belongs to the cache names_cache of size 4096 The buggy address is located 2108 bytes inside of 4096-byte region [ffff888113178000, ffff888113179000) The buggy address belongs to the page: page:ffffea00044c5e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x113178 head:ffffea00044c5e00 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head) raw: 4000000000010200 0000000000000000 0000000100000001 ffff88810018a900 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 6904, ts 351778111827, free_ts 351776365975 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2457 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2463 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4262 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5392 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] kmem_cache_alloc+0x1a4/0x2d0 mm/slub.c:2965 getname_flags+0xba/0x510 fs/namei.c:141 getname+0x19/0x20 fs/namei.c:212 do_sys_openat2+0xde/0x750 fs/open.c:1213 do_sys_open fs/open.c:1235 [inline] __do_sys_openat fs/open.c:1251 [inline] __se_sys_openat fs/open.c:1246 [inline] __x64_sys_openat+0x136/0x160 fs/open.c:1246 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1350 [inline] __free_pages_ok+0x80b/0x830 mm/page_alloc.c:1630 free_the_page mm/page_alloc.c:5453 [inline] __free_pages+0xd8/0x390 mm/page_alloc.c:5462 __free_slab+0xcf/0x190 mm/slub.c:1899 free_slab mm/slub.c:1914 [inline] discard_slab mm/slub.c:1920 [inline] unfreeze_partials+0x150/0x180 mm/slub.c:2415 put_cpu_partial+0xc1/0x180 mm/slub.c:2451 __slab_free+0x2c9/0x3a0 mm/slub.c:3100 do_slab_free mm/slub.c:3196 [inline] ___cache_free+0x10e/0x130 mm/slub.c:3215 qlink_free+0x50/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440 kasan_slab_alloc include/linux/kasan.h:244 [inline] slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580 slab_alloc_node mm/slub.c:2952 [inline] slab_alloc mm/slub.c:2960 [inline] kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965 getname_flags+0xba/0x510 fs/namei.c:141 getname fs/namei.c:212 [inline] __do_sys_unlink fs/namei.c:4132 [inline] __se_sys_unlink fs/namei.c:4130 [inline] __x64_sys_unlink+0x3c/0x50 fs/namei.c:4130 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 Memory state around the buggy address: ffff888113178700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113178780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888113178800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888113178880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888113178900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ------------[ cut here ]------------ kobject: '(null)' (ffff888113178800): is not initialized, yet kobject_get() is being called. WARNING: CPU: 0 PID: 8897 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664 Modules linked in: CPU: 0 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 b6 f8 44 ff 48 8b 33 48 c7 c7 e0 ae 41 85 48 89 da e8 f4 cc 23 02 <0f> 0b eb 0c e8 5b 54 0a ff eb 4c e8 54 54 0a ff 4c 8d 73 38 4c 89 RSP: 0018:ffffc90000e37970 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: ffff888113178800 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e37988 R08: 0000000000000003 R09: fffff520001c6e94 R10: dffffc0000000000 R11: fffff520001c6e74 R12: 0000000000000000 R13: ffff888116593868 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000011000 CR3: 0000000112e7d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: get_device drivers/base/core.c:3363 [inline] device_add+0x331/0xc00 drivers/base/core.c:3193 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7df ]--- ------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 8897 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25 Code: 04 01 48 c7 c7 00 5c 40 85 e8 f8 a5 3f 02 0f 0b eb df e8 5f 2d 26 ff c6 05 8e b0 82 04 01 48 c7 c7 40 5b 40 85 e8 dc a5 3f 02 <0f> 0b eb c3 e8 43 2d 26 ff c6 05 73 b0 82 04 01 48 c7 c7 a0 5b 40 RSP: 0018:ffffc90000e37950 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e37960 R08: ffff8881f7152fff R09: 1ffff1103ee2a5ff R10: dffffc0000000000 R11: ffffed103ee2a600 R12: 0000000000000000 R13: ffff888116593868 R14: 0000000000000002 R15: 0000000000000000 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000011000 CR3: 0000000112e7d000 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:667 get_device drivers/base/core.c:3363 [inline] device_add+0x331/0xc00 drivers/base/core.c:3193 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e0 ]--- ------------[ cut here ]------------ kobject: '(null)' (ffff888113178800): is not initialized, yet kobject_get() is being called. WARNING: CPU: 1 PID: 8897 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline] WARNING: CPU: 1 PID: 8897 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 35 e0 44 ff 49 8b 34 24 48 c7 c7 e0 ae 41 85 4c 89 e2 e8 72 b4 23 02 <0f> 0b e9 04 01 00 00 e8 d6 3b 0a ff b8 fe ff ff ff e9 b0 09 00 00 RSP: 0018:ffffc90000e377d8 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: ffff8881085c5100 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e37830 R08: ffffc90000e37167 R09: fffff520001c6e60 R10: dffffc0000000000 R11: fffff520001c6e2d R12: ffff888113178800 R13: ffff8881085c5118 R14: 0000000000000000 R15: 1ffff110210b8a20 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000011000 CR3: 0000000112e7d000 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:2827 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2882 device_add+0x349/0xc00 drivers/base/core.c:3194 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e1 ]--- ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 1 PID: 8897 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22 Code: 04 01 48 c7 c7 c0 5a 40 85 e8 a4 a5 3f 02 0f 0b eb 8b e8 0b 2d 26 ff c6 05 39 b0 82 04 01 48 c7 c7 c0 5a 40 85 e8 88 a5 3f 02 <0f> 0b e9 6c ff ff ff e8 ec 2c 26 ff c6 05 1e b0 82 04 01 48 c7 c7 RSP: 0018:ffffc90000e377b8 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e377c8 R08: ffff8881f7152fff R09: 1ffff1103ee2a5ff R10: dffffc0000000000 R11: ffffed103ee2a600 R12: 00000000c0000000 R13: ffff8881085c5118 R14: 0000000000000001 R15: ffff888113178838 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2e2114 CR3: 0000000112e7d000 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:2827 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2882 device_add+0x349/0xc00 drivers/base/core.c:3194 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e2 ]--- ------------[ cut here ]------------ kobject: '(null)' (ffff888113178800): is not initialized, yet kobject_put() is being called. WARNING: CPU: 1 PID: 8897 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 88 f7 44 ff 48 8b 33 48 c7 c7 60 af 41 85 48 89 da e8 c6 cb 23 02 <0f> 0b eb 0f e8 2d 53 0a ff e9 7c 01 00 00 e8 23 53 0a ff 4c 8d 7b RSP: 0018:ffffc90000e377a0 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: ffff888113178800 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e377c8 R08: ffffc90000e37127 R09: fffff520001c6e58 R10: dffffc0000000000 R11: fffff520001c6e25 R12: ffff888113178800 R13: ffff88811317883c R14: 1ffff1102262f107 R15: 0000000000000000 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000011000 CR3: 0000000112e7d000 CR4: 00000000003506a0 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:2827 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2882 device_add+0x349/0xc00 drivers/base/core.c:3194 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e3 ]--- ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 8897 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28 Code: 04 01 48 c7 c7 40 5b 40 85 e8 dc a5 3f 02 0f 0b eb c3 e8 43 2d 26 ff c6 05 73 b0 82 04 01 48 c7 c7 a0 5b 40 85 e8 c0 a5 3f 02 <0f> 0b eb a7 e8 27 2d 26 ff c6 05 54 b0 82 04 01 48 c7 c7 c0 5a 40 RSP: 0018:ffffc90000e37780 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e37790 R08: ffff8881f7152fff R09: 1ffff1103ee2a5ff R10: dffffc0000000000 R11: ffffed103ee2a600 R12: 00000000c0000000 R13: ffff88811317883c R14: 0000000000000003 R15: ffff888113178838 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555581f894e8 CR3: 0000000112e7d000 CR4: 00000000003506b0 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:2827 [inline] get_device_parent+0x3a6/0x410 drivers/base/core.c:2882 device_add+0x349/0xc00 drivers/base/core.c:3194 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e4 ]--- kobject_add_internal failed for android_usb (error: -2 parent: (null)) ------------[ cut here ]------------ kobject: '(null)' (ffff888113178800): is not initialized, yet kobject_put() is being called. WARNING: CPU: 1 PID: 8897 at lib/kobject.c:760 kobject_put+0x8a/0x270 lib/kobject.c:758 Modules linked in: CPU: 1 PID: 8897 Comm: syz.3.1921 Tainted: G B W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 88 f7 44 ff 48 8b 33 48 c7 c7 60 af 41 85 48 89 da e8 c6 cb 23 02 <0f> 0b eb 0f e8 2d 53 0a ff e9 7c 01 00 00 e8 23 53 0a ff 4c 8d 7b RSP: 0018:ffffc90000e37960 EFLAGS: 00010246 RAX: 517f43d3889f0d00 RBX: ffff888113178800 RCX: 0000000000080000 RDX: ffffc9000558a000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90000e37988 R08: ffff8881f7152fff R09: 1ffff1103ee2a5ff R10: dffffc0000000000 R11: ffffed103ee2a600 R12: fffffffffffffffe R13: ffff88811317883c R14: 1ffff1102262f107 R15: 0000000000000000 FS: 00007fc9ba55c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe6637a9288 CR3: 0000000112e7d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: put_device drivers/base/core.c:3375 [inline] device_add+0x36f/0xc00 drivers/base/core.c:3320 device_create_groups_vargs drivers/base/core.c:3962 [inline] device_create+0x26c/0x300 drivers/base/core.c:4004 create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31 create_alsa_device drivers/usb/gadget/function/f_midi.c:1266 [inline] f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1307 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:1378 vfs_mkdir+0x42c/0x600 fs/namei.c:3840 do_mkdirat+0x14c/0x340 fs/namei.c:3862 __do_sys_mkdirat fs/namei.c:3873 [inline] __se_sys_mkdirat fs/namei.c:3871 [inline] __x64_sys_mkdirat+0x7b/0x90 fs/namei.c:3871 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc9bbb0eb59 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:00007fc9ba55c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc9bbd9afa0 RCX: 00007fc9bbb0eb59 RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c RBP: 00007fc9bbb9f18b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc9bbd9b038 R14: 00007fc9bbd9afa0 R15: 00007ffeb4845708 ---[ end trace c66d8087cab9d7e5 ]---