==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff88810e0b583c by task syz.3.6759/22465
CPU: 1 PID: 22465 Comm: syz.3.6759 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: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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
Allocated by task 19706:
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]
__do_kmalloc_node mm/slab_common.c:938 [inline]
__kmalloc_node_track_caller+0xb1/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 include/linux/skbuff.h:1322 [inline]
__tcp_send_ack+0x9b/0x690 net/ipv4/tcp_output.c:3997
tcp_send_ack+0x3b/0x60 net/ipv4/tcp_output.c:4029
__tcp_ack_snd_check+0x40e/0x900 net/ipv4/tcp_input.c:5633
tcp_ack_snd_check net/ipv4/tcp_input.c:5679 [inline]
tcp_rcv_established+0xa97/0x1ab0 net/ipv4/tcp_input.c:6123
tcp_v4_do_rcv+0x446/0x9c0 net/ipv4/tcp_ipv4.c:1684
tcp_v4_rcv+0x239f/0x2ae0 net/ipv4/tcp_ipv4.c:2115
ip_protocol_deliver_rcu+0x371/0x780 net/ipv4/ip_input.c:205
ip_local_deliver_finish+0x23e/0x400 net/ipv4/ip_input.c:233
NF_HOOK include/linux/netfilter.h:305 [inline]
ip_local_deliver+0x1dc/0x350 net/ipv4/ip_input.c:254
dst_input include/net/dst.h:463 [inline]
ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline]
ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline]
ip_sublist_rcv+0x787/0x8d0 net/ipv4/ip_input.c:639
ip_list_rcv+0x3e4/0x430 net/ipv4/ip_input.c:674
__netif_receive_skb_list_ptype net/core/dev.c:5679 [inline]
__netif_receive_skb_list_core+0x5a8/0x7b0 net/core/dev.c:5727
__netif_receive_skb_list net/core/dev.c:5779 [inline]
netif_receive_skb_list_internal+0x7f8/0xaa0 net/core/dev.c:5870
gro_normal_list include/net/gro.h:433 [inline]
napi_complete_done+0x375/0x7a0 net/core/dev.c:6211
virtqueue_napi_complete drivers/net/virtio_net.c:404 [inline]
virtnet_poll+0x9c3/0x1140 drivers/net/virtio_net.c:1724
__napi_poll+0xcd/0x5d0 net/core/dev.c:6645
napi_threaded_poll+0x1b0/0x370 net/core/dev.c:6764
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Freed by task 19705:
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
skb_free_head net/core/skbuff.c:765 [inline]
skb_release_data+0x63d/0x8a0 net/core/skbuff.c:794
skb_release_all net/core/skbuff.c:859 [inline]
napi_consume_skb+0x13d/0x2c0 net/core/skbuff.c:1116
free_old_xmit_skbs+0x10e/0x280 drivers/net/virtio_net.c:1643
virtnet_poll_tx+0x22b/0x550 drivers/net/virtio_net.c:1818
__napi_poll+0xcd/0x5d0 net/core/dev.c:6645
napi_threaded_poll+0x1b0/0x370 net/core/dev.c:6764
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445
drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1731
unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1769
unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175
neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3879
devinet_sysctl_unregister net/ipv4/devinet.c:2664 [inline]
inetdev_destroy net/ipv4/devinet.c:329 [inline]
inetdev_event+0x839/0x10a0 net/ipv4/devinet.c:1615
notifier_call_chain kernel/notifier.c:87 [inline]
raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455
call_netdevice_notifiers_info net/core/dev.c:2022 [inline]
call_netdevice_notifiers_extack net/core/dev.c:2060 [inline]
call_netdevice_notifiers net/core/dev.c:2074 [inline]
unregister_netdevice_many+0x104a/0x1910 net/core/dev.c:11006
ip_tunnel_delete_nets+0x346/0x390 net/ipv4/ip_tunnel.c:1139
ipip_exit_batch_net+0x22/0x30 net/ipv4/ipip.c:599
ops_exit_list net/core/net_namespace.c:177 [inline]
cleanup_net+0x630/0xb10 net/core/net_namespace.c:604
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Second to last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
kvfree_call_rcu+0x8b/0x7a0 kernel/rcu/tree.c:3445
drop_sysctl_table+0x2f5/0x430 fs/proc/proc_sysctl.c:1731
unregister_sysctl_table+0x75/0x120 fs/proc/proc_sysctl.c:1769
unregister_net_sysctl_table+0x15/0x20 net/sysctl_net.c:175
neigh_sysctl_unregister+0x78/0x90 net/core/neighbour.c:3879
addrconf_sysctl_unregister net/ipv6/addrconf.c:7266 [inline]
addrconf_ifdown+0x168b/0x1950 net/ipv6/addrconf.c:3984
addrconf_notify+0x39f/0xe30 net/ipv6/addrconf.c:-1
notifier_call_chain kernel/notifier.c:87 [inline]
raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455
call_netdevice_notifiers_info net/core/dev.c:2022 [inline]
call_netdevice_notifiers_extack net/core/dev.c:2060 [inline]
call_netdevice_notifiers net/core/dev.c:2074 [inline]
unregister_netdevice_many+0x104a/0x1910 net/core/dev.c:11006
ip_tunnel_delete_nets+0x346/0x390 net/ipv4/ip_tunnel.c:1139
erspan_exit_batch_net+0x22/0x30 net/ipv4/ip_gre.c:1736
ops_exit_list net/core/net_namespace.c:177 [inline]
cleanup_net+0x630/0xb10 net/core/net_namespace.c:604
process_one_work+0x717/0xc30 kernel/workqueue.c:2302
worker_thread+0xa4d/0x11d0 kernel/workqueue.c:2449
kthread+0x281/0x320 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
The buggy address belongs to the object at ffff88810e0b5800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
1024-byte region [ffff88810e0b5800, ffff88810e0b5c00)
The buggy address belongs to the physical page:
page:ffffea0004382c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10e0b0
head:ffffea0004382c00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 ffffea0004486800 dead000000000002 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 291, tgid 291 (syz-executor), ts 25320881490, free_ts 25314709293
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 include/linux/skbuff.h:1322 [inline]
nlmsg_new include/net/netlink.h:987 [inline]
rtmsg_fib+0x5fe/0xe20 net/ipv4/fib_semantics.c:522
fib_table_insert+0xf64/0x1de0 net/ipv4/fib_trie.c:1385
fib_magic net/ipv4/fib_frontend.c:1118 [inline]
fib_add_ifaddr+0xa54/0xdb0 net/ipv4/fib_frontend.c:1162
fib_netdev_event+0x22e/0x5a0 net/ipv4/fib_frontend.c:1500
notifier_call_chain kernel/notifier.c:87 [inline]
raw_notifier_call_chain+0xa1/0x110 kernel/notifier.c:455
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]
__kmem_cache_alloc_node+0x194/0x2d0 mm/slub.c:3423
__do_kmalloc_node mm/slab_common.c:937 [inline]
__kmalloc+0xa4/0x1e0 mm/slab_common.c:951
kmalloc include/linux/slab.h:568 [inline]
kzalloc include/linux/slab.h:699 [inline]
ops_init+0x88/0x470 net/core/net_namespace.c:128
setup_net+0x4b4/0xcd0 net/core/net_namespace.c:335
Memory state around the buggy address:
ffff88810e0b5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88810e0b5780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810e0b5800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88810e0b5880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88810e0b5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '@�ñ�ˆÿÿ' (ffff88810e0b5800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 0 PID: 22465 at lib/kobject.c:634 kobject_get+0x7c/0x120 lib/kobject.c:632
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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:632
Code: 82 fc 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 36 33 c8 fc 48 8b 33 48 c7 c7 a0 20 0b 86 48 89 da e8 34 0a 53 fc <0f> 0b eb 0c e8 ab 94 82 fc eb 4c e8 a4 94 82 fc 4c 8d 73 38 4c 89
RSP: 0018:ffffc9000345fa38 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: ffff88810e0b5800 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345fa50 R08: ffffc9000345f747 R09: 1ffff9200068bee8
R10: dffffc0000000000 R11: fffff5200068bee9 R12: 1ffff1102648180e
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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: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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: CPU: 0 PID: 22465 at lib/refcount.c:25 refcount_warn_saturate+0x104/0x1a0 lib/refcount.c:25
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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: 05 01 48 c7 c7 e0 20 ca 85 e8 c8 67 d8 fe 0f 0b eb df e8 3f f2 07 ff c6 05 e0 28 26 05 01 48 c7 c7 20 20 ca 85 e8 ac 67 d8 fe <0f> 0b eb c3 e8 23 f2 07 ff c6 05 c5 28 26 05 01 48 c7 c7 80 20 ca
RSP: 0018:ffffc9000345fa18 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: 0000000000000002 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345fa28 R08: ffff8881f6e2759b R09: 1ffff1103edc4eb3
R10: dffffc0000000000 R11: ffffed103edc4eb4 R12: 1ffff1102648180e
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '@�ñ�ˆÿÿ' (ffff88810e0b5800): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 0 PID: 22465 at lib/kobject.c:634 kobject_get lib/kobject.c:632 [inline]
WARNING: CPU: 0 PID: 22465 at lib/kobject.c:634 kobject_add_internal+0x110/0xc20 lib/kobject.c:216
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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: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 d2 1b c8 fc 49 8b 36 48 c7 c7 a0 20 0b 86 4c 89 f2 e8 d0 f2 52 fc <0f> 0b e9 f8 00 00 00 e8 44 7d 82 fc b8 fe ff ff ff e9 31 08 00 00
RSP: 0018:ffffc9000345f8b8 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: ffff8881394e1c00 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345f910 R08: ffffc9000345f4a7 R09: 1ffff9200068be94
R10: dffffc0000000000 R11: fffff5200068be95 R12: dffffc0000000000
R13: ffff8881394e1c18 R14: ffff88810e0b5800 R15: 1ffff1102729c380
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
kobject_add_varg lib/kobject.c:366 [inline]
kobject_add+0x165/0x230 lib/kobject.c:418
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: saturated; leaking memory.
WARNING: CPU: 0 PID: 22465 at lib/refcount.c:22 refcount_warn_saturate+0x158/0x1a0 lib/refcount.c:22
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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 c0 1f ca 85 e8 74 67 d8 fe 0f 0b eb 8b e8 eb f1 07 ff c6 05 8b 28 26 05 01 48 c7 c7 c0 1f ca 85 e8 58 67 d8 fe <0f> 0b e9 6c ff ff ff e8 cc f1 07 ff c6 05 70 28 26 05 01 48 c7 c7
RSP: 0018:ffffc9000345f898 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: 0000000000000001 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345f8a8 R08: ffffc9000345f487 R09: 1ffff9200068be90
R10: dffffc0000000000 R11: fffff5200068be91 R12: dffffc0000000000
R13: ffff8881394e1c18 R14: 0000000000000001 R15: 00000000c0000000
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '@�ñ�ˆÿÿ' (ffff88810e0b5800): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 0 PID: 22465 at lib/kobject.c:728 kobject_put+0x8a/0x280 lib/kobject.c:726
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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/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 f8 31 c8 fc 48 8b 33 48 c7 c7 20 21 0b 86 48 89 da e8 f6 08 53 fc <0f> 0b eb 0f e8 6d 93 82 fc e9 8f 01 00 00 e8 63 93 82 fc 4c 8d 7b
RSP: 0018:ffffc9000345f880 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: ffff88810e0b5800 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345f8a8 R08: ffffc9000345f467 R09: 1ffff9200068be8c
R10: dffffc0000000000 R11: fffff5200068be8d R12: dffffc0000000000
R13: ffff88810e0b583c R14: 1ffff11021c16b07 R15: 0000000000000000
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 22465 at lib/refcount.c:28 refcount_warn_saturate+0x120/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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 20 20 ca 85 e8 ac 67 d8 fe 0f 0b eb c3 e8 23 f2 07 ff c6 05 c5 28 26 05 01 48 c7 c7 80 20 ca 85 e8 90 67 d8 fe <0f> 0b eb a7 e8 07 f2 07 ff c6 05 a6 28 26 05 01 48 c7 c7 c0 1f ca
RSP: 0018:ffffc9000345f860 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: 0000000000000003 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345f870 R08: ffffc9000345f447 R09: 1ffff9200068be88
R10: dffffc0000000000 R11: fffff5200068be89 R12: 00000000c0000000
R13: ffff88810e0b583c R14: 0000000000000003 R15: ffff88810e0b5838
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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
class_dir_create_and_add drivers/base/core.c:3235 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3290
device_add+0x308/0xec0 drivers/base/core.c:3619
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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---
kobject_add_internal failed for android_usb (error: -2 parent: @�ñ�ˆÿÿ)
------------[ cut here ]------------
kobject: '@�ñ�ˆÿÿ' (ffff88810e0b5800): is not initialized, yet kobject_put() is being called.
WARNING: CPU: 0 PID: 22465 at lib/kobject.c:728 kobject_put+0x8a/0x280 lib/kobject.c:726
Modules linked in:
CPU: 0 PID: 22465 Comm: syz.3.6759 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/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 f8 31 c8 fc 48 8b 33 48 c7 c7 20 21 0b 86 48 89 da e8 f6 08 53 fc <0f> 0b eb 0f e8 6d 93 82 fc e9 8f 01 00 00 e8 63 93 82 fc 4c 8d 7b
RSP: 0018:ffffc9000345fa28 EFLAGS: 00010246
RAX: 48b2cf14b396a300 RBX: ffff88810e0b5800 RCX: 0000000000080000
RDX: ffffc900021f9000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000345fa50 R08: ffffc9000345f607 R09: 1ffff9200068bec0
R10: dffffc0000000000 R11: fffff5200068bec1 R12: ffff88813240c068
R13: ffff88810e0b583c R14: 1ffff11021c16b07 R15: 0000000000000000
FS: 00007f3eb4ea66c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000243030 CR3: 000000011febd000 CR4: 00000000003506b0
DR0: ffffffffffffffff DR1: 00000000000001f8 DR2: 0000000000000083
DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 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: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:1360
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:0x7f3eb3fa9a99
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:00007f3eb4ea6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f3eb4235fa0 RCX: 00007f3eb3fa9a99
RDX: 00000000000001ff RSI: 00002000000002c0 RDI: ffffffffffffff9c
RBP: 00007f3eb403918b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3eb4236038 R14: 00007f3eb4235fa0 R15: 00007fff0c0704a8
---[ end trace 0000000000000000 ]---