==================================================================
BUG: KASAN: use-after-free in kobject_get+0x113/0x120 lib/kobject.c:663
Read of size 1 at addr ffff88810b06a03c by task syz.1.816/3079
CPU: 0 PID: 3079 Comm: syz.1.816 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x10f/0x150 mm/kasan/report.c:444
__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:3518 [inline]
device_add+0x2f0/0xe90 drivers/base/core.c:3342
device_create_groups_vargs drivers/base/core.c:4118 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4160
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
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:642
configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1360
vfs_mkdir+0x38b/0x590 fs/namei.c:4073
do_mkdirat+0x174/0x4d0 fs/namei.c:4098
__do_sys_mkdirat fs/namei.c:4113 [inline]
__se_sys_mkdirat fs/namei.c:4111 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111
x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffaadd86159
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:00007ffaac7df028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffaae00dfa0 RCX: 00007ffaadd86159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007ffaade1d06b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffaae00e038 R14: 00007ffaae00dfa0 R15: 00007fff299ece98
Allocated by task 2957:
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:433 [inline]
____kasan_kmalloc mm/kasan/common.c:512 [inline]
__kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521
kasan_kmalloc include/linux/kasan.h:227 [inline]
__kmalloc_track_caller+0x13c/0x2c0 mm/slub.c:4959
kmalloc_reserve net/core/skbuff.c:357 [inline]
__alloc_skb+0x210/0x730 net/core/skbuff.c:428
alloc_skb include/linux/skbuff.h:1183 [inline]
nlmsg_new include/net/netlink.h:953 [inline]
rtmsg_fib+0xdd/0x480 net/ipv4/fib_semantics.c:551
fib_table_insert+0xb6c/0x1e70 net/ipv4/fib_trie.c:1379
fib_magic net/ipv4/fib_frontend.c:1107 [inline]
fib_add_ifaddr+0x34d/0xdb0 net/ipv4/fib_frontend.c:1129
fib_inetaddr_event+0x15d/0x310 net/ipv4/fib_frontend.c:1443
notifier_call_chain kernel/notifier.c:83 [inline]
blocking_notifier_call_chain+0xba/0x140 kernel/notifier.c:318
__inet_insert_ifa+0x88e/0xa80 net/ipv4/devinet.c:568
inet_rtm_newaddr+0x8d1/0x15e0 net/ipv4/devinet.c:967
rtnetlink_rcv_msg+0x9fd/0xcb0 net/core/rtnetlink.c:5662
netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2520
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5680
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x879/0xb80 net/netlink/af_netlink.c:1923
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x46d/0x620 net/socket.c:2063
__do_sys_sendto net/socket.c:2075 [inline]
__se_sys_sendto net/socket.c:2071 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2071
x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
Freed by task 2957:
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:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1728 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
slab_free mm/slub.c:3526 [inline]
kfree+0xc4/0x270 mm/slub.c:4588
skb_free_head net/core/skbuff.c:656 [inline]
skb_release_data+0x7bd/0xa20 net/core/skbuff.c:678
skb_release_all net/core/skbuff.c:743 [inline]
__kfree_skb net/core/skbuff.c:757 [inline]
consume_skb+0xab/0x1f0 net/core/skbuff.c:934
netlink_broadcast_filtered+0x118b/0x1280 net/netlink/af_netlink.c:1539
netlink_broadcast net/netlink/af_netlink.c:1561 [inline]
nlmsg_multicast include/net/netlink.h:1033 [inline]
nlmsg_notify+0xe9/0x1a0 net/netlink/af_netlink.c:2563
rtnl_notify+0x9a/0xc0 net/core/rtnetlink.c:762
rtmsg_fib+0x2b0/0x480 net/ipv4/fib_semantics.c:571
fib_table_insert+0xb6c/0x1e70 net/ipv4/fib_trie.c:1379
fib_magic net/ipv4/fib_frontend.c:1107 [inline]
fib_add_ifaddr+0x34d/0xdb0 net/ipv4/fib_frontend.c:1129
fib_inetaddr_event+0x15d/0x310 net/ipv4/fib_frontend.c:1443
notifier_call_chain kernel/notifier.c:83 [inline]
blocking_notifier_call_chain+0xba/0x140 kernel/notifier.c:318
__inet_insert_ifa+0x88e/0xa80 net/ipv4/devinet.c:568
inet_rtm_newaddr+0x8d1/0x15e0 net/ipv4/devinet.c:967
rtnetlink_rcv_msg+0x9fd/0xcb0 net/core/rtnetlink.c:5662
netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2520
rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5680
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x879/0xb80 net/netlink/af_netlink.c:1923
sock_sendmsg_nosec net/socket.c:704 [inline]
__sock_sendmsg net/socket.c:716 [inline]
__sys_sendto+0x46d/0x620 net/socket.c:2063
__do_sys_sendto net/socket.c:2075 [inline]
__se_sys_sendto net/socket.c:2071 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2071
x64_sys_call+0x178/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
The buggy address belongs to the object at ffff88810b06a000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 60 bytes inside of
1024-byte region [ffff88810b06a000, ffff88810b06a400)
The buggy address belongs to the page:
page:ffffea00042c1a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10b068
head:ffffea00042c1a00 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 1, ts 2248686903, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2607
prep_new_page+0x1c/0x110 mm/page_alloc.c:2613
get_page_from_freelist+0x2c3a/0x2cd0 mm/page_alloc.c:4487
__alloc_pages+0x1a2/0x460 mm/page_alloc.c:5824
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1937 [inline]
new_slab+0xa0/0x4d0 mm/slub.c:2000
___slab_alloc+0x3ac/0x840 mm/slub.c:3033
__slab_alloc+0x49/0x90 mm/slub.c:3120
slab_alloc_node mm/slub.c:3211 [inline]
slab_alloc mm/slub.c:3255 [inline]
__kmalloc+0x16a/0x2c0 mm/slub.c:4432
kmalloc_array include/linux/slab.h:659 [inline]
blk_stat_alloc_callback+0x91/0x210 block/blk-stat.c:113
blk_mq_init_allocated_queue+0x87/0x1770 block/blk-mq.c:3353
blk_mq_init_queue_data block/blk-mq.c:3203 [inline]
blk_mq_init_queue+0x6c/0xd0 block/blk-mq.c:3213
scsi_alloc_sdev+0x66c/0x9c0 drivers/scsi/scsi_scan.c:319
scsi_probe_and_add_lun+0x180/0x35d0 drivers/scsi/scsi_scan.c:1156
__scsi_scan_target+0x1d2/0xb70 drivers/scsi/scsi_scan.c:1637
scsi_scan_channel drivers/scsi/scsi_scan.c:1725 [inline]
scsi_scan_host_selected+0x34e/0x600 drivers/scsi/scsi_scan.c:1754
do_scsi_scan_host drivers/scsi/scsi_scan.c:1893 [inline]
scsi_scan_host+0x39e/0x670 drivers/scsi/scsi_scan.c:1923
page_owner free stack trace missing
Memory state around the buggy address:
ffff88810b069f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88810b069f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810b06a000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88810b06a080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88810b06a100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
kobject: '' (ffff88810b06a000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 3079 at lib/kobject.c:666 kobject_get+0x7c/0x120 lib/kobject.c:664
Modules linked in:
CPU: 1 PID: 3079 Comm: syz.1.816 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:664
Code: f9 fe 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 46 52 39 ff 48 8b 33 48 c7 c7 a0 d0 64 85 48 89 da e8 04 62 3b 02 <0f> 0b eb 0c e8 2b d5 f9 fe eb 4c e8 24 d5 f9 fe 4c 8d 73 38 4c 89
RSP: 0018:ffffc90000dafa18 EFLAGS: 00010246
RAX: df91fb33d58ace00 RBX: ffff88810b06a000 RCX: 0000000000080000
RDX: ffffc90007320000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000dafa30 R08: ffff8881f7132eff R09: 1ffff1103ee265df
R10: dffffc0000000000 R11: ffffed103ee265e0 R12: 1ffff1102389900e
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007ffaac7df6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b576bb9af8 CR3: 0000000121f61000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
get_device drivers/base/core.c:3518 [inline]
device_add+0x2f0/0xe90 drivers/base/core.c:3342
device_create_groups_vargs drivers/base/core.c:4118 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4160
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
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:642
configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1360
vfs_mkdir+0x38b/0x590 fs/namei.c:4073
do_mkdirat+0x174/0x4d0 fs/namei.c:4098
__do_sys_mkdirat fs/namei.c:4113 [inline]
__se_sys_mkdirat fs/namei.c:4111 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111
x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffaadd86159
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:00007ffaac7df028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffaae00dfa0 RCX: 00007ffaadd86159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007ffaade1d06b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffaae00e038 R14: 00007ffaae00dfa0 R15: 00007fff299ece98
---[ end trace aea5c5b2030234ec ]---
------------[ cut here ]------------
kobject: '' (ffff88810b06a000): is not initialized, yet kobject_get() is being called.
WARNING: CPU: 1 PID: 3079 at lib/kobject.c:666 kobject_get lib/kobject.c:664 [inline]
WARNING: CPU: 1 PID: 3079 at lib/kobject.c:666 kobject_add_internal+0x12e/0xde0 lib/kobject.c:248
Modules linked in:
CPU: 1 PID: 3079 Comm: syz.1.816 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: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 c5 39 39 ff 49 8b 34 24 48 c7 c7 a0 d0 64 85 4c 89 e2 e8 82 49 3b 02 <0f> 0b e9 04 01 00 00 e8 a6 bc f9 fe b8 fe ff ff ff e9 b0 09 00 00
RSP: 0018:ffffc90000daf898 EFLAGS: 00010246
RAX: df91fb33d58ace00 RBX: ffff88811adf9300 RCX: 0000000000080000
RDX: ffffc90007320000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90000daf8f0 R08: ffff8881f7132eff R09: 1ffff1103ee265df
R10: dffffc0000000000 R11: ffffed103ee265e0 R12: ffff88810b06a000
R13: ffff88811adf9318 R14: 0000000000000000 R15: 1ffff110235bf260
FS: 00007ffaac7df6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b576bb9af8 CR3: 0000000121f61000 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:2976 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3031
device_add+0x308/0xe90 drivers/base/core.c:3343
device_create_groups_vargs drivers/base/core.c:4118 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4160
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
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:642
configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1360
vfs_mkdir+0x38b/0x590 fs/namei.c:4073
do_mkdirat+0x174/0x4d0 fs/namei.c:4098
__do_sys_mkdirat fs/namei.c:4113 [inline]
__se_sys_mkdirat fs/namei.c:4111 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111
x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffaadd86159
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:00007ffaac7df028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffaae00dfa0 RCX: 00007ffaadd86159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007ffaade1d06b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffaae00e038 R14: 00007ffaae00dfa0 R15: 00007fff299ece98
---[ end trace aea5c5b2030234ed ]---
general protection fault, probably for non-canonical address 0xe000dc0104428299: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x00070008221414c8-0x00070008221414cf]
CPU: 0 PID: 3079 Comm: syz.1.816 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:1084 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1092 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:89 [inline]
RIP: 0010:kobject_add_internal+0x5e3/0xde0 lib/kobject.c:263
Code: 4c 89 e7 e8 1f 35 39 ff 4d 8b 24 24 4d 85 e4 0f 84 db 00 00 00 49 83 c4 20 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 e7 e8 ef 34 39 ff 49 8b 04 24 48 85 c0 0f
RSP: 0018:ffffc90000daf898 EFLAGS: 00010207
RAX: 0000e00104428299 RBX: ffff88811adf9300 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810b06a028
RBP: ffffc90000daf8f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001b5f04 R12: 00070008221414cc
R13: ffff88811adf9318 R14: ffffffff86a49c00 R15: ffff88810b06a000
FS: 00007ffaac7df6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c303a7a CR3: 0000000121f61000 CR4: 00000000003506b0
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:2976 [inline]
get_device_parent+0x3a6/0x410 drivers/base/core.c:3031
device_add+0x308/0xe90 drivers/base/core.c:3343
device_create_groups_vargs drivers/base/core.c:4118 [inline]
device_create+0x26c/0x300 drivers/base/core.c:4160
create_function_device+0x60/0x70 drivers/usb/gadget/configfs.c:31
create_alsa_device drivers/usb/gadget/function/f_midi.c:1262 [inline]
f_midi_alloc_inst+0x1a8/0x380 drivers/usb/gadget/function/f_midi.c:1303
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:642
configfs_mkdir+0x50a/0x9c0 fs/configfs/dir.c:1360
vfs_mkdir+0x38b/0x590 fs/namei.c:4073
do_mkdirat+0x174/0x4d0 fs/namei.c:4098
__do_sys_mkdirat fs/namei.c:4113 [inline]
__se_sys_mkdirat fs/namei.c:4111 [inline]
__x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4111
x64_sys_call+0x37e/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:259
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ffaadd86159
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:00007ffaac7df028 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007ffaae00dfa0 RCX: 00007ffaadd86159
RDX: 00000000000001ff RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007ffaade1d06b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffaae00e038 R14: 00007ffaae00dfa0 R15: 00007fff299ece98
Modules linked in:
---[ end trace aea5c5b2030234ee ]---
RIP: 0010:kobj_child_ns_ops lib/kobject.c:1084 [inline]
RIP: 0010:kobj_ns_ops lib/kobject.c:1092 [inline]
RIP: 0010:kobject_namespace lib/kobject.c:30 [inline]
RIP: 0010:create_dir lib/kobject.c:89 [inline]
RIP: 0010:kobject_add_internal+0x5e3/0xde0 lib/kobject.c:263
Code: 4c 89 e7 e8 1f 35 39 ff 4d 8b 24 24 4d 85 e4 0f 84 db 00 00 00 49 83 c4 20 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 e7 e8 ef 34 39 ff 49 8b 04 24 48 85 c0 0f
RSP: 0018:ffffc90000daf898 EFLAGS: 00010207
RAX: 0000e00104428299 RBX: ffff88811adf9300 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88810b06a028
RBP: ffffc90000daf8f0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520001b5f04 R12: 00070008221414cc
R13: ffff88811adf9318 R14: ffffffff86a49c00 R15: ffff88810b06a000
FS: 00007ffaac7df6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c303a7a CR3: 0000000121f61000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4c 89 e7 mov %r12,%rdi
3: e8 1f 35 39 ff call 0xff393527
8: 4d 8b 24 24 mov (%r12),%r12
c: 4d 85 e4 test %r12,%r12
f: 0f 84 db 00 00 00 je 0xf0
15: 49 83 c4 20 add $0x20,%r12
19: 4c 89 e0 mov %r12,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 e7 mov %r12,%rdi
33: e8 ef 34 39 ff call 0xff393527
38: 49 8b 04 24 mov (%r12),%rax
3c: 48 85 c0 test %rax,%rax
3f: 0f .byte 0xf