==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:631
Read of size 1 at addr ffff888111cb203c by task syz.0.2970/10306
CPU: 1 PID: 10306 Comm: syz.0.2970 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:0x7fd19339e159
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:00007fd191db5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fd193626180 RCX: 00007fd19339e159
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fd19343503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd193626218 R14: 00007fd193626180 R15: 00007ffecf08a928
Allocated by task 9890:
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]
pskb_expand_head+0x1c2/0x12b0 net/core/skbuff.c:1852
netlink_trim+0x193/0x230 net/netlink/af_netlink.c:1300
netlink_broadcast+0x6e/0x11c0 net/netlink/af_netlink.c:1506
nlmsg_multicast include/net/netlink.h:1067 [inline]
nlmsg_notify+0xdf/0x1a0 net/netlink/af_netlink.c:2569
rtnetlink_send+0x62/0x70 net/core/rtnetlink.c:783
qdisc_notify+0x254/0x360 net/sched/sch_api.c:1013
notify_and_destroy net/sched/sch_api.c:1027 [inline]
qdisc_graft+0x1182/0x1510 net/sched/sch_api.c:1127
tc_modify_qdisc+0xbfc/0x19c0 net/sched/sch_api.c:1761
rtnetlink_rcv_msg+0xb28/0xde0 net/core/rtnetlink.c:6154
netlink_rcv_skb+0x200/0x450 net/netlink/af_netlink.c:2526
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6172
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x8c1/0xa60 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x8b9/0xbd0 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmsg net/socket.c:2592 [inline]
__do_sys_sendmsg net/socket.c:2601 [inline]
__se_sys_sendmsg net/socket.c:2599 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2599
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
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 9890:
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]
__kfree_skb net/core/skbuff.c:873 [inline]
consume_skb+0xab/0x1f0 net/core/skbuff.c:1038
netlink_broadcast+0x10c4/0x11c0 net/netlink/af_netlink.c:1527
nlmsg_multicast include/net/netlink.h:1067 [inline]
nlmsg_notify+0xdf/0x1a0 net/netlink/af_netlink.c:2569
rtnetlink_send+0x62/0x70 net/core/rtnetlink.c:783
qdisc_notify+0x254/0x360 net/sched/sch_api.c:1013
notify_and_destroy net/sched/sch_api.c:1027 [inline]
qdisc_graft+0x1182/0x1510 net/sched/sch_api.c:1127
tc_modify_qdisc+0xbfc/0x19c0 net/sched/sch_api.c:1761
rtnetlink_rcv_msg+0xb28/0xde0 net/core/rtnetlink.c:6154
netlink_rcv_skb+0x200/0x450 net/netlink/af_netlink.c:2526
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6172
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x8c1/0xa60 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x8b9/0xbd0 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2509
___sys_sendmsg+0x2a2/0x360 net/socket.c:2563
__sys_sendmsg net/socket.c:2592 [inline]
__do_sys_sendmsg net/socket.c:2601 [inline]
__se_sys_sendmsg net/socket.c:2599 [inline]
__x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2599
x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
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 ffff888111cb2000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
1024-byte region [ffff888111cb2000, ffff888111cb2400)
The buggy address belongs to the physical page:
page:ffffea0004472c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x111cb0
head:ffffea0004472c00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 dead000000000100 dead000000000122 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 290, tgid 290 (syz-executor), ts 23364904712, free_ts 23362794012
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+0xa4/0x1e0 mm/slab_common.c:951
kmalloc include/linux/slab.h:568 [inline]
kzalloc include/linux/slab.h:699 [inline]
__register_sysctl_table+0xd9/0xe50 fs/proc/proc_sysctl.c:1345
register_net_sysctl+0x23f/0x250 net/sysctl_net.c:169
neigh_sysctl_register+0x9a0/0xa80 net/core/neighbour.c:3860
addrconf_sysctl_register+0xb3/0x1a0 net/ipv6/addrconf.c:7235
ipv6_add_dev+0xbf5/0x1130 net/ipv6/addrconf.c:455
addrconf_notify+0x6d0/0xe30 net/ipv6/addrconf.c:3621
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]
fib_create_info+0x8a6/0x1fc0 net/ipv4/fib_semantics.c:1459
fib_table_insert+0xaf/0x1de0 net/ipv4/fib_trie.c:1217
Memory state around the buggy address:
ffff888111cb1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888111cb1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888111cb2000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888111cb2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888111cb2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '' (ffff888111cb2000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 10306 at lib/kobject.c:634 kobject_get+0x7c/0x120 lib/kobject.c:632
Modules linked in:
CPU: 1 PID: 10306 Comm: syz.0.2970 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 96 ad c8 fc 48 8b 33 48 c7 c7 a0 11 0b 86 48 89 da e8 84 a8 53 fc <0f> 0b eb 0c e8 3b 22 83 fc eb 4c e8 34 22 83 fc 4c 8d 73 38 4c 89
RSP: 0018:ffffc900081afa38 EFLAGS: 00010246
RAX: 37471ea69eebd300 RBX: ffff888111cb2000 RCX: 0000000000080000
RDX: ffffc900042f5000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900081afa50 R08: ffffc900081af627 R09: 1ffff92001035ec4
R10: dffffc0000000000 R11: fffff52001035ec5 R12: 1ffff11022bc5d0e
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007fd191db56c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ec1eff8 CR3: 0000000127ecf000 CR4: 00000000003526a0
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:0x7fd19339e159
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:00007fd191db5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fd193626180 RCX: 00007fd19339e159
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fd19343503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd193626218 R14: 00007fd193626180 R15: 00007ffecf08a928
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kobject: '' (ffff888111cb2000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 10306 at lib/kobject.c:634 kobject_get lib/kobject.c:632 [inline]
WARNING: CPU: 1 PID: 10306 at lib/kobject.c:634 kobject_add_internal+0x110/0xc20 lib/kobject.c:216
Modules linked in:
CPU: 1 PID: 10306 Comm: syz.0.2970 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 32 96 c8 fc 49 8b 36 48 c7 c7 a0 11 0b 86 4c 89 f2 e8 20 91 53 fc <0f> 0b e9 f8 00 00 00 e8 d4 0a 83 fc b8 fe ff ff ff e9 31 08 00 00
RSP: 0018:ffffc900081af8b8 EFLAGS: 00010246
RAX: 37471ea69eebd300 RBX: ffff88810dd44f00 RCX: 0000000000080000
RDX: ffffc900042f5000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900081af910 R08: ffffc900081af4a7 R09: 1ffff92001035e94
R10: dffffc0000000000 R11: fffff52001035e95 R12: dffffc0000000000
R13: ffff88810dd44f18 R14: ffff888111cb2000 R15: 1ffff11021ba89e0
FS: 00007fd191db56c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000127ecf000 CR4: 00000000003526a0
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: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:0x7fd19339e159
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:00007fd191db5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fd193626180 RCX: 00007fd19339e159
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fd19343503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd193626218 R14: 00007fd193626180 R15: 00007ffecf08a928
---[ end trace 0000000000000000 ]---
general protection fault, probably for non-canonical address 0xe00caaacaeae2df0: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0065756575716f80-0x0065756575716f87]
CPU: 1 PID: 10306 Comm: syz.0.2970 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1052 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1060 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:63 [inline]
RIP: 0010:kobject_add_internal+0x58f/0xc20 lib/kobject.c:231
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 b8 91 c8 fc 4d 8b 3f 4d 85 ff 0f 84 cc 00 00 00 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 92 91 c8 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc900081af8b8 EFLAGS: 00010207
RAX: 000caeacaeae2df0 RBX: ffff88810dd44f00 RCX: ffffffff84ee6328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888111cb2028
RBP: ffffc900081af910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001035f08 R12: dffffc0000000000
R13: 1ffff11021ba89e5 R14: ffffffff8747fb00 R15: 0065756575716f86
FS: 00007fd191db56c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000127ecf000 CR4: 00000000003526a0
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: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:0x7fd19339e159
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:00007fd191db5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007fd193626180 RCX: 00007fd19339e159
RDX: 00000000000001ff RSI: 00002000000003c0 RDI: ffffffffffffff9c
RBP: 00007fd19343503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd193626218 R14: 00007fd193626180 R15: 00007ffecf08a928
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1052 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1060 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:63 [inline]
RIP: 0010:kobject_add_internal+0x58f/0xc20 lib/kobject.c:231
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ff e8 b8 91 c8 fc 4d 8b 3f 4d 85 ff 0f 84 cc 00 00 00 49 83 c7 18 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 92 91 c8 fc 49 8b 07 48 85 c0 0f
RSP: 0018:ffffc900081af8b8 EFLAGS: 00010207
RAX: 000caeacaeae2df0 RBX: ffff88810dd44f00 RCX: ffffffff84ee6328
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888111cb2028
RBP: ffffc900081af910 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001035f08 R12: dffffc0000000000
R13: 1ffff11021ba89e5 R14: ffffffff8747fb00 R15: 0065756575716f86
FS: 00007fd191db56c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f33c3def2f8 CR3: 0000000127ecf000 CR4: 00000000003506a0
----------------
Code disassembly (best guess):
0: 48 c1 e8 03 shr $0x3,%rax
4: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1)
9: 74 08 je 0x13
b: 4c 89 ff mov %r15,%rdi
e: e8 b8 91 c8 fc call 0xfcc891cb
13: 4d 8b 3f mov (%r15),%r15
16: 4d 85 ff test %r15,%r15
19: 0f 84 cc 00 00 00 je 0xeb
1f: 49 83 c7 18 add $0x18,%r15
23: 4c 89 f8 mov %r15,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 4c 89 ff mov %r15,%rdi
34: e8 92 91 c8 fc call 0xfcc891cb
39: 49 8b 07 mov (%r15),%rax
3c: 48 85 c0 test %rax,%rax
3f: 0f .byte 0xf