==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff88813782e03c by task syz.4.3260/10741
CPU: 1 PID: 10741 Comm: syz.4.3260 Not tainted 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: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:1310 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1351
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:0x7f4d343a94d9
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:00007f4d351e6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f4d34625fa0 RCX: 00007f4d343a94d9
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f4d3443804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4d34626038 R14: 00007f4d34625fa0 R15: 00007ffe8e184c28
Allocated by task 10500:
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_kmalloc mm/kasan/common.c:380 [inline]
__kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389
kasan_kmalloc include/linux/kasan.h:212 [inline]
kmalloc_trace+0x40/0xb0 mm/slab_common.c:1033
kmalloc include/linux/slab.h:563 [inline]
kzalloc include/linux/slab.h:699 [inline]
device_create_groups_vargs drivers/base/core.c:4374 [inline]
device_create+0x13a/0x300 drivers/base/core.c:4434
android_device_create drivers/usb/gadget/configfs.c:1784 [inline]
gadgets_make+0x84a/0xad0 drivers/usb/gadget/configfs.c:1886
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
Freed by task 10500:
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+0xb7/0x1b0 mm/slub.c:3728
kfree+0x6f/0xf0 mm/slab_common.c:990
device_create_release+0x15/0x20 drivers/base/core.c:4359
device_release+0xa4/0x1d0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:681 [inline]
kobject_release lib/kobject.c:712 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x19d/0x280 lib/kobject.c:729
put_device drivers/base/core.c:3806 [inline]
device_unregister drivers/base/core.c:3930 [inline]
device_destroy+0xb4/0xf0 drivers/base/core.c:4500
android_device_destroy drivers/usb/gadget/configfs.c:1816 [inline]
gadgets_drop+0xa0/0xd0 drivers/usb/gadget/configfs.c:1904
client_drop_item fs/configfs/dir.c:933 [inline]
configfs_rmdir+0x89b/0x980 fs/configfs/dir.c:1536
vfs_rmdir+0x381/0x4f0 fs/namei.c:4198
do_rmdir+0x261/0x6b0 fs/namei.c:4259
__do_sys_rmdir fs/namei.c:4278 [inline]
__se_sys_rmdir fs/namei.c:4276 [inline]
__x64_sys_rmdir+0x49/0x50 fs/namei.c:4276
x64_sys_call+0x68e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:85
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 ffff88813782e000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
1024-byte region [ffff88813782e000, ffff88813782e400)
The buggy address belongs to the physical page:
page:ffffea0004de0a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x137828
head:ffffea0004de0a00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 dead000000000001 ffff888100043080
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 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 280, tgid 280 (syz-executor), ts 711255880128, free_ts 711231056795
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]
__kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423
__do_kmalloc_node mm/slab_common.c:937 [inline]
__kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958
kmalloc_reserve net/core/skbuff.c:449 [inline]
__alloc_skb+0x226/0x4a0 net/core/skbuff.c:518
alloc_skb_fclone include/linux/skbuff.h:1372 [inline]
tcp_stream_alloc_skb+0x47/0x360 net/ipv4/tcp.c:871
tso_fragment net/ipv4/tcp_output.c:2142 [inline]
tcp_write_xmit+0x10ea/0x5f60 net/ipv4/tcp_output.c:2709
__tcp_push_pending_frames+0x99/0x2f0 net/ipv4/tcp_output.c:2908
tcp_push+0x484/0x660 net/ipv4/tcp.c:738
tcp_sendmsg_locked+0x323e/0x39f0 net/ipv4/tcp.c:1464
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_compound_page+0x99/0xd0 mm/page_alloc.c:886
destroy_large_folio+0x68/0xa0 mm/page_alloc.c:923
__folio_put_large mm/swap.c:113 [inline]
__folio_put+0xd1/0xe0 mm/swap.c:121
folio_put include/linux/mm.h:1442 [inline]
put_page include/linux/mm.h:1494 [inline]
__skb_frag_unref include/linux/skbuff.h:3510 [inline]
skb_release_data+0x3d5/0x8a0 net/core/skbuff.c:788
skb_release_all net/core/skbuff.c:859 [inline]
napi_consume_skb+0x13d/0x2c0 net/core/skbuff.c:1116
skb_defer_free_flush net/core/dev.c:6796 [inline]
net_rx_action+0x39e/0xa90 net/core/dev.c:6817
handle_softirqs+0x1dd/0x5f0 kernel/softirq.c:642
__do_softirq kernel/softirq.c:680 [inline]
invoke_softirq kernel/softirq.c:497 [inline]
__irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
common_interrupt+0xbe/0xe0 arch/x86/kernel/irq.c:242
asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:682
Memory state around the buggy address:
ffff88813782df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88813782df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88813782e000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88813782e080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88813782e100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 10741 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 10741 Comm: syz.4.3260 Tainted: G B 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: 05 01 48 c7 c7 c0 18 ca 85 e8 f8 78 d8 fe 0f 0b eb df e8 2f f9 07 ff c6 05 40 34 26 05 01 48 c7 c7 00 18 ca 85 e8 dc 78 d8 fe <0f> 0b eb c3 e8 13 f9 07 ff c6 05 25 34 26 05 01 48 c7 c7 60 18 ca
RSP: 0018:ffffc90001427a18 EFLAGS: 00010246
RAX: 94f4bd3168e5eb00 RBX: 0000000000000002 RCX: ffff888118652880
RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc90001427a28 R08: 000000000001ffff R09: 0000000000400000
R10: 0000000000400008 R11: fffff52000284e94 R12: 1ffff110243c260e
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
FS: 00007f4d351e66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d343f0ce0 CR3: 0000000117f6f000 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: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:1310 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1351
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:0x7f4d343a94d9
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:00007f4d351e6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f4d34625fa0 RCX: 00007f4d343a94d9
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f4d3443804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4d34626038 R14: 00007f4d34625fa0 R15: 00007ffe8e184c28
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: saturated; leaking memory.
WARNING: CPU: 0 PID: 10741 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22
Modules linked in:
CPU: 0 PID: 10741 Comm: syz.4.3260 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: 05 01 48 c7 c7 a0 17 ca 85 e8 a4 78 d8 fe 0f 0b eb 8b e8 db f8 07 ff c6 05 eb 33 26 05 01 48 c7 c7 a0 17 ca 85 e8 88 78 d8 fe <0f> 0b e9 6c ff ff ff e8 bc f8 07 ff c6 05 d0 33 26 05 01 48 c7 c7
RSP: 0018:ffffc900014278d8 EFLAGS: 00010246
RAX: 94f4bd3168e5eb00 RBX: 0000000000000001 RCX: ffff888118652880
RDX: 0000000000000003 RSI: 0000000000000001 RDI: 0000000000000002
RBP: ffffc900014278e8 R08: 000000000001ffff R09: 0000000000400000
R10: 0000000000400008 R11: ffffed103edc4eb4 R12: dffffc0000000000
R13: ffff888121e13018 R14: 0000000000000001 R15: 00000000c0000000
FS: 00007f4d351e66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32c05000 CR3: 0000000117f6f000 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: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:1310 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1351
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:0x7f4d343a94d9
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:00007f4d351e6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f4d34625fa0 RCX: 00007f4d343a94d9
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f4d3443804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4d34626038 R14: 00007f4d34625fa0 R15: 00007ffe8e184c28
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 10741 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 10741 Comm: syz.4.3260 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: 05 01 48 c7 c7 00 18 ca 85 e8 dc 78 d8 fe 0f 0b eb c3 e8 13 f9 07 ff c6 05 25 34 26 05 01 48 c7 c7 60 18 ca 85 e8 c0 78 d8 fe <0f> 0b eb a7 e8 f7 f8 07 ff c6 05 06 34 26 05 01 48 c7 c7 a0 17 ca
RSP: 0018:ffffc900014278a0 EFLAGS: 00010246
RAX: 94f4bd3168e5eb00 RBX: 0000000000000003 RCX: ffff888118652880
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900014278b0 R08: 000000000001ffff R09: 0000000000400000
R10: 0000000000400008 R11: fffff52000284ec4 R12: 00000000c0000000
R13: ffff88813782e03c R14: 0000000000000003 R15: ffff88813782e038
FS: 00007f4d351e66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32c05000 CR3: 0000000117f6f000 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+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:1310 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1351
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:0x7f4d343a94d9
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:00007f4d351e6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f4d34625fa0 RCX: 00007f4d343a94d9
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f4d3443804e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f4d34626038 R14: 00007f4d34625fa0 R15: 00007ffe8e184c28
---[ end trace 0000000000000000 ]---
kobject_add_internal failed for f_midi (error: -2 parent: À¥i �ˆÿÿ))